Skip to main content
HamidRezaMaddah
Associate III
July 31, 2018
Solved

STM32F030RC programming flash problem

  • July 31, 2018
  • 5 replies
  • 1142 views

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

    This topic has been closed for replies.
    Best answer by HamidRezaMaddah

    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

    5 replies

    T J
    Senior III
    July 31, 2018

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

    HamidRezaMaddah
    Associate III
    July 31, 2018

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

    T J
    Senior III
    July 31, 2018

    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
    August 1, 2018

    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
    HamidRezaMaddahAuthorBest answer
    Associate III
    August 1, 2018

    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