Atmel Studio & Atmel ICE debugging problem

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello.

I have an installation of Atmel Studio 7 on a Windows 10 x64 system. I also have an Atmel ICE debugger. When I try to debug any program on a custom board with an ATSAMD20 cpu, I don't see the program breaking on any breakpoints. When I press the pause button to pause the execution I see the execution of the program pausing at the following line on the disassembly window:

FFFFFFFE  ??? Memory out of bounds or read error 

 

The same exact behavior is also happening with an ATSAMB11 custom board.

 

I also tried and installed Atmel Studio on a Windows 7 x32 VirtualBox machine and I have the same exact behavior.

 

Does anyone know what might be wrong?

 

Thank you very much.

Last Edited: Sun. Feb 18, 2018 - 03:02 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok. Some further info on my investigation...

After playing around with the Fuses on ATSAMD20 I found out that if I change the NVMCTRL_BOOTPROT fuse to 0x07 then the Atmel-ICE debugs and operates perfectly. I don't know why that fuse was 0x01 as default on the chip.

 

Unfortunately I still have no luck with the ATSAMB11 board I made. The module does not seem to have fuses at all.

When I create a new ASF custom board project (for that module) and I try to compile it, the compiler complains with the following error:

implicit declaration of function 'system_init' [-Werror=implicit-function-declaration]

 

If I try to comment out the 'system_init' function call or replace it with a SystemInit() command that I found that exists, then I get the following message during runtime:

Invalid entry point address:
0x10008000L

 

On the other side, when I try to create an Atmel Start project with that module, the project seems compiling fine but I still can not debug it.

 

Anyone having any idea?

Can someone from Atmel help me on that matter?