Programming custom DA14531 Module with Eval kit

Learn MoreFAQsTutorials

3 posts / 0 new
Last post
AdamShier
Offline
Last seen:1 day 9 hours ago
Joined:2020-07-30 18:04
Programming custom DA14531 Module with Eval kit

Hi,

我想计划DA14531国防部的闪光ule 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:1 day 9 hours 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:10 hours 6 min 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