Tool/software: Code Composer Studio
Hi,
I am currently working on a new custom board. I want to test the SPI NOR flash on this board and for this, I am using the SPI flash read test provided for EVMK2H in the pdk_k2hk_4_0_9. I use the c66x example.
I made it work on EVMK2H. Unfortunately, I got some troubles to make it work on our custom board. We have a different DDR3 and different NOR flash. The flash used is the Micron NOR flash MT25QU02GCBB.
The things done for now are:
-configure DDR3 in $pdk_k2hk_4_0_9/packages/ti/board/src/evmK2H/evmK2H_ddr.c using the parameters previously calculated for our GEL file (DDR has been tested with our new parameters and is working).
-configure the flash parameters:
1.change device ID from 0xBB18 to 0xBB22 in Board_flash.h .
2.In pdk_k2hk_4_0_9\packages\ti\board\src\flash\nor\device\n25q128.h
- #define NOR_SIZE (256U * 65536U) to #define NOR_SIZE (4096U * 65536U) /*NOR size is 2Gb*/
- #define NOR_DEVICE_ID (0xBB18) /* Device ID */ to #define NOR_DEVICE_ID (0xBB22) /* Device ID */
I re-built the PDK before compiling the project. However, I always get stuck at same function, using this configuration or not.
What I can say is that NOR_open(flashIntf, portNum, params) function always returns 0. I finally get a "Board_flashOpen failed." in my console.
Do I miss something in my new configuration? Do you have any idea about my problem?
Thank you for your help.
Best regards.