Other Parts Discussed in Thread: DP83869, TPIC2810, TCA6424, SYSCONFIG
Dear Champs,
My customer is developed their custom board using AM2432ALX(11x11mm) package and trying to build custom flash driver for their flash memory by referring below.
Their flash memory is w25g32jv.
They succeed to get below logs.
[OSPI Flash Diagnostic Test] Starting ... |
But, in stet 4, they failed to build caused below error.
~~~~~~~~~
Building file: "syscfg/ti_board_open_close.c"
Invoking: Arm Compiler
"D:/ti/ccs1100/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/bin/tiarmclang.exe" -c -mcpu=cortex-r5 -mfloat-abi=hard -mfpu=vfpv3-d16 -mlittle-endian -I"D:/ti/ccs1100/ccs/tools/compiler/ti-cgt-armllvm_1.3.0.LTS/include/c" -I"D:/ti/mcu_plus_sdk_am243x_08_01_00_36/source" -DSOC_AM243X -D_DEBUG_=1 -gstrict-dwarf -g -Wall -Wno-gnu-variable-sized-type-not-at-end -Wno-unused-function -MMD -MP -MF"syscfg/ti_board_open_close.d_raw" -MT"syscfg/ti_board_open_close.o" -I"D:/workspace_v11/ospi_flash_io_am243x-lp_r5fss0-0_nortos_ti-arm-clang/Debug/syscfg" -o"syscfg/ti_board_open_close.o" "syscfg/ti_board_open_close.c"
subdir_rules.mk:30: recipe for target 'syscfg/ti_board_open_close.o' failed
syscfg/ti_board_open_close.c:68:19: error: use of undeclared identifier 'gFlashNorQspiAttrs_W25Q32JV'; did you mean 'gFlashNorQspiAttrs_S25HL512T'?
.attrs = &gFlashNorQspiAttrs_W25Q32JV,
^~~~~~~~~~~~~~~~~~~~~~~~~~~
gFlashNorQspiAttrs_S25HL512T
~~~~~~~~~~~~
So, they are trying to build flash driver for their custom flash memory by referring below.
But, they could not find which files are related with qspi flash in the make file as below.
~~~~~~~~~~
at \mcu_plus_sdk_am243x_08_01_00_36\source\board\makefile.am243x.r5f.ti-arm-clang
FILES_common := \
eeprom.c \
eeprom_at24c.c \
ethphy.c \
ethphy_dp83869.c \
flash.c \
flash_nor_ospi.c \
flash_nor_ospi_device_MX25LM25645G.c \
flash_nor_xspi.c \
flash_nor_xspi_device_S28HS512T.c \
flash_nor_ospi_quad.c \
flash_nor_ospi_quad_device_S25HL512T.c \
led.c \
led_gpio.c \
led_tpic2810.c \
led_ioexp.c \
ioexp_tca6424.c \
~~~~~~~~
They find flash_nor_qspi.c and flash_nor_qspi_device_MX25V1635F.c files in the '\mcu_plus_sdk_am243x_08_01_00_36\source\board\flash\' folder, and they added these files in to makefile.
When they build it again with this new makefile, they faced below error.
~~~~~
FILES_common := \
.....
flash_nor_qspi.c \
# flash_nor_qspi_device_W25Q32JV.c \
flash_nor_qspi_device_MX25V1635F.c \
.~~~~~~
D:\ti\mcu_plus_sdk_am243x_08_01_00_36>gmake -s libs PROFILE=release
Compiling: board.am243x.r5f.ti-arm-clang.release.lib: eeprom/eeprom.c
Compiling: board.am243x.r5f.ti-arm-clang.release.lib: eeprom/eeprom_at24c.c
Compiling: board.am243x.r5f.ti-arm-clang.release.lib: ethphy/ethphy.c
Compiling: board.am243x.r5f.ti-arm-clang.release.lib: ethphy/ethphy_dp83869.c
Compiling: board.am243x.r5f.ti-arm-clang.release.lib: flash/flash.c
Compiling: board.am243x.r5f.ti-arm-clang.release.lib: flash/flash_nor_ospi.c
Compiling: board.am243x.r5f.ti-arm-clang.release.lib: flash/flash_nor_ospi_device_MX25LM25645G.c
Compiling: board.am243x.r5f.ti-arm-clang.release.lib: flash/flash_nor_qspi.c
flash/flash_nor_qspi.c:58:30: error: unknown type name 'QSPI_Handle'; did you mean 'OSPI_Handle'?
int32_t QSPI_norFlashCmdRead(QSPI_Handle handle, uint8_t cmd, uint32_t cmdAddr, uint8_t *rxBuf, uint32_t rxLen)
^~~~~~~~~~~
OSPI_Handle
D:/ti/mcu_plus_sdk_am243x_08_01_00_36/source\drivers/ospi/v0/ospi.h:73:15: note: 'OSPI_Handle' declared here
typedef void *OSPI_Handle;
~~~~~~~~~~
But, they could not find where 'QSPI_Handle' was defined.
Could you please help them to build flash driver for their custom flash memory?
they found only 4 flash types defined in the "ti\mcu_plus_sdk_am243x_08_01_00_36\source\board\flash" folder as below.
What are XSPI and ospi_quad in below?
- ospi : Octal SPI
- ospi_quad : ?
- qspi : Quad spi
- xspi : ?
Thanks and Best Regards,
SI.