8 posts / 0 new
Last post
hogyunkim
Offline
Last seen:1 month 2 weeks ago
加入:2016-01-18 04:23
SmartSnippet 3.9

Hi,
I am using a SmartSnippet 3.9. And I want to use a SPI Flash Programmer function.
I successfully download my code to flash memory with DA14583.
But the DA14583 doesn't run my code when I reset a DA14583.
On the other hands, when I run my code on ram, it works well.
Please let me know some advice.

最好的祝福,
Hogyun Kim.

Keywords:
Device:
MT_dialog
Offline
Last seen:5 hours 46 min ago
工作人员
加入:2015-06-08 11:34
Hi hogyukim,

Hi hogyukim,

Do you choose to make your image bootable, when Smart Snippets prompts you ? Do you erase your flash before burning it ? Is the flash powered ? (i mean do you have power supply on the Flash ?)

Thanks MT_dialog

hogyunkim
Offline
Last seen:1 month 2 weeks ago
加入:2016-01-18 04:23
我回答你r questions.

我回答你r questions.
Do you choose to make your image bootable, when Smart Snippets prompts you ?
=> No, I didn't.
Do you erase your flash before burning it ?
=> Yes, I did.
Is the flash powered ? (i mean do you have power supply on the Flash ?)
=> Now, I am using a DA14580EVKT evaluation board and DA14583ATDB BOARD. Is there any setting to power on the Flash ?

MT_dialog
Offline
Last seen:5 hours 46 min ago
工作人员
加入:2015-06-08 11:34
Hi hogyunkim,

Hi hogyunkim,

In order to boot from your flash, you have to make the image bootable when Smart Snippets prompts you to do so (it will insert the header that the bootloader is looking for in order to start loading the image from the flash). Regarding the power of the flash, the 583 has a different power supply on a seperate pin, so you will have to apply power to the VCC_FLASH, you can also check the datasheet for this. In both basic and pro board there is an additional jumper setting in order to power the flash, just apply the jumper on the j4 header in order to power your flash (the jumper indicates SPI_SU).

Thanks MT_dialog

hogyunkim
Offline
Last seen:1 month 2 weeks ago
加入:2016-01-18 04:23
Thanks for your support.

Thanks for your support.
When I checked 'yes' on bootable menu in SmartSnippets, it works.
The reaon why I didn't check 'yes' on bootable menu is that there is an comment 'now press NO in the bootable/Non-bootable pop-up window.' in AN-B-010 DA14580 using SUOTA.pdf.

Actually, what I want to work is the SUOTA function with two kinds of DSPS program.
How can I test it ?
1. DSPS program_1 => fw_1.hex, fw_1_version.h
2. DSPS program_2 => fw_2.hex, fw_2_version.h
3. makes fw_multi_part_spi.bin file
4. Upload the fw_multi_part_spi.bin file into flash memory using SmartSnippets.
5. Reboot the board
But I can't find the DSPS device on DSPS app.
What is the problem ?

最好的祝福,
Hogyun Kim.

最好的祝福,
Hogyun Kim.

MT_dialog
Offline
Last seen:5 hours 46 min ago
工作人员
加入:2015-06-08 11:34
Hi hogyunkim,

Hi hogyunkim,

If you are trying to use the SUOTA application and the image that you were trying to burn is the multipart.bin, things are a bit different, if you prepared the image with the mkimage tool then the bootable header should be allready in the image that you are trying to burn, so the image should be booted without Smart Snippets applying the bootable header. The reason for that the SUOTA images didn't boot was most probably due to the fact that the bootloader project wasn't compiled for a 583, but i cant see how the multipart.bin booted afterall when Smart Snippets attached the bootable header. Please check the below thread for more info and trouble shooting.

https://support.dialog-semiconductor.com/da14583-suota-second-bootloader

Also the DSPS application doesn't have the SUOTA functionallity from default, you will have to add this profile to the DSPS application in order to update the fw. The booting procucedure from the multipart is work and the image will be loaded but the SUOTA application wont be able to update the 580.

Thanks MT_dialog

hogyunkim
Offline
Last seen:1 month 2 weeks ago
加入:2016-01-18 04:23
Dear MT_dialog,

Dear MT_dialog,

谢谢你的指南。
I can successfully start the fw_multi_part_spi binary after adding a __DA14583__ definition in secondary_bootloader project.

我有另一个请求。
As you said, the current DSPS project doesn't support the SUOTA function. So, I have to adds some file in DSPS project.
Could you let me know which files must be included or some guide document or example code ?

Best regard,
Hogyun Kim.

MT_dialog
Offline
Last seen:5 hours 46 min ago
工作人员
加入:2015-06-08 11:34
Hi hogyunkim,

Hi hogyunkim,

Please dont post an additional question to an allready answered post that has an irrelevant content with the post's topic. You can always create a new thread for a new question.

Regarding your question, you can have a look at the proximity reporter that includes the SUOTA functionallity and also there are few related posts over the forum that can provide you some guidance in doing so, also have a look at the Software Implementation FAQ's there is a related topic with instructions "How to add the SUOTA profile to my SDK 5.0.3 application".

Thanks MT_dialog