2012-04-10 03:18 AM
hi
i'm wondering how can i program the stmf4discovery using the usart??2012-04-10 06:29 AM
You can use the flash loader in the System ROM
Or you can write an IAP (In Application Programmer), which is described in an application note, and uses Y-Modem. You should also review the flash Programming Manual, and consider your options of writing your own.2012-04-10 08:40 AM
I read it and it seems that I should preprogram the board before I can use USART to download my programs ????
2012-04-10 08:46 AM
I'm not sure I understand.
The System Loader is on a ROM, and supplied with all devices, you can boot into it by pulling the BOOT0 pin High. New devices can be programmed via JTAG/SWD, USART or USB2012-04-10 09:03 AM
i m trying now all possibilities .look there is the situation I'm supposed to send a program for The F4 throw another board a in my case an stmF100 an the only why that i found is to send it from usart to usart so im wondering if i should preprogram the F4 Discovery before that it can receive the i don’t know ''the needed program''
sorry for my English :(
2012-04-10 09:30 AM
No problem, the word you're looking for is ''through''
The protocol used by the system loader is quite simple, I believe it's been described with varying degrees of detail over the years. The previous cited application contains source code for the host side code, this could be ported to a micro processor too, but the amount of data might be too high. You could always tunnel the serial data from another source, or PC, ie read from one serial port, and forward that data to the one connected to your F4 devices, and also route the data back. There is also an open-source project out there for programming the STM32's To get the F4 into programming mode, you'll need to assert the BOOT0 pin, and RESET the device. This is the most recent document related to the system loader You could try to find some older ones, and review the source code for the demonstrator, and open-source equivalent. This should give you some perspective. This is the app note for the STM32F1xx IAP, but the premise is the same for other parts.2012-04-10 11:06 AM
ok I will try all that i can thank you very much :) i think i will visit you other times