Page 1 of 1

MIMXRT1064-EVK

Posted: Wed Jun 17, 2020 3:50 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.

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.

Re: MIMXRT1064-EVK

Posted: Wed Jun 17, 2020 5:54 pm
by dhylands
Do you have your code checked in someplace?

Re: MIMXRT1064-EVK

Posted: Wed Jun 17, 2020 6:01 pm
by dhylands
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.

Re: MIMXRT1064-EVK

Posted: Wed Jun 17, 2020 7:52 pm
by sdherbert
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.