DA14583 can not boot, though the code has downloaded correctly to internal flash

4 posts / 0 new
Last post
ninfeion
Offline
Last seen:1 year 7 months ago
Joined:2016-12-17 14:44
DA14583 can not boot, though the code has downloaded correctly to internal flash

I code a simply application that just make three leds blink, and then i compile it using KEIL. I use smartSnippets to download the .hex file to spi internal flash, it can successful connect and download the jtag firmwork to ram and download hex data to spi flash. The bootloader also correct contain in the heard of the flash data. But when i power up again the da14583, the application can not run. what's the problem? The application can run if i debugger it in keil. THANKS.

Device:
MT_dialog
Offline
Last seen:3 months 1 day ago
Staff
Joined:2015-06-08 11:34
Hi ninfeion,

Hi ninfeion,

Are you using a dev kit or a custom board ? regarding both cases:

  • have you applied power on the flash's supply (the pins right next to the SWD pins) ?
  • Are you able to read back the fw that you have downloaded in the flash via Smart Snippets ?
  • 燃烧后的flash和复位的屁股on open a terminal and check if anything is printed out (if you see junk data, that means that the bootloader is executing and the device doesn't boot from the flash at all).

Thanks MT_dialog

ninfeion
Offline
Last seen:1 year 7 months ago
Joined:2016-12-17 14:44
thank for reply

thank for reply

i have solved this problem that the reason is i using keil 5 and i not install the support pack for da14583. i just set the project option->device->ARM->ARM Cortex M0. when i install the support pack and alter the device option to 'dialog'-> "da14580', everything is ok. But i wonder why it can not work when i specific the device to ARM Cortex M0.

THANKYOU!!

MT_dialog
Offline
Last seen:3 months 1 day ago
Staff
Joined:2015-06-08 11:34
Hi ninfeion,

Hi ninfeion,

I am not sure if that was the reason, as far as i am aware, there is no support pack from keil especially for the 583 or the 580 and since you were able to run the fw from keil and download code directly to sysram, something else was wrong, most probably with burning the device in the embedded flash, since you should be able to run the fw with the ARM Cortex M0 option.

Thanks MT_dialog