7 posts / 0 new
Last post
morimatsut
Offline
Last seen:3 years 2 months ago
Joined:2016-11-10 01:29
I can't program SPI flash

Hi,

I'm going to program SPI flash of Macronix(MX25V1035F), but I can't.

I programed MX25V1035F by SmartSnippets.
Memory Burinig is probably successed(Log is below), but Data File Contents and Memory Contents are different.(Attached File)
I added SPI flash info at spi_flash.c/spi_flash.h, compiled, and added the new .bin file into the Snippets directory (replace the old one - jtag_programmer).
I looked following URL.
https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bl...

Would you tell me how to solve this problem??

++ Log ++
[INFO @16-12-12 18:58:10] Header records have been removed from hex file ***.hex.
[INFO @16-12-12 18:58:10] Read 12568 bytes from file ***.hex.
[INFO @16-12-12 18:58:11] Firmware File C:\SmartSnippets\resources\jtag_programmer.bin has been selected for downloading.
[INFO @16-12-12 18:58:11] Cortex-M: Debugger tries to set PC to odd value. Corrected register value from 0x000800B5 to 0x000800B4
[INFO @16-12-12 18:58:11] Successfully downloaded firmware file to the board.
[INFO @16-12-12 18:58:11] Successfully configured SPI Flash ports and pins.
[INFO @16-12-12 18:58:14] SPI Memory erasing completed successfully.
[INFO @16-12-12 18:58:14] Reading memory to refresh memory contents....
[INFO @16-12-12 18:58:14] Reading has finished. Read 32768 bytes.
[INFO @16-12-12 18:58:16] Started burning memory with 12888 bytes of data at address 0x00000.
(信息@16-12-12 18:58:16]记忆燃烧完成successfully.
[INFO @16-12-12 18:58:16] Reading memory to refresh memory contents....
[INFO @16-12-12 18:58:17] Reading has finished. Read 32768 bytes.

Smat Snippets: Version 3.8
SDK: Version 5.0.4

Best Regards.

Device:
MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi morimatsut,

Hi morimatsut,

I am not that sure that the flash is programmed successfully (are you able to read from the memory or boot from it ?), can you please try to update your Smart Snippets installation and use a newer version (the 3.8 version that you are using is quite old). Also before updating your Smart Snippets installation please make sure that the tool is configured correctly, check the SPI flash pin configuration and make sure that the pins selected are the one connected to the 580 at the corresponding pins and also double check your connections to the SPI.

Thansk MT_dialog

morimatsut
Offline
Last seen:3 years 2 months ago
Joined:2016-11-10 01:29
Thank you for your reply.

Thank you for your reply.

Desplayed as programmed successfully in log of Smart Snippets,
but the value of reading memory is not correct.

I updated to the 3.9 version of Smart Snippets.
Is the latest version 3.9??
If is not, would you tell me URL to download the latest version??

After update, I tried to program SPI flash again.
But the result is same.

SPI configuration in Smart Snippets and SPI connection is no problem.
*I was able to program another SPI flash , but I can't program MX25V1035F.

Do you have other solution??

morimatsut
Offline
Last seen:3 years 2 months ago
Joined:2016-11-10 01:29
Hi,

Hi,

I solved this problem.
Thank you for your help.

Best Regards.

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi morimatsut,

Hi morimatsut,

Can you please share what was the actual problem, so that others could benefit ?

Thanks MT_dialog

morimatsut
Offline
Last seen:3 years 2 months ago
Joined:2016-11-10 01:29
The cause of this problem is

The cause of this problem is SPI circuit.
Data lost probably happened between SPI flash and DA14580 during SPI communication.
So I can't program the correct data to SPI flash.

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Hi morimatsut,

Hi morimatsut,

Thanks for sharing your issue.

Best Regards MT_dialog