I've successfully ported micropython on a STM32Nucleo-F401RE board. I can access to REPL console and interacting with led on board.
I've defined a new board following the code of already existing board definitions. But, I've a problem related with port pin generation and I suspect that is related to pins.csv file that I've copied from STM32F4DISC board. When i compile miropython, the following error is generated:
Code: Select all
CC pin.c
In file included from ../py/mpstate.h:34:0,
from ../py/runtime.h:29,
from pin.c:32:
build-STM32F4NUCLEO/genhdr/pins_af_const.h:14:65: error: 'GPIO_AF5_SPI3' undeclared here (not in a function)
{ MP_OBJ_NEW_QSTR(MP_QSTR_AF5_SPI3), MP_OBJ_NEW_SMALL_INT(GPIO_AF5_SPI3) },
^
../py/obj.h:79:66: note: in definition of macro 'MP_OBJ_NEW_SMALL_INT'
#define MP_OBJ_NEW_SMALL_INT(small_int) ((mp_obj_t)((((mp_int_t)(small_int)) << 1) | 1))
^
make: *** [build-STM32F4NUCLEO/pin.o] Error 1
make: *** Waiting for unfinished jobs....
Any hints?
Carmine