trouble trying to use the Macronix flash driver
Posted: Tue Apr 28, 2020 1:20 am
I'm trying to use the macronix driver on an stm32 iot discovery board. I've configured something wrong because when I try to build I get a ton of errors for things that should be defined in hal_wspi.h
For example:
Compiling hal_serial_nor.c
In file included from /home/geobrown/Software/ChibiOS/os/hal/lib/complex/serial_nor/hal_serial_nor.h:205:0,
from /home/geobrown/Software/ChibiOS/os/hal/lib/complex/serial_nor/hal_serial_nor.c:27:
/home/geobrown/Software/ChibiOS/os/hal/lib/complex/serial_nor/hal_serial_nor.c: In function 'bus_cmd':
/home/geobrown/Software/ChibiOS/os/hal/lib/complex/serial_nor/devices/macronix_mx25/hal_flash_device.h:189:42: error: 'WSPI_CFG_CMD_SIZE_16' undeclared (first use in this function); did you mean 'WSPI_CFG_CMD_SIZE_8'?
#define MX25_CFG_C16_8DTR (WSPI_CFG_CMD_SIZE_16 | \
I've defined
HAL_USE_WSPI TRUE in halconf.h
and
STM32_WSPI_USE_QUADSPI1 TRUE in mcuconf.h
Any thoughts ?
Geoffrey
For example:
Compiling hal_serial_nor.c
In file included from /home/geobrown/Software/ChibiOS/os/hal/lib/complex/serial_nor/hal_serial_nor.h:205:0,
from /home/geobrown/Software/ChibiOS/os/hal/lib/complex/serial_nor/hal_serial_nor.c:27:
/home/geobrown/Software/ChibiOS/os/hal/lib/complex/serial_nor/hal_serial_nor.c: In function 'bus_cmd':
/home/geobrown/Software/ChibiOS/os/hal/lib/complex/serial_nor/devices/macronix_mx25/hal_flash_device.h:189:42: error: 'WSPI_CFG_CMD_SIZE_16' undeclared (first use in this function); did you mean 'WSPI_CFG_CMD_SIZE_8'?
#define MX25_CFG_C16_8DTR (WSPI_CFG_CMD_SIZE_16 | \
I've defined
HAL_USE_WSPI TRUE in halconf.h
and
STM32_WSPI_USE_QUADSPI1 TRUE in mcuconf.h
Any thoughts ?
Geoffrey