Program internal flash in Keil Uvision

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
11 posts / 0 new
Last post
Cusko
Offline
Last seen:3 years 2 months ago
Joined:2014-09-24 14:43
Program internal flash in Keil Uvision

How can I program internal flash of DA14586 in Keil Uvision? Theri is no programing algorithm for this.

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

Hi Cusko,

You cannot use Keil in order to program the flash of the 586 you will need to use the Smart Snippets studio and not keil. Open the Smart Snippets and select the 586 version of the family, make sure that the appropriate pins that interact with the flash are selected (P20/CLK, P23/SPI_EN, P24/SPI_DI, P29/SPI_DO and make sure that the vcc of the flash is powered), hit the connect button, erase the flash and burn the fw that you want.

Thanks MT_dialog

Cusko
Offline
Last seen:3 years 2 months ago
Joined:2014-09-24 14:43
I tried and no success. I am

I tried and no success. I am trying to program internal flash not external, so why would I need (P20/CLK, P23/SPI_EN, P24/SPI_DI, P29/SPI_DO). I only need SW_CLK and SWDIO.

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

Hi Cusko,

You mentioned that you would like to program the flash, the 586 has an embedded flash that is connected to the pins mentioned above internally (you can check the datasheet for this). So you will have to configure those pins in order for the flash programmer of Smart Snippets to be aware about those pins. Also what is your goal, to program the 586 sysram (just download code and run an example) ? Or program the embedded flash of the 586 and boot from the flash ?

Thanks MT_dialog

Cusko
Offline
Last seen:3 years 2 months ago
Joined:2014-09-24 14:43
I can program sysram with

I can program sysram with Uvision normally. But I want to program the embedded flash so I can boot from it. I tried with the Smartsnipet and I set all SPI ports. I can connect but erasing failed.
Must I set something in SPI Flash options?

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

Hi Cusko,

Since you 've selected from the initial dialog box that the SoC that you are interfacing is the 586, then there is no need to perform any changes to any other configuration. Please make sure that you have selected the proper SoC and that the proper pins for the internal flash are selected and also that the vcc flash jumper on the pro kit is populated. If that fails, please try to restart the tool and upon restarting check the pins again and make sure that they are properly configured.

Thanks MT_dialog

Cusko
Offline
Last seen:3 years 2 months ago
Joined:2014-09-24 14:43
我做了我所拥有的一切

Hi,

我做了我所拥有的一切Flash Vcc connected to power supply. All SPI Flash pins are set correctly when I choose 586 family, but I noticed that size of flash is empty.
I don't have development kit but custom board. SPI Flash pins are not connected anywhere on the board.

MT_dialog
Offline
Last seen:2 months 1 week ago
Staff
Joined:2015-06-08 11:34
Well, there is no other

Well, there is no other setting or configuration in order to program the internal memory of the 586, the last thing i can suggest is to check the version of the Smart Snippets tool that you are using, (on my side i use the 4.8.3.1804 and i am perfectly able to interact with the flash on a pro kit Connect / Erase / Burn). Apart from that, have you tried with another board in case something is wrong with that specific one ?

Thanks MT_dialog

Cusko
Offline
Last seen:3 years 2 months ago
Joined:2014-09-24 14:43
I have the same version. I

I have the same version. I will try with different board next week, maybe something is really wrong with this. We'll see. Thanks for now.

515300276@qq.com
Offline
Last seen:3 years 5 months ago
Joined:2017-03-31 03:26
我也有同样的问题,Have

我也有同样的问题,Have you solved it yet? By the way,Does the emulator not support?

Attachment:
Cusko
Offline
Last seen:3 years 2 months ago
Joined:2014-09-24 14:43
Not jet. I am waiting for

Not jet. I am waiting for another board. For J-link programmer I use one from old development board DA1480DEVKT.