STM32L072KBU3
Posted: Fri Jun 07, 2019 7:23 pm
Long-time MicroPython user but only on PC and pretty clueless to the microcontroller side of things. We have a fairly simple device running an ATtiny programmed in C which gets data from one UART, does some translation/command handling and forwards it to a second UART upon getting a hardware trigger, and vice-versa. Now this device gets upgraded and the new controller will be an STM32L072KBU3 apparently. I noticed the 'stm32' part so immediately thought of MicroPython. Some questions:
- the C code is fairly simple, would it be even worth doing this in MicroPython and is it going to be able to run uninterrupted for days/weeks at 921600 baud? (pun sort of intended, sub-question is whether this board+uPy would be fast enough to use polling or is it only going to run properly when interrupt-driven?)
- how do I figure out if this particular device can be supported? I.e. what aspects determine why it would/would not be?
- building firmware is a matter of starting from one of the board subdirectories in the stm32 directory, adjusting, make?
- firmware gets flashed using standard JTag tools and can be debugged (the C code I mean)?
- the C code is fairly simple, would it be even worth doing this in MicroPython and is it going to be able to run uninterrupted for days/weeks at 921600 baud? (pun sort of intended, sub-question is whether this board+uPy would be fast enough to use polling or is it only going to run properly when interrupt-driven?)
- how do I figure out if this particular device can be supported? I.e. what aspects determine why it would/would not be?
- building firmware is a matter of starting from one of the board subdirectories in the stm32 directory, adjusting, make?
- firmware gets flashed using standard JTag tools and can be debugged (the C code I mean)?