fixing flash erase #374
This commit is contained in:
parent
fedb12f2f3
commit
4da17d67b6
|
@ -14,6 +14,6 @@ if not exist openocd/openocd.exe echo openocd/openocd.exe NOT FOUND
|
|||
if not exist openocd/openocd.exe exit -1
|
||||
|
||||
|
||||
openocd\openocd.exe -f openocd/stm32f429disc1.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x080000" -c shutdown
|
||||
openocd\openocd.exe -f openocd/stm32f429disc1.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x0100000" -c shutdown
|
||||
|
||||
rem openocd-0.8.0.exe -f interface/stlink-v2.cfg -f board/stm32f4discovery.cfg -c init -c targets -c "halt" -c "flash erase_address 0x08000000 0x080000" -c shutdown
|
|
@ -9,8 +9,9 @@ import java.awt.event.ActionEvent;
|
|||
public class EraseChip extends ProcessStatusWindow {
|
||||
private final JButton button = new JButton("Erase Chip");
|
||||
|
||||
private static final String FLASH_SIZE = "0x0100000";
|
||||
private static final String OPEN_OCD_COMMAND = FirmwareFlasher.OPENOCD_CMD +
|
||||
" -c init -c targets -c \"halt\" -c \"flash erase_address 0x08000000 0x080000\" -c shutdown";
|
||||
" -c init -c targets -c \"halt\" -c \"flash erase_address 0x08000000 " + FLASH_SIZE + "\" -c shutdown";
|
||||
|
||||
public EraseChip() {
|
||||
button.addActionListener(new AbstractAction() {
|
||||
|
|
Loading…
Reference in New Issue