Burning the hex of SPS code to the SPI flash of the Basic EVB

10 posts / 0 new
Last post
mortonmo
Offline
Last seen:5 years 1 week ago
Expert
加入:2014-07-24 07:35
Burning the hex of SPS code to the SPI flash of the Basic EVB

Hi,

I can run the SPS code successfully by downloading the code to the chip memory using UART interface.

However, when I try to download the hex to the onboard SPI flash using SmartSnippets v3.6, I got the following error when selecting the hex file at the SPI Flash Programmer section:

[INFO @14-12-01 16:17:28] Header records have been removed from hex file full_emb_sysram.hex.
[INFO @14-12-01 16:17:28] Read 0 bytes from file full_emb_sysram.hex. 15068 bytes have been ignored because their record address was greater or equal to 0x80000.

我想问一下Keil项目的哪个部分我应该修改,以便为SPI Flash / OTP使用生成十六进制文件?

Thank you so much!

问候,
Morton

mortonmo
Offline
Last seen:5 years 1 week ago
Expert
加入:2014-07-24 07:35
FYI, I have tried to follow

FYI, I have tried to follow step 1 and 2 described in this post to generate the hex file.
http://support.dialog-semiconductor.com/how-program-otp-proximity-report...

Morton

mortonmo
Offline
Last seen:5 years 1 week ago
Expert
加入:2014-07-24 07:35
Hi Dialog,

Hi Dialog,

May I know that is there any document talking about changing the setting of a keil demo project (e.g. SPS service) to generate a SPI Flash / OTP usable hex image from using JTAG to load the image to SRAM?

Thanks,
Morton

JE_Dialog
Offline
Last seen:1 day 16 hours ago
工作人员
加入:2013-12-05 14:02
Hello Morton, sorry for the

Hello Morton, sorry for the delay. Please read AN-B-023 : this is the document that describes how to use smart snippets and configure for external FLASH support : section 6 describes how to both configure smart snippets and compile the image from Keil to modify the default parameters.

BR JE_Dialog

http://support.dialog-semiconductor.com/system/files/resources/AN-B-023%20-%20DA14580%20interfacing%20with%20external%20memory%20v1.4.pdf

mortonmo
Offline
Last seen:5 years 1 week ago
Expert
加入:2014-07-24 07:35
Hi JE,

Hi JE,

For section 6.1 step 5)
- Replace this new binary file into the resources folder from the directory path where SmartSnippets has been installed.

I have installed the SmartSnippets application at C:\Program Files\SmartSnippets, but I couldn't find a folder or subfolder called "resources" or "res" or something similar... Can you tell me where should I put the flashprogrammer.bin to?

Thanks,
Morton

mortonmo
Offline
Last seen:5 years 1 week ago
Expert
加入:2014-07-24 07:35
Hi JE,

Hi JE,

The only way for me to burn my hex image to the chip is using the hex2bin tool to convert it to bin first, but it cannot boot...

So I want to clarify that
1) Do I need to convert the hex file to bin before using the SmartSnippets program to burn the code?
2) In da14580_config.h, do I need to change the settings of the following flag if I want to boot from the SPI flash?
#define DEVELOPMENT_DEBUG 1 //0: code at OTP, 1: code via JTAG
#undef APP_BOOT_FROM_OTP
#undef READ_NVDS_STRUCT_FROM_OTP
3) Do I need to burn both the flashprogrammer.bin and my application image to the chip everytime (I tried but failed to boot)? If yes, is there any special steps and sequences to follow rather than simply erase the chip and then burn the flashprogrammer.bin and application hex?
4) Do I need to modify the OTP Header and the OTP NVDS ?

Thank you so much for your help!

Morton

mortonmo
Offline
Last seen:5 years 1 week ago
Expert
加入:2014-07-24 07:35
Hi Joaquin Que,

Hi Joaquin Que,

I did a fresh install of SmartSnippets 3.6 again, compiled a new flashprogrammer.bin and put it in the resources folder, but I still get the following messages.

[INFO @14-12-08 09:16:13] Header records have been removed from hex file full_emb_sysram.hex.
[INFO @14-12-08 09:16:13] Read 0 bytes from file full_emb_sysram.hex. 15256 bytes have been ignored because their record address was greater or equal to 0x80000.

FYI, I also tried the following approach but all of them get the same error messages, I had restarted the SmartSnippets application every time after changing the configuration.
1. Rename flashprogrammer.bin to flash_programmer.bin
2. Rename flashprogrammer.bin to jtag_programmer.bin
3. Remove all the .bin files (including programmer_14581.bin, programmer_ES4.bin, etc.)

Is there anyway for me to check that the newly compiled .bin file is used?

Thanks,
Mo

mortonmo
Offline
Last seen:5 years 1 week ago
Expert
加入:2014-07-24 07:35
Hi Joaquin,

Hi Joaquin,

Yes, I am available after 11am tomorrow. I will send you my contact to you by email.

Thanks,
Morton

mortonmo
Offline
Last seen:5 years 1 week ago
Expert
加入:2014-07-24 07:35
Hi Joaquin,

Hi Joaquin,

I can load the hex to the SPI Flash successfully after selecting DA14580-01 as the chip version....

Thank you so much for your help!

问候,
Morton

wentong.lin
Offline
Last seen:5 years 10 months ago
加入:2014-10-30 02:32
Hi Dialog,

Hi Dialog,
I can load the hex to the SPI Flash successfully.
In the process of mass production, how to ensure that each MAC address is different?