Author Topic: DIY STM32 flash programmer with FT232R  (Read 2602 times)

0 Members and 1 Guest are viewing this topic.

Offline BoscoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 279
DIY STM32 flash programmer with FT232R
« on: September 08, 2015, 11:25:31 am »
So i'm doing a programmer to make a batch of MCUs a bit easier to program with an automated process (program). However I'm having trouble with the UART comms. I have set all the baud rates etc. to the correct values and i'm sending the commands described in the boot loader documentation from ST but I get strange or no no response. First off the baud rate the boot loader is sending seems to be faster than the max of 115200 and some times I get one, two or three bytes sent back from the boot loader when I should be getting fifteen for the command I'm sending.

This is the document I've been using http://www.st.com/web/en/resource/technical/document/application_note/CD00264342.pdf

If anyone who has experience doing this could give me some pointers?

Thanks
 

Online Psi

  • Super Contributor
  • ***
  • Posts: 10229
  • Country: nz
Re: DIY STM32 flash programmer with FT232R
« Reply #1 on: September 08, 2015, 11:28:59 am »
I use this linux stm32 flashing tool to program some STM32F1 chips and it works fine.
http://sourceforge.net/projects/stm32flash/

You could look at the code or datalog what it sends and compare that to your app. It might give you some clues.
Greek letter 'Psi' (not Pounds per Square Inch)
 

Offline BoscoeTopic starter

  • Frequent Contributor
  • **
  • Posts: 279
Re: DIY STM32 flash programmer with FT232R
« Reply #2 on: September 08, 2015, 03:23:01 pm »
Thanks. I found what it was. I didn't initialise the boot loader, i just started writing commands to it.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf