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.