You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Damien George 43a8c8178e bare-arm: Switch to use MICROPY_ERROR_REPORTING_NONE to reduce size. 4 years ago
..
Makefile bare-arm: Switch to use MICROPY_ERROR_REPORTING_NONE to reduce size. 4 years ago
README.md bare-arm: Switch to use MICROPY_ERROR_REPORTING_NONE to reduce size. 4 years ago
lib.c bare-arm: Clean up the code, make it run on an F405, and add a README. 4 years ago
main.c bare-arm: Clean up the code, make it run on an F405, and add a README. 4 years ago
mpconfigport.h bare-arm: Switch to use MICROPY_ERROR_REPORTING_NONE to reduce size. 4 years ago
mphalport.h ports: Make new ports/ sub-directory and move all ports there. 7 years ago
stm32f405.ld bare-arm: Clean up the code, make it run on an F405, and add a README. 4 years ago
system.c bare-arm: Clean up the code, make it run on an F405, and add a README. 4 years ago

README.md

The bare-arm port

This port is intended to be the bare-minimum amount of code and configuration required to get MicroPython compiling and running on a bare-metal ARM-based target. No external dependencies or libraries are needed for this build and it shows exactly what hardware and system functionality MicroPython needs to run.

To build, simply run make in this directory. The output will be build/firmware.elf (and also corresponding .bin and .dfu files). This firmware can run on an STM32F405-based board (eg a PYBv1.x) and make deploy will program it to such an MCU when put in USB DFU mode. The output is a UART at 115200 baud, with TX on PA0.

There are some simple demonstration code strings (see main.c) which are compiled and executed when the firmware starts. They produce output on the system's stdout.

The size of the firmware (the machine code that is programmed to the microcontroller's flash/ROM) is currently around 57900 bytes.