3 posts / 0 new
Last post
liujian632
Offline
Last seen:1 year 3 months ago
Joined:2017-08-05 11:17
命令行擦除flash失败

您好:

想使用命令行进行da14580外挂flash的烧写,却发现无法擦除flash

1、运行SmartSnippets.exe -type booter -chip DA14580-01 -jtag xxxxxxxx -file F:\project\smartsnippertsworkspace\resources\jtag_programmer.bin

运行后提示Successfully downloaded firmware file to the board.

2,运行SmartSnippets.exe类型spi芯片DA14580-01 -jtag xxxxxxxx -cmd erase

运行结束后提示SPI Memory erasing failed 擦除失败

利用smart snippets点击connect,再运行SmartSnippets.exe -type spi -chip DA14580-01 -jtag xxxxxxxx -cmd erase

会提示SPI Memory erasing completed successfully.擦除成功

smart snippet版本v3.6

我第一步做错了什么么?还是第一步和第二步之间还要有其他操作才可以?

Device:
CYibin
Offline
Last seen:3 months 3 weeks ago
Staff
Joined:2017-12-14 02:48
你好,

你好,

我用 585 DEV-KIT BASIC 开发板,SS toolbox 版本为 V5.0.8,敲入和你类似的命令,是可以擦除成功的。

请用最新的 toolbox 尝试。

操作过程信息如下:

C:\Program Files (x86)\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.8>SmartSnippetsToolbox.exe -chip DA14585-00 -type booter -jtag 480061335 -file C:\work\github\da1458x_sdks\6.0.10.511\utilities\flash_programmer\jtag_programmer.hex Launching SmartSnippets Toolbox v 5.0.8.2321 Sep 25, 2019 3:49:58 PM java.util.prefs.WindowsPreferences  WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. Found SW-DP with ID 0x0BB11477 No AP preselected. Assuming that AP[0] is the AHB-AP AP-IDR: 0x04770021, Type: AHB-AP AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table) Found Cortex-M0 r0p0, 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 System Control Register value: 0xA6. Found SW-DP with ID 0x0BB11477 Using pre-configured AP[0] as AHB-AP to communicate with core AP-IDR: 0x04770021, Type: AHB-AP AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table) Found Cortex-M0 r0p0, 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 Successfully downloaded firmware file to the board. C:\Program Files (x86)\SmartSnippetsToolbox\SmartSnippetsToolbox5.0.8>SmartSnippetsToolbox.exe -chip DA14585-00 -type spi -jtag 480061335 -cmd erase Launching SmartSnippets Toolbox v 5.0.8.2321 Sep 25, 2019 3:54:24 PM java.util.prefs.WindowsPreferences  WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5. Found SW-DP with ID 0x0BB11477 No AP preselected. Assuming that AP[0] is the AHB-AP AP-IDR: 0x04770021, Type: AHB-AP AHB-AP ROM: 0xE00FF000 (Base addr. of first ROM table) Found Cortex-M0 r0p0, 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: 57600 Bd. Successfully set SPI Flash gpios: CLK=P0_0, CS=P0_3, MISO=P0_5, MOSI=P0_6. SPI Flash memory erasing completed successfully.

liujian632
Offline
Last seen:1 year 3 months ago
Joined:2017-08-05 11:17
谢谢您回答我的问题。 用新版本的smart

谢谢您回答我的问题。 用新版本的smart snippets studio确实可以正确擦除和烧写 SmartSnippets Studio v2.0.8

Topic locked