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?
-
\$\begingroup\$ Why do you want to re(design) an IDE. Are you only looking for flashing the program to the MCU flash? \$\endgroup\$User323693– User3236932017年01月07日 17:18:49 +00:00Commented Jan 7, 2017 at 17:18
-
\$\begingroup\$ Yes.. I just wanna know the procedure for flashing the program to the MCU \$\endgroup\$Sanal Parakkat– Sanal Parakkat2017年01月07日 17:21:11 +00:00Commented 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\$User323693– User3236932017年01月07日 17:23:42 +00:00Commented 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\$Steve G– Steve G2017年01月07日 17:29:39 +00:00Commented 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\$Sanal Parakkat– Sanal Parakkat2017年01月07日 17:31:13 +00:00Commented Jan 7, 2017 at 17:31
1 Answer 1
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.
-
\$\begingroup\$ Yes, though the bootloaders are far less commonly used than the JTAG/SWD (or for STM8, SWIM) interfaces. \$\endgroup\$Chris Stratton– Chris Stratton2017年01月07日 21:14:28 +00:00Commented Jan 7, 2017 at 21:14