I'm trying to work out the best way to attach / interface an stm32f processor with a Linux based ARM SoC?
Is it possible for the stm32 to communicate with the ARM SoC via I2C ...are there any examples of stm32 acting as an I2C client talking to a Linux controller/Kernel Device Driver?
Ideally, I would like be able to upload new firmware to the stm32 from the Linux ARM SoC.
All links, tips and flaming appreciated.
Bruce
-
\$\begingroup\$ There are nearly countless options, but asynchronous serial (ie using "UART" peripherals) and USB may be among the best fits. \$\endgroup\$Chris Stratton– Chris Stratton2014年11月11日 17:41:47 +00:00Commented Nov 11, 2014 at 17:41
1 Answer 1
STM32's have a serial bootloader built in. See http://www.scienceprog.com/flashing-programs-to-stm32-embedded-bootloader/
STMicro makes a Flash tool to get at the bootloader. If you can find a version that runs under Linux, do some switching to put the STM32 into bootloading mode, and set up uart comms between your chips, you're good to go.
-
1\$\begingroup\$ Thanks Scott!! I wanted to confirm there were no well known I2C or SPI methods. I also don't have a spare UART, however as this is a Linux system I'll try MAX3109 which provides dual UART via SPI. \$\endgroup\$user3181191– user31811912014年11月13日 12:24:12 +00:00Commented Nov 13, 2014 at 12:24