1>I connect my da14580 board through seeger jlink.
2> select jtag (uart/spi uart jtag) and check 58001139(jtag serial no) in snipper.
3>click spi flash programmer button
4>select my.hex product from keil project (or select my.bin product from my.hex by hex2bin.exe)
5>offset=8000, click burn and wait log to be
[INFO @15-04-16 14:37:24] Memory burning completed successfully.
[INFO @15-04-16 14:37:24] Reading memory to refresh memory contents....
[INFO @15-04-16 14:37:33] Reading has finished. Read 32768 bytes.
6>click read32k to check data,it seems all data is ok(memory contents in right is equal data file contents in left)
7>close snipper and power off my board.
8>connect board and open snipper again
9>read32k(offset 8000) from spi flash
now my question is:
why all memory contents is zero,it seems that i never burn the flash?
I try this steps use secondory.bin/hex(offset 0000),and i got the same result.
so must I had to use uart to burn spi flash?
thanks
Hello kurbylee,
I had the same problem, but in reality it seems that burning the code through the smartsnippets doesn't work.
hello sbourahla,I use snipperX64_ 3.0.7 , and u?
If we cannot burn by jtag,now new questions come:
1>what is difference between uart mode and uart/spi mode?
2>I can run my program by jtag(keil debug) ,and the suota app can find my board,
can i update all firmware file to spi flash on my board and then boot from board flash without jtag?
3>In suota app,image bank 0/1/2 means what?(0=header 1=secondery boot.hex 2=myprog.hex ???)
Addionally,I found that there is no wave(data) at flash PIN DI or DO when I click read32K or burn,while there is wave(data) when the board boot from power on.
PS,there is waveform at PIN cs and clk when read or burn.
anyone can give me some advice?
Sorry, I can't help you more. I encounter some difficulties me too to flash this Chip with the Basic Kit.
OK,I have connected my board to snipper,but while I cann't erase flash
[ACTION @15-04-17 17:01:29] Please press the hardware reset button on the board to start the download process.
(信息@15-04-17 17:01:35]重置
[INFO @15-04-17 17:01:37] Successfully disconnected from port COM4.
[INFO @15-04-17 17:01:37] Successfully downloaded firmware file to the board.
。。。。。
[INFO @15-04-17 17:04:44] Connection to COM4 port has successfully opened.
[ERROR @15-04-17 17:04:44] Received error message while checking whether SPI erase was successful: FFFFFFFF.
[INFO @15-04-17 17:04:44] Successfully disconnected from port COM4.
[ERROR @15-04-17 17:04:44] SPI Memory erasing failed.
I try to burn hex/bin to flash, it tell me sucessed,but the data from read32 is different every time。
why?
try another way:
1>connect board to keil through jlink,and run my program
2>open suota app at my android phone
3>found my da14580 device
4>select my.img(hex->bin->img)
5>update
now why i got a msg: invalid product header? how to solve this?
Hello,anybody can help me??
Hi , Kurlybee, I will ahve one of the local team support this. Can you describe your jumper settings on the board ? (I presume BASIC board).
When using external Flash in combination with UART you will need to put a three way jumper on the P0_5 (J5, J6) because it has to connect to SPI_MISO and to UART_Tx.
BR JE_Dialog
Hi kurbylee,
If you use suota and second boot loader, you will need to follow our memory map structure in flash. In flash memory, 1st image/2nd image/product header will be placed in certain address. If you don't follow this, our suota software will report error.
You can refer to below two papers for details:
DA14580 Software Patching over the Air (SPotA)
DA14580 Creation of a secondary boot loader
Regards!
PY
I can download fw to flash and use suota througth uart now. but the fw download by jtag cann't work. ths
hello
I have 2 question, i hope that u could help me please
1) I cannot download a hex file to the flash memory in the dialog development kit Expert, after burning in the memory i try to read and all the information become 0, and also I cannot erase the flash memory, is there some special process or configuration to download the hex file, I am using smart snippets 3.9?
2) Do u know how to use the project flash Programmer of the utilities?
thanks for your help
regards
Hi PALAKAS,
1) The expert kit doesn't have an spi memory on board so i suppose that you have the module that integrates both the i2c and the spi memories, so check if the spi memory is selected and not the i2c. You can either access that memory with the JTAG or the UART. You will have to make sure that in the board setup tab, the proper pins that the flash is located are selected P00/CLK, P03/CS, P05/MISO, P06/MOSI, also make sure that the J25 pins are equipped with jumpers.
2) What do you mean ? the flash programmer from the utilities folder is the kind of code that is downloaded through smart snippets when you hit the connect button, and then interfaces with the commands applied by Smart Snippets.
Thanks MT_dialog
THANKS FOR YOUR FAST RESPONSE
1)I burned the program using other kit and it worked successfully, thank you very much for your help
2 ) In the folder of the DA1458X_SDK there is a subfolder called utilities with some tools like mkimage and flash_programmer, the last one I don't know how to use it?, could you help me with some guide of this please
pd: I attacehed the folde Flash_Programmer
Thank you for your help
regards
Hi PALAKAS,
As mentioned before this is the source code that is downloaded in the 580 when you hit the connect button when you want to interface with your flash. After this code is downloaded to the 580 the 580 receives commands from smart snippets and is able to perform erase/burn/verification to the flash. The source code is provided in case you would like to add a different flash than the default dialog has verified.
Thanks MT_dialog