Friday, May 25th 2018, 2:57am UTC+2

You are not logged in.

  • Login
  • Register

Dear visitor, welcome to SEGGER Forum. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

ekalyvio

Beginner

Date of registration: Jan 19th 2018

Posts: 5

1

Thursday, February 8th 2018, 2:24pm

[SOLVED] JLink & ATSAMB11

Hello.
I have a JLink edu mini and a custom board made with an ATSAMB11 module.
I can not make these two work together.

Actually I am trying to program the module under Atmel Studio 7 but it does not seem to work.
Since Atmel Studio is failing I have tried to do the following:
1) Run jlink.exe
2) connect
3) I type '?' for the selection dialog.
4) I don't find the ATSAMB11 in that dialog and as such I select Unspecified Cortex-M0.
5) Choose 'S' for SWD
6) Select speed of 100 kHz

The results I am getting from the software are:

Device "CORTEX-M0" selected.




Connecting to target via SWD
Found SW-DP with ID 0x0BB11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770021)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410CC200. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p0, Little endian.
FPUnit: 0 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
Cortex-M0 identified.

Then I run TestHaltGo and I get:

test halt/go


****** Error: CPU is not halted


**************************
WARNING: CPU could not be halted
**************************




Completed. 31ms required




Does anyone have any idea of what is wrong and how I can make Atmel Studio work with the module?

Thank you very much.

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,054

2

Friday, February 9th 2018, 9:53am

Hello,

Thank you for your inquiry.
The ATSAMB11 is currently not officially supported by J-Link.
Selecting generic Cortex-M0 instead might work for basic connection, but in this case it seems that resets need special handling which is currently not implemented.
You can try to implement the correct reset behaviour using a JLinkScript file. More information about this can be found in the J-Link user manual under section J-Link script file.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


ekalyvio

Beginner

Date of registration: Jan 19th 2018

Posts: 5

3

Friday, February 9th 2018, 2:40pm

Hello Nino.

Thanks for replying back. I had a quick look on the J-Link user manual and it didn't make any sense to me. Also, I don't know what kind of special handling might require the module to be implemented.
Are you aware if someone from the forums has made such a script file for the specific module?

I don't think I might be able to do something like that as it probably has very steep learning curve. As such I might end up buying Atmel's ICE for such job.

Kind regards

Efthymios

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,054

4

Friday, February 9th 2018, 4:20pm

Hello Efthymios,

Quoted

Also, I don't know what kind of special handling might require the module to be implemented.

If such handling is required it is specified in the SAMB11 user manual. Should it be standard Cortex-M0 compliant then J-Link does already support it.
Examples for special handling of ATSAM devices can be found in the J-Link software installation folder under Devices/Atmel.

Quoted

Are you aware if someone from the forums has made such a script file for the specific module?

Currently you are the first customer asking for SAMB11 support.
Generally we are interested in adding support for as many popular devices as possible and usually we get contacted by silicon vendors before the devices release.
In this case we have not been contacted by Microchip yet so we reached out to them now.
As soon as we receive hardware and documentation from Microchip we will be adding support for the SAMB11 series.

Quoted

Then I run TestHaltGo and I get:

test halt/go


What do you mean by that haltgo test? Could you provide a screenshot of the output of the test?
How are you calling the commands?
Could you also attach a J-Link log file of such a session?
https://wiki.segger.com/Enable_J-Link_log_file

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


ekalyvio

Beginner

Date of registration: Jan 19th 2018

Posts: 5

5

Friday, February 9th 2018, 5:57pm

Hello Nino.

As indicated in my first post, the output of the testhaltgo is the following:

Quoted

test halt/go


****** Error: CPU is not halted


**************************
WARNING: CPU could not be halted
**************************




Completed. 31ms required
I also attach you a log file as requested.




PS:
If it helps you in any way, when I select as a CPU, the ATSAMD21J18, then the testhaltgo operation seems to be working fine but the 'teststep' is not.


Thank you very much.

Efthymios.
ekalyvio has attached the following file:
  • log1.txt (3.13 kB - 46 times downloaded - Last download: May 22nd 2018, 4:44pm)

This post has been edited 1 times, last edit by "ekalyvio" (Feb 9th 2018, 6:05pm)


SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,054

6

Monday, February 12th 2018, 5:11pm

Hello Efthymios,

OK this sounds like the SAMG11 devices need extra handling on device halt and or go.
We got a reply from our Microchip contacts and eval boards with that chip are on the way so we can investigate this issue further.
Will keep you posted about any new information that we acquire.

Best regards,
Nino
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


ekalyvio

Beginner

Date of registration: Jan 19th 2018

Posts: 5

7

Tuesday, February 13th 2018, 2:46pm

Thank you very much Nino.

I am looking forward to hearing from you. Any time you want you can let me know and I can make any kind of tests you require on my device.

SEGGER - Nino

Super Moderator

Date of registration: Jan 2nd 2017

Posts: 1,054

8

Friday, February 16th 2018, 1:48pm

Hello Efthymios,

we received the SAMB11 eval boards from Microchip for testing.
The eval boards are named ATSAMB11-XPRO.
Attached is the commander output of a testhaltgo.
Everything is working as expected when selecting Cortex-M0.
So it seems that this issue is not related to J-Link.
We suspect your debug connection is somewhat different to the expected design or the debug cable is unreliable.
Compare the schematics of the SAMB11 eval board to your custom design and find out what the differences are.

Best regards,
Nino
SEGGER - Nino has attached the following image:
  • Capture.PNG
Please read the forum rules before posting: Forum Rules

Keep in mind, this is not a support forum. Its main purpose is user to user interaction.
Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
Should you be entitled to support contact us per e-mail.
The following contact form can be used for this: https://www.segger.com/about-us/contact-us/


ekalyvio

Beginner

Date of registration: Jan 19th 2018

Posts: 5

9

Friday, February 16th 2018, 4:44pm

Hello Nino.

Thank you for letting me know. My board is not an evaluation board but a custom design from the reference diagrams of Atmel.
I will try to rework a new module on a new board in case the module is broken although I am having a feeling that also my Jlink debugger is broken as I am unable to get a 3.3v reference voltage even if I connect VTRef and GND of the cable directly to the output of a 3.3v voltage regulator.

Thank you very much.

Efthymios.