MIMXRT1064-EVK

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
Post Reply
sdherbert
Posts: 3
Joined: Wed Jun 10, 2020 6:53 pm

MIMXRT1064-EVK

Post by sdherbert » Wed Jun 17, 2020 3:50 pm

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.

As a side note. The MIMXRT1060_EVK is building without error. I compared a log dump of the 2 builds and see no difference up to fsl_flexspi_nor_boot.c file.

User avatar
dhylands
Posts: 3628
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: MIMXRT1064-EVK

Post by dhylands » Wed Jun 17, 2020 5:54 pm

Do you have your code checked in someplace?

User avatar
dhylands
Posts: 3628
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: MIMXRT1064-EVK

Post by dhylands » Wed Jun 17, 2020 6:01 pm

It looks like BOARD_FLASH_SIZE is defined in these places:

Code: Select all

sdk/devices/MIMXRT1021/project_template/board.h
79:#define BOARD_FLASH_SIZE (0x800000U)

sdk/devices/MIMXRT1011/project_template/board.h
79:#define BOARD_FLASH_SIZE (0x1000000U)

sdk/devices/MIMXRT1052/project_template/board.h
68:#define BOARD_FLASH_SIZE (0x4000000U)

sdk/devices/MIMXRT1062/project_template/board.h
68:#define BOARD_FLASH_SIZE (0x800000U)

sdk/devices/MIMXRT1015/project_template/board.h
79:#define BOARD_FLASH_SIZE (0x1000000U)
I don't see the sdk/devices/MIMXRT1064/project_template/board.h file listed, so it looks like the definition is missing from that file.

sdherbert
Posts: 3
Joined: Wed Jun 10, 2020 6:53 pm

Re: MIMXRT1064-EVK

Post by sdherbert » Wed Jun 17, 2020 7:52 pm

I only have the code on my local machine at the moment. The template files board.h and board.c are both appear to be missing a lot of information.

Now to track that information down...

Thank you.

Post Reply