2014-04-01 05:33 AM
I have a new stm32f030r8t6 board . i am having problem in downloading code to the flash . for the first time it got downloaded but problem occurs in the second time . error
connect failed check cable connection2014-04-02 05:09 AM
Don't try/do that in your/any IDE.
Download the Flash Loader Demonstrator software from the ST website. Connect a serial interface to the UART pins supported by your MCU. (Remember, you need a level shifter or USB-to-Serial adapter to cennect it to a PC). Pull the BOOT0 pin to H (Vdd), and the BOOT1 pin to L(GND) during power-up, to boot the MCU into the system bootloader. Then start the Flash Loader Demonstrator, and do a mass erase. Your MCU should be accessible again afterwards.2014-04-02 06:32 AM
Thanks fm for clarifying.
Sorry, the link I posted was for solution which you have to develop. My mistake. The link you want is this one : http://www.st.com/web/en/catalog/tools/FM147/CL1794/SC961/SS1533/PF257525?s_searchtype=keyword2014-04-02 11:49 PM
Thank you so much but
how to Pull the BOOT0 pin to H (Vdd), and the BOOT1 pin to L(GND) during power-up, to boot the MCU into the system bootloader. I dont know how to do it2014-04-02 11:55 PM
I am getting error No response from the target the boot loader cannot be started. What sould be the baud rate, parity , echo and time out and how to Pull the BOOT0 pin to H (Vdd), and the BOOT1 pin to L(GND) during power-up.
2014-04-03 01:37 AM
The Flash Loader Demonstrator software is described here:
http://www.st.com/web/en/catalog/tools/PF257525
A document describing the USART protocol of the system bootloader can be foun here:http://stm32.eeelec.com/html/STM32F0%20resources.htm
I never tried this on a F0, but it presumably works the same way as on F1/2/3/4. The system bootloader support should be noted in the reference manual or the datasheet of your MCU...and how to Pull the BOOT0 pin to H (Vdd), and the BOOT1 pin to L(GND) during power-up.I suggest pull-up/pull-down resistors between 1k ... 10k, but hard tying to Vdd/GND might work too. You need this pullup/down only for a few milliseconds during power-up, and can remove it then. And lastly - you cannot directly RS232 signals to STM32 uart pins, you need a level converter (or an USB-Serial converter). RS232 defines a level from -5V...+5V up to -12V...+12V, which migt kill you MCU.
2014-04-03 02:16 AM
But how to pull high as in f030 controller only boot 0 is there . boot 1 is not there boot 0 and boot 1 pin is preent in debugger but how to make it high and low . neway a similar type of problem i found in link. I think this will help
http://www.coocox.org/forum/topic.php?id=2068#post-5918 but where to get the default st-link loade as the I searched in the path mentioned in this link but I didn't get can you elp yo find the file .2014-04-03 02:52 AM
Hi
''But how to pull high as in f030 controller only boot 0 is there . boot 1 is not there'' If Boot1 is not there - you do not need to worry about it. ''boot 0 and boot 1 pin is preent in debugger but how to make it high and low'' The Debugger and the Flash Loader Demonstrator are mutually exclusive. You should not be using the debugger when you are using the FLD program.2014-04-03 03:06 AM
Ok i got both the boot 0 and boot 1 pin it is in User and read protection option bytes. but i dont kw hot make it high or low whether to make it in software but if software there is no code or by harware. Please i am completely new in it . please guide me how to do make it high and low to the said pins please
2014-04-03 03:50 AM
Ok i got both the boot 0 and boot 1 pin it is in User and read protection option bytes.
No, I mean actual, physical pins on the chip. Depending on the state of the BOOT0/BOOT1 pin, the MCU decides where to start execution from, either Flash, RAM or the system bootloader. The code doing this is ROM (i.e. hardcoded), you can not (and need not to) change it. The required level for each pin had been mentioned before, and is described in the documents (can't remember which pin to which level at the moment). Strap one pin via a resistor to Vdd, the other to Gnd, and then power on. The MCU starts up into bootloader mode, and waits for UART data to arrive, corresponding to the bootloader protocol. That's the time were you start up the Flash Loader Demonstrator software. Once you are connected, do a mass erase, and try access with the STLink (after you have powered down the MCU, and removed the UART interface). Last time I did this, I had to try two or three times before getting access to the MCU, so don't get discouraged.
2014-04-03 03:54 AM
will I have to do this
1.) Disconnect your board from usb or other voltage supply. 2.) Connect the BOOT0 Pin with High (3V). 3.) Plugin the usb cable again. 4.) Download a write programm to the board which doesn’t configure the PA11 and PA12 Pins. 5.) Disconnect the usb again. 6.) Disconnect the BOOT0 from High (3V) again. 7.) Plugin the USB again and see if the board works normal again.