Hej!
For a new project we are using the Atmel SAM D51 MCU as our microcontroller. However, we are experiencing multiple problems when we try to connect to the controller, both via the JLink EDU Mini as well as with the SAM-ICE.
- The JLlink EDU Mini cannot connect to the target at all, it can't detect the Device ID or the architecture
- The SAM-ICE can read the Device ID and architecture correctly, however we cannot successfully program anything on the MCU
We already know from Microchip that there is a bug in the current version of Atmel Studio, that results in problems when trying to connect through JTAG, those will be solved according to them in the near future. Therefore, we changed to using JLink Commander and JLink Flash Lite, but could not get the MCU working either.
With the SAM-ICE we can erase the flash memory, download .bin files to the target, we can verify the file afterwards, we can readout and set registers and specific sections of the memory, however, the controller is not doing anything. When we halt the CPU and step through the program we always get the same machine instruction over and over.
We also experienced connection problems from time to time via SAM-ICE. Generally 'erase' usually only works if it is the first command after connecting to the target. When the CPU is already running it sometimes can't be halted anymore, after manually resetting the CPU and reconnecting to the target in the Commander.
We appreciate any hint on what could go here, as we are really at the end of our debugging ideas We unfortunately don't have an eval board available, so we can only debug on our custom setup!
Thank you very much in advance!
Nick
For a new project we are using the Atmel SAM D51 MCU as our microcontroller. However, we are experiencing multiple problems when we try to connect to the controller, both via the JLink EDU Mini as well as with the SAM-ICE.
- The JLlink EDU Mini cannot connect to the target at all, it can't detect the Device ID or the architecture
- The SAM-ICE can read the Device ID and architecture correctly, however we cannot successfully program anything on the MCU
We already know from Microchip that there is a bug in the current version of Atmel Studio, that results in problems when trying to connect through JTAG, those will be solved according to them in the near future. Therefore, we changed to using JLink Commander and JLink Flash Lite, but could not get the MCU working either.
With the SAM-ICE we can erase the flash memory, download .bin files to the target, we can verify the file afterwards, we can readout and set registers and specific sections of the memory, however, the controller is not doing anything. When we halt the CPU and step through the program we always get the same machine instruction over and over.
We also experienced connection problems from time to time via SAM-ICE. Generally 'erase' usually only works if it is the first command after connecting to the target. When the CPU is already running it sometimes can't be halted anymore, after manually resetting the CPU and reconnecting to the target in the Commander.
We appreciate any hint on what could go here, as we are really at the end of our debugging ideas We unfortunately don't have an eval board available, so we can only debug on our custom setup!
Thank you very much in advance!
Nick