cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F030RC programming flash problem

HamidRezaMaddah
Associate III

Hi

I have used STM32F030RC.

I program the flash memory, using bootloader from PA9 and PA10.

I have programmed the microcontrollers first time successfully. But after some program times, I can not program them. I traced the problem. The micro goes to boot mode with BOOT0 pin ( The main program does not run). but when I send 0x7F, I don't receive the response.

I find that the micro does not receive the 0x7F ( when it receive, it will High the TX pin).

And I fine the micro receive the 0x7F with oscop.

please help

1 ACCEPTED SOLUTION

Accepted Solutions
HamidRezaMaddah
Associate III

The problem was resolved.

There are some undocumented things in stm32f030.

I find the chip can program from PA2 and PA3 that is not in document.

I have a BL600 sencor, connected to PA3 that is UART2 RX. the sensor generate pulses and micro select PA2 and PA3 for program media. my program solved by demontaging the sensor

View solution in original post

5 REPLIES 5
T J
Lead

to boot from the internal flash, Boot0 should be pulled down with a 10K resistor.

HamidRezaMaddah
Associate III

It boots from internal flash. It does not boot from system bootloader

T J
Lead

Yes, if the Boot0 pin is low.=, It boots from internal flash..

but if Boot0 is floating ? or high ? can you check with a meter or scope ?

HamidRezaMaddah
Associate III

I force the BOOT0 pin high, by pull up, when i want program the chip and I think it goes to boot mode, because the main application does not start. Also I checked with meter

HamidRezaMaddah
Associate III

The problem was resolved.

There are some undocumented things in stm32f030.

I find the chip can program from PA2 and PA3 that is not in document.

I have a BL600 sencor, connected to PA3 that is UART2 RX. the sensor generate pulses and micro select PA2 and PA3 for program media. my program solved by demontaging the sensor