Page 2 of 2

Re: How to port Micropython to new Microcontroller

Posted: Mon Jan 27, 2020 4:09 am
by jimmo
FYI if you're updating the tinyusb module, you're going to run into the same issue I described here:
https://github.com/micropython/micropython/pull/5558

(I can't tell if this is a git bug or limitation, but yeah looks like moving submodules inside submodules is a problem)

Re: How to port Micropython to new Microcontroller

Posted: Mon Feb 10, 2020 12:14 am
by blipton
I too would love to port to a nucleo board that's currently not listed in the official supported hardware (STM32H743).

I assume the NUCLEO-F401RE is the best starting point, but having trouble importing/creating an Stm32CubeIde project with it. Is it generally recommended to build strictly via the command-line, or is are most Stm32 ports using the IDE?

Re: How to port Micropython to new Microcontroller

Posted: Mon Feb 10, 2020 9:59 pm
by jimmo
All the ports (including stm32) build from the command line.

The H7 is quite different to the F401. ports/stm32/boards/NUCLEO_H743ZI would be a much better starting point (and possibly even exactly what you need??)

Re: How to port Micropython to new Microcontroller

Posted: Wed Jun 10, 2020 7:09 pm
by sdherbert
I'm working on a port for the MIMXRT1064_EVK. I've created these files under ports/mimrxt:

MIMXRT1064_EVK/evkmimxrt1064_flexspi_nor_config.h
MIMXRT1064_EVK/flash_config.c
MIMXRT1064_EVK/mpconfigboard.h
MIMXRT1064_EVK/mpconfigboard.mk
MIMXRT1064.ld

When I try and compile the port I run into the following errors:

Code: Select all

../../lib/nxp_driver/sdk/devices/MIMXRT1064/xip/fsl_flexspi_nor_boot.h:106:2: error: #error "Please define macro BOARD_FLASH_SIZE"
  106 | #error "Please define macro BOARD_FLASH_SIZE"
      |  ^~~~~
../../lib/nxp_driver/sdk/devices/MIMXRT1064/xip/fsl_flexspi_nor_boot.c:45:3: error: 'FLASH_SIZE' undeclared here (not in a function); did you mean 'FLASH_BASE'?
   45 |   FLASH_SIZE,                 /* size */
      |   ^~~~~~~~~~
      |   FLASH_BASE
make: *** [../../py/mkrules.mk:63: build-MIMXRT1064_EVK/lib/nxp_driver/sdk/devices/MIMXRT1064/xip/fsl_flexspi_nor_boot.o] Error 1
BOARD_FLASH_SIZE is defined in mpconfigboard.h.

I was hoping someone has seen this error and knows what I overlooked when I added the files for the 1064.

The 1060 is still building without errors.