关于DA14580下载代码

6 posts / 0 new
Last post
brian1025
Offline
Last seen:4 years 6 months ago
Joined:2016-04-11 13:18
关于DA14580下载代码

Hi MT_Dialog,

I would like to load the DSPS program into the DA14580 so that it can be a standalone device. However, there are two issues:

1) When I clicked download, it says Error: Flash Download failed - "Cortex-M0". I have already update all the Cortex-M0 pack in the Pack Installer. How can I fix this?

No Algorithm found for: 20000000H - 2000009FH
No Algorithm found for: 20000160H - 20000323H
No Algorithm found for: 20000340H - 200003E3H
No Algorithm found for: 20000440H - 200046DFH
Erase skipped!
Error: Flash Download failed - "Cortex-M0"

2) To use the Basic Development kit as a standalone device, I was trying to insert the battery for it. However, the board doesn't turn ON even the battery is inserted. The battery I am using is CR2016, could you please advice how to correctly insert the battery?

Thank you!

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi brian1025,

Hi brian1025,

1) In keil, go to the "Options for Target" in the "Utilities" tab and uncheck the "Use Target Driver for Flash programming" and check the "Use External Tool for flash programming".

2) There is no indication that the basic board is powered, just place the battery and place the jumper in the BAT position, if the basic board has a fw in the flash it will boot and you should be able to see that on air.

Thanks MT_dialog

brian1025
Offline
Last seen:4 years 6 months ago
Joined:2016-04-11 13:18
Hi MT_dialog,

Hi MT_dialog,

我有试过choosing "Use External Tool for Flash programming", but it says:

Error: failed to execute ' '

I wonder do I have to choose some files in the "Command" and "Argument" field under the "Use External Tool for Flash programming"?

Please advice, thank you!

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi brian1025,

Hi brian1025,

No, you dont have to use any additional files in order to download files into the sysram, and you should be able to download code into the Sysram via keil (only to Sysram). If you want to download the file at the flash (that your basic kit has not the 580) you will have to use Smart Snippets and not keil. Just place the proper jumpers for the SPI connection (check the configuration in the schematic next to the J4 header), open Smart Snippets and use the JTAG interface, select the proper pins from the Board Setup, connect and download the code as bootable to your Flash. There are quite a few posts explaining the procedure over the forum.

Thanks MT_dialog

brian1025
Offline
Last seen:4 years 6 months ago
Joined:2016-04-11 13:18
Hi Mt_dialog,

Hi Mt_dialog,

Thank you for your advice, but do you mean I cannot program the DA14580 into and standalone device by Keil? I have to use SmartSnippet to program the code into the flash memory of DA14580?

Moreover, the DA14580 doesn't turn ON no matter how I put the battery in. Is there any document mention about battery setup on DA14580?

Thank you!

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
Joined:2015-06-08 11:34
Hi brian1025,

Hi brian1025,

Yes, you can not burn the flash via keil, only via Smart Snippets.

As i mentioned in my previous post, you will see no indication that the basic dev kit is powered (any LED or another indication), after burning your flash just change the J5 header from INT to BAT selection and the 580 will start to advertise.

Thanks MT_dialog