Skip to main content
HamidRezaMaddah
Associate III
Jul 31, 2018 12:45 PM UTC
Solved

STM32F030RC programming flash problem

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.
    HamidRezaMaddah
    HamidRezaMaddahBest answer
    Associate III
    Aug 1, 2018 7:44 AM UTC

    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
    Jul 31, 2018 1:58 PM UTC

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

    HamidRezaMaddah
    Associate III
    Jul 31, 2018 2:06 PM UTC

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

    T J
    Senior III
    Jul 31, 2018 2:24 PM UTC

    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
    Aug 1, 2018 4:07 AM UTC

    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
    Aug 1, 2018 7:44 AM UTC

    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