12 posts / 0 new
Last post
Matthieu ANTOINE
Offline
Last seen:4 years 5 months ago
Expert
加入:2014-01-14 14:51
Flash programmer

Hello,

I saw in the SDK v3.0.2.0 that there is a Flash Programmer project. I suppose that it is provided to program an external memory through the DA14580 (I2C, SPI, UART).

Is it possible to get more information about it?

Thanks in advance.
Matt

JE_Dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2013-12-05 14:02
Hello Matthew,

Hello Matthew,
document UM-B-005 on the software download page has a good description and example of external EEPROM/FLASH from . That would be a good starting point. Section 5.4.2 and 5.4.3 are the most relevant for you there.
Bets regards,
JE_DIalog

Matthieu ANTOINE
Offline
Last seen:4 years 5 months ago
Expert
加入:2014-01-14 14:51
Thanks for the answer.

Thanks for the answer.

我的问题也是关于加载的方式the code inside the external memory. I have a .hex file coming from the compiler: What am I supposed to do with that file?

I just need to know how to use the Flash Programmer project to load what I got from the compiler to the EEPROM through the DA14580.

Regards,
Matt

JE_Dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2013-12-05 14:02
Hello Matthew, sorry, i

Hello Matthew, sorry, i understand now. We just released a great update to Smart Snippets t (downloadable from the support site). On the left hand side you'll see some tabs, so you can choose the SPI Flash or EEPROM programmer tool and use that.
Best regards,
JE_Dialog

Matthieu ANTOINE
Offline
Last seen:4 years 5 months ago
Expert
加入:2014-01-14 14:51
That is exactly what I was

That is exactly what I was looking for! Thanks!

Concerning, this feature, do you have a document explaining how it is done? I need to know what pins are used to perfom this operation (UART, I²C) because I'm designing a very small PCB and I have few available connections.

Thanks and regards,
Matt

JE_Dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2013-12-05 14:02
Hello Matt, i wll organise

Hello Matt, i wll organise some collateral to come to you by email. We will have some online soon also..
Best regards,
JE_Dialog

Matthieu ANTOINE
Offline
Last seen:4 years 5 months ago
Expert
加入:2014-01-14 14:51
Ok, thanks. Looking forward

Ok, thanks. Looking forward to your mail.
Matt

richard_lee
Offline
Last seen:3 years 8 months ago
加入:2014-03-27 04:23
I had found the SPI Flash

I had found the SPI Flash programmer , EEPROM Programmer and other options in SmartSnippets v3.0
But it seems to miss the command line options about these functions.

Please check it out.

richard_lee
Offline
Last seen:3 years 8 months ago
加入:2014-03-27 04:23
I do not get any response

I do not get any response about the my question: "Are there any command line option about "SPI Flash Programmer" and "EEPROM Prgrammer" in SmartSnippets v3 "?

Please help to check it out!

BB_Dialog
Offline
Last seen:8 months 1 week ago
Staff
加入:2013-12-05 14:44
Hi Richard_lee,

Hi Richard_lee,

no sorry, that's not implemented yet in the CLI tool of SmartSnippets.

Best regards,
Dialog BLE Support Team.

Zhao Gui Meng
Offline
Last seen:4 years 5 months ago
加入:2014-08-25 05:18
Hello, Dialog Supporters,

Hello, Dialog Supporters,
I am not sure if it's issue,
In your document UM-B-0012 table 2, the field of size be defined as below:
Offset 6 Code Size LS Byte
Offset 7 Code Size MS Byte
But when I check the contents in the programmed flash memory, order of the two bytes reversed.

I also checked the source code of flash_programmer in your SDK_3.0.6,
there are:
case ACTION_SPI_WRITE:
set_pad_spi();
spi_flash_peripheral_init();
p = get_write_position(buffer);
result = 0;
headersize = size+8;
if (starting_address==8)
{
Headerbuffer[6]= (unsigned char) (0xfF&(headersize>>8)); // first byte
Headerbuffer[7]= (unsigned char)(0xfF&headersize); // second byte
spi_flash_write_data(Headerbuffer,0, 8);
spi_flash_write_data(p,starting_address, size);
}
else
{
spi_flash_write_data(p,(uint32_t)starting_address, size);
}
response_write_action_result(buffer, (uint32)result,port_sel);
break;

Headerbuffer defined as:
unsigned char Headerbuffer[8]={0x70,0x50,0x00,0x00,0x00,0x00,0x00,0x02};

I think it took some wrong in UM-B-012 or flash_programmer.

I want to know which endia be used in your primary boot loader.

Best regards,

JE_Dialog
Offline
Last seen:1 month 1 week ago
Staff
加入:2013-12-05 14:02
Hi Z.G.Meng, we are updating

Hi Z.G.Meng, we are updating the document and you are correct, in rev1.0 it is incorrect : please see below for the updated table in UM-B-012 rev 2.0 that will be be released soon.

BR JE_Dialog