Hi,
I am new to locally compiling MicroPython for a NUCLEO_F411RE board.
I am successfully compiling on a Linux box and programming my board.
My question is how do I specify the build variants for compiling 'standard' or 'double FP' ?
Regards
Phil
Compiling MicroPython on STM32 specifying build variants?
Re: Compiling MicroPython on STM32 specifying build variants?
Are you talking about micropython support for single- or double-precision floating point
OR
whether the usage of floating-point in C-code results in software emulation vs floating point hardware?
Re: Compiling MicroPython on STM32 specifying build variants?
I’m talking about MicroPython compiling the standard or double precision versions.
These variants are given on the firmware website as precompiled files but I wish to compile them myself.
These variants are given on the firmware website as precompiled files but I wish to compile them myself.
Re: Compiling MicroPython on STM32 specifying build variants?
The macro to config is
Code: Select all
#define MICROPY_FLOAT_IMPL
Code: Select all
// Float and complex implementation
#define MICROPY_FLOAT_IMPL_NONE (0)
#define MICROPY_FLOAT_IMPL_FLOAT (1)
#define MICROPY_FLOAT_IMPL_DOUBLE (2)
Otherwise, you can do it in mpconfig.h