Could you please check if you are using the correct GPIOs? Do you have a custom board, or you are using any of or DK? I can erase the SPI flash in the DA14531 Pro-DK using CLI.
The jumpers seem to be placed correctly. Please try to erase the SPI flash through the Flash Programmer from the Smart Snippets toolbox. Are you able to connect over JTAG and erase it?
Thanks your support. I was able to connect over JTAG and erase it. And after using the Smart Snippets, I was able to access SPI Flash with CLI using same command.
Thanks,
Eric
C:\Program Files\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14>SmartSnippetsToolbox.exe -type spi -chip DA14531 -clk P0_4 -cs P0_1 -miso P0_3 -mosi P0_0 -jtag 480070244 -cmd erase Launching SmartSnippets Toolbox v 5.0.14.3080 Command line arguments: -type spi -chip DA14531 -clk P0_4 -cs P0_1 -miso P0_3 -mosi P0_0 -jtag 480070244 -cmd erase Found SW-DP with ID 0x0BC11477 Scanning AP map to find all available APs AP[1]: Stopped AP scan as end of AP map has been reached AP[0]: AHB-AP (IDR: 0x04770031) Iterating through AP map to find AHB-AP to use AP[0]: Core found AP[0]: AHB-AP ROM base: 0xE00FF000 CPUID register: 0x410CC601. Implementer code: 0x41 (ARM) Found Cortex-M0 r0p1, Little endian. FPUnit: 4 code (BP) slots and 0 literal slots CoreSight components: ROMTbl[0] @ E00FF000 ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB BTLE device selected. Using default baudrate: 115200 Bd. Failed setting the following values to SPI Flash gpios: CLK=P0_4, CS=P0_1, MISO=P0_3, MOSI=P0_0. SPI闪存erasing failed.
C:\Program Files\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14>SmartSnippetsToolbox.exe -type spi -chip DA14531 -clk P0_4 -cs P0_1 -miso P0_3 -mosi P0_0 -jtag 480070244 -cmd erase Launching SmartSnippets Toolbox v 5.0.14.3080 Command line arguments: -type spi -chip DA14531 -clk P0_4 -cs P0_1 -miso P0_3 -mosi P0_0 -jtag 480070244 -cmd erase Found SW-DP with ID 0x0BC11477 Scanning AP map to find all available APs AP[1]: Stopped AP scan as end of AP map has been reached AP[0]: AHB-AP (IDR: 0x04770031) Iterating through AP map to find AHB-AP to use AP[0]: Core found AP[0]: AHB-AP ROM base: 0xE00FF000 CPUID register: 0x410CC601. Implementer code: 0x41 (ARM) Found Cortex-M0 r0p1, Little endian. FPUnit: 4 code (BP) slots and 0 literal slots CoreSight components: ROMTbl[0] @ E00FF000 ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB BTLE device selected. Using default baudrate: 115200 Bd. Failed setting the following values to SPI Flash gpios: CLK=P0_4, CS=P0_1, MISO=P0_3, MOSI=P0_0. SPI闪存erasing completed successfully.
Hi Eric Kim,
Could you please check if you are using the correct GPIOs? Do you have a custom board, or you are using any of or DK? I can erase the SPI flash in the DA14531 Pro-DK using CLI.
Thanks, PM_Dialog
Thank Good Dialog Team for quick reply. I took a test with the DA14531 Pro-DK.
Hi Eric,
Can you please check if you have the correct jumper configuraion? I have tested it in my side as well.
Thanks, PM_Dialog
Hi PM_Dialog,
Thanks for your kind support. Could you check the jumper configuration of my DK? I have uploaded it.
Thanks, Eric
Hi Eric Kim,
The jumpers seem to be placed correctly. Please try to erase the SPI flash through the Flash Programmer from the Smart Snippets toolbox. Are you able to connect over JTAG and erase it?
Thanks, PM_Dialog
Hi PM_Dialog
Thanks your support. I was able to connect over JTAG and erase it. And after using the Smart Snippets, I was able to access SPI Flash with CLI using same command.
Thanks,
Eric
C:\Program Files\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14>SmartSnippetsToolbox.exe -type spi -chip DA14531 -clk P0_4 -cs P0_1 -miso P0_3 -mosi P0_0 -jtag 480070244 -cmd erase
Launching SmartSnippets Toolbox v 5.0.14.3080
Command line arguments:
-type spi -chip DA14531 -clk P0_4 -cs P0_1 -miso P0_3 -mosi P0_0 -jtag 480070244 -cmd erase
Found SW-DP with ID 0x0BC11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770031)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p1, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
BTLE device selected.
Using default baudrate: 115200 Bd.
Failed setting the following values to SPI Flash gpios: CLK=P0_4, CS=P0_1, MISO=P0_3, MOSI=P0_0.
SPI闪存erasing failed.
C:\Program Files\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14>SmartSnippetsToolbox.exe -type spi -chip DA14531 -clk P0_4 -cs P0_1 -miso P0_3 -mosi P0_0 -jtag 480070244 -cmd erase
Launching SmartSnippets Toolbox v 5.0.14.3080
Command line arguments:
-type spi -chip DA14531 -clk P0_4 -cs P0_1 -miso P0_3 -mosi P0_0 -jtag 480070244 -cmd erase
Found SW-DP with ID 0x0BC11477
Scanning AP map to find all available APs
AP[1]: Stopped AP scan as end of AP map has been reached
AP[0]: AHB-AP (IDR: 0x04770031)
Iterating through AP map to find AHB-AP to use
AP[0]: Core found
AP[0]: AHB-AP ROM base: 0xE00FF000
CPUID register: 0x410CC601. Implementer code: 0x41 (ARM)
Found Cortex-M0 r0p1, Little endian.
FPUnit: 4 code (BP) slots and 0 literal slots
CoreSight components:
ROMTbl[0] @ E00FF000
ROMTbl[0][0]: E000E000, CID: B105E00D, PID: 000BB008 SCS
ROMTbl[0][1]: E0001000, CID: B105E00D, PID: 000BB00A DWT
ROMTbl[0][2]: E0002000, CID: B105E00D, PID: 000BB00B FPB
BTLE device selected.
Using default baudrate: 115200 Bd.
Failed setting the following values to SPI Flash gpios: CLK=P0_4, CS=P0_1, MISO=P0_3, MOSI=P0_0.
SPI闪存erasing completed successfully.
C:\Program Files\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.14>
Hi Eric,
Glad that you are abel to program/erase the SPI using CLI.
Thanks, PM_Dialog