Is there a way to upload applications to an STM32 board over the ethernet?
I need to be able to upload code to ~200 Nucleo F429ZI boards that are only connected together with a PC via a LAN.
Is there a way to upload applications to an STM32 board over the ethernet?
I need to be able to upload code to ~200 Nucleo F429ZI boards that are only connected together with a PC via a LAN.
I project I did in the past had the following setup.
You can find example codes for STM324xG_EVAL and STM324x9I_EVAL board on STMCubeF4 under LWIP_IAP folder and you can follow the documents UM1709 and AN3968. You should adapt example codes according to your board.
I have not used LwIP_IAP - as noted by Gürtaç Kadem - but it seems like the easiest solution.
Another way (also applicable to non-ST boards, in case someone else wanders to this question) would be to add the mbed bootloader to your project. Then run a TCP server on your board, let the PC connect to the board and write the new application to the board. Store the new binary in flash, and the bootloader can then load the new binary on reboot.
Requires a bit of coding though. Also you'd need to add a trust relationship between computer and board, perhaps by signing the new binary with a private key and holding the public key on the board. mbed TLS is capable of this (f.e. via X509).