Programming custom DA14531 Module with Eval kit

⚠️
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 https://www.dialog-semiconductor.com/support . We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
AdamShier
Offline
Last seen: 8 months 6 days ago
Joined: 2020-07-30 18:04
Programming custom DA14531 Module with Eval kit

Hi,

 

I'm trying to program the flash of the DA14531 module using the module development kit over JTAG.

I'm using the SmartSnippets Toolbox SPI Flash Programmer, and have the SPI flash pinout as: SPI-CLK: P0_4, SPI-CS: P0_1, SPI-MISO: P0_3, SPI_MOSI: P0_0

I have the custom board SWCLK connected to J1:21, and SWDIO: J1:23, RST: J1:25. The grounds are connected together using the J2 header. The custom board is powered by at 3v by an external power supply, and the dev board is powered by usb.  

Programming the RAM of the device with Keil works, but programming the flash gives errors, around not being able to write the length at addresses, or read the memory locations. 

 

Example error from pressing Connect then Burn :

Successfuly configured SPI ports and pins

Successfully downloaded firmware file to the board

Check if memory empty...

Failed reading 16384 bytes from offset 0x00

Failed to check existing memory contents. 

 

The configuring of the SPI ports and pins that occurs on connect also intermittently fails. I have used this dev board to program the development 14531 tiny board SPI flash using the SmartSnippets Toolbox Spi Flash Programmer, so I don't think I'm using the tool incorrectly. 

 

Thanks

Device: 
AdamShier
Offline
Last seen: 8 months 6 days ago
Joined: 2020-07-30 18:04
This is solved, programming

This is solved, programming the flash doesn't work if the custom board is powered by 3v and the dev board is powered by usb (eventhough the dev board is set to 3v LDO mode). 

Works if the custom board power is just connected to the dev board ldo power via J2: V3. 

PM_Dialog
Offline
Last seen: 1 week 5 days ago
Staff
Joined: 2018-02-08 11:03
Hi AdamShier,

Hi AdamShier,

Glad that you figured your issue out and many thnaks for your hint! 

If you have any other question, please raise a new forum ticket.

Thanks, PM_Dialog