Go Down

Topic: Issue with ATSAMD21E16A controller in Arduino IDE with ATMEL-ICE programmer (Read 79 times) previous topic - next topic


I am trying to program blink_led in custom board ATSAMD21E16A using ATMEL-ICE programmer in Arduino IDE,
I have changed the board.txt i.e :boardname.build.ldscript=linker_scripts/gcc/flash_without_bootloader.ld,
 variant.cpp, at91samdXX.cfg- changed the controller from ATSAMD21G18A to ATSAMD21E16A.
After changing all these i got the below response.

Open On-Chip Debugger 0.9.0-g932ec70 (2017-02-15-12:34)
Licensed under GNU GPL v2
For bug reports, read
debug_level: 2
Info : only one transport option; autoselect 'swd'
adapter speed: 500 kHz
adapter_nsrst_delay: 100
    TargetName         Type       Endian TapName            State       
--  ------------------ ---------- ------ ------------------ ------------
 0* at91samd21e16a.cpu cortex_m   little at91samd21e16a.cpu unknown
cortex_m reset_config sysresetreq
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : CMSIS-DAP: FW Version = 01.21.0076
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : clock speed 500 kHz
Info : SWD IDCODE 0x0bc11477
Info : at91samd21e16a.cpu: hardware has 4 breakpoints, 2 watchpoints
target state: halted
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x000001d0 msp: 0x20008000
** Programming Started **
auto erase enabled
Info : SAMD: partitioning the first flash page into 2 subpages
Info : SAMD MCU: SAMD21E16A (64KB Flash, 8KB RAM)
wrote 12288 bytes from file C:\Users\THINK\AppData\Local\Temp\arduino_build_601344/ledblink.ino.elf in 1.371078s (8.752 KiB/s)
** Programming Finished **
** Verify Started **
verified 8920 bytes in 0.804046s (10.834 KiB/s)
** Verified OK **
** Resetting Target **
shutdown command invoked

LED is not blinking. I am guessing that program is not uploaded correctly?

So is ATSAMD21E16 is compatible in arduino IDE, if yes what other changes i need to do, Please advice.
Thanks in advance.

Go Up