2014-06-02 02:22 AM
In this device(STM32F030K6), CLK & DIO signals for SWD are in portA (PA13&PA14). But unknowingly I have changed the default settings of portA(PA13-dio, PA14-clk) and flashed the program. so I want to erase the flash memory through USART after make BOOT0=1 & BOOT1=0(for access system memory).
I got to know about Flash loader demonstrator in order to erase my flash data. But it is showing the following error message, ''No response from the target, the boot loader cannot be started.'' Though I have made BOOT=1, it is showing the same error. Help me how to solve this issue soon? #stm32-usart-flash-boot-loader2014-06-02 02:44 AM
Hi
''so I want to erase the flash memory through USART after make BOOT0=1 & BOOT1=0(for access system memory). I got to know about Flash loader demonstrator in order to erase my flash data. But it is showing the following error message, ''No response from the target, the boot loader cannot be started.'' Though I have made BOOT=1, it is showing the same error. Help me how to solve this issue soon?'' Silly question : After you make Boot0 = 1, Boot1 = 0 - have you rebooted the processor? (the Boot pins only take effect on a processor boot up)2014-06-02 02:58 AM
2014-06-02 02:59 AM
Thanks for your response Mr.sung.chen_chung
------------------------------------------------------------I have made only BOOT0 = 1 by hardware. But I couldn't able to change BOOT1 value via software. Tell me how can i?
2014-06-02 03:18 AM
Hi
''I have made only BOOT0 = 1 by hardware. But I couldn't able to change BOOT1 value via software. Tell me how can i?'' You can not. Boot0 is an input. Perhaps you did not understand what I said. Do this : Set Boot pins with hardware. Reboot processor/board. Try to connect with Flash loader demonstrator program.2014-06-02 03:42 AM
2014-06-02 03:53 AM
''BOOT1 pin is not available in hardware(STM32F030K6)?''
Then you only need Boot02014-06-02 03:59 AM
But in the datasheet, they have given that BOOT1 is also available. But user can change it only via software.
If possible, you pl refer page no 35 in RM0360 (Reference manual)2014-06-02 04:12 AM
Hi
''But in the datasheet, they have given that BOOT1 is also available. But user can change it only via software. If possible, you pl refer page no 35 in RM0360 (Reference manual)'' OK - I see now. The reference manual says : ''nBOOT1 bit in in the User option byte'' ''The BOOT1 value is the opposite of the nBOOT1 Option Bit'' The option bytes can be accessed through the debugger (ST-Link) via St-Link Util.exe OR The user can program the option bytes. The address for the Option bytes is on Page 38. Option Byte access (Write procedure) is on page 45. Check the 'Standard Peripheral Library' for your device - there should already be code to write the options bytes.2014-06-02 04:21 AM
Hi,
In this device(STM32F030K6), CLK & DIO signals for SWD are in portA (PA13&PA14). But unknowingly I have changed the default settings of portA(PA13-dio, PA14-clk) and flashed the program. so debugging wouldn't happening. So i need to erase the main flash memory. help me how to do this by using USART programming and Flash load demonstrator software.