cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030K6 device issue

abilashs
Associate II
Posted on June 02, 2014 at 11:22

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-loader
14 REPLIES 14
chen
Associate II
Posted on June 02, 2014 at 11:44

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)

abilashs
Associate II
Posted on June 02, 2014 at 11:58

abilashs
Associate II
Posted on June 02, 2014 at 11:59

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?

chen
Associate II
Posted on June 02, 2014 at 12:18

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.

abilashs
Associate II
Posted on June 02, 2014 at 12:42

BOOT1 pin is not available in hardware(STM32F030K6)?

chen
Associate II
Posted on June 02, 2014 at 12:53

''BOOT1 pin is not available in hardware(STM32F030K6)?''

Then you only need Boot0

abilashs
Associate II
Posted on June 02, 2014 at 12:59

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)

chen
Associate II
Posted on June 02, 2014 at 13:12

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.

abilashs
Associate II
Posted on June 02, 2014 at 13:21

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.