-2
\$\begingroup\$

How does code download from PC to flash memory controller work? I mean what documents do IDE designers refer while designing this kind of software.

Are there any standard documents available for ST Microelectronics if one wishes to design a new IDE?

asked Jan 7, 2017 at 17:11
\$\endgroup\$
9
  • \$\begingroup\$ Why do you want to re(design) an IDE. Are you only looking for flashing the program to the MCU flash? \$\endgroup\$ Commented Jan 7, 2017 at 17:18
  • \$\begingroup\$ Yes.. I just wanna know the procedure for flashing the program to the MCU \$\endgroup\$ Commented Jan 7, 2017 at 17:21
  • \$\begingroup\$ One time, you have to use dedicated flash programmers..ST link for STMicroelectronics. If your question is specific about software upgrades, then there are plenty of options. \$\endgroup\$ Commented Jan 7, 2017 at 17:23
  • \$\begingroup\$ It depends on the controller manufacturer whether they make these documents generally available. Quite often they restrict them to companies that make development or programming tools. \$\endgroup\$ Commented Jan 7, 2017 at 17:29
  • \$\begingroup\$ ok. I understood this part. How do these flash programmers work? Are there any drivers available for this? I mean I write my code for controllers in PC, then I build them. After building them, then I request my ide to download the code to my flash. Can you explain after that what happens? How do code gets transmitted to controller flash? \$\endgroup\$ Commented Jan 7, 2017 at 17:31

1 Answer 1

1
\$\begingroup\$

Assuming you are talking about the ST32X series MCU's and using a serial connection from your IDE/PC then read this first, then the bootloader (over serial) document.

If you want to use other transfer Phy's then you need to do more research:
Application Notes:
– AN3154: CAN protocol used in the STM32 bootloader
– AN3155: USART protocol used in the STM32 bootloader
– AN3156: USB DFU protocol used in the STM32 bootloader
– AN4221: I2C protocol used in the STM32 bootloader
– AN4286: SPI protocol used in the STM32 bootloader

The "Flash Programmer" is just a piece of code in the client that offers a protocol over your selected Phy interface. Though this is simple stuff to look up, you really have no excuse for not being able to find it on your own.

answered Jan 7, 2017 at 17:38
\$\endgroup\$
1
  • \$\begingroup\$ Yes, though the bootloaders are far less commonly used than the JTAG/SWD (or for STM8, SWIM) interfaces. \$\endgroup\$ Commented Jan 7, 2017 at 21:14

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.