1. Can micropython and its firmwares be built on STM32Cube IDE using an STM32F405xx (pyboard) processor configuration?
2. Is source available for the threading firmware?
3. In general, how does your firmware differ from the standard stm32 firmware provided by STM32Cube?
Build upython on stm32cube ide?
Re: Build upython on stm32cube ide?
If you can make the IDE run a Makefile, yes. What I'd recommend is following the steps to build the firmware outside the IDE (see https://github.com/micropython/micropyt ... /README.md) and then once that's working you can invoke it from the IDE.miltmobley wrote: ↑Sun Jul 26, 2020 2:36 am1. Can micropython and its firmwares be built on STM32Cube IDE using an STM32F405xx (pyboard) processor configuration?
If you want to build the pyboard firmware exactly, then
Code: Select all
make BOARD=PYBV11
Code: Select all
make BOARD=MYBOARD BOARD_DIR=path/to/MYBOARD
It's the same source, just built with a different option.
You can either do this by adding
Code: Select all
#define MICROPY_PY_THREAD (1)
or by adding
Code: Select all
make BOARD= .... CFLAGS_EXTRA='-DMICROPY_PY_THREAD=1'
Can you explain what you mean by "standard stm32 firmware provided by STM32Cube?"miltmobley wrote: ↑Sun Jul 26, 2020 2:36 am3. In general, how does your firmware differ from the standard stm32 firmware provided by STM32Cube?
-
- Posts: 30
- Joined: Mon Mar 07, 2016 11:44 pm
Re: Build upython on stm32cube ide?
I meant the stm32 hal library layer, which I assumed micropython would have some variant of. But after some investigation,
it seems the micropython libs are accessing the hardware directly and not calling through a hal layer.
Thanks for your other answers.
it seems the micropython libs are accessing the hardware directly and not calling through a hal layer.
Thanks for your other answers.
Re: Build upython on stm32cube ide?
Some of the peripherals are accessed through the HAL layer, and some are accessed directly.