This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RTOS/TDA2PXEVM: McSPI mcspi_spi1tospi2 example crashing on custom board

Part Number: TDA2PXEVM
Other Parts Discussed in Thread: SYSBIOS

Tool/software: TI-RTOS

Hello All

We are working with PSDK3.03 sysbios all configuration and TDA2Px evm as well as custom board based on TDA2PX and TMS570.

By modifiying the PDK example mcspi_spi1tospi2 and making required wiring between TDA2px evm and TMS570 evm we could test and transfer data between TDA2px and TMS570 evms over SPI.

In custom board we are using two spi instances to communicate with TMS570 and third instance of SPI is being used to communicate other sensor.

When same code  is being run on the custom board which has exactly same connection between TDA2px and TMS570 , we are getting assertion on the line

 Assertion @ Line: 787 in src/bsp_boardTda2xx.c: numDev < BOARD_MAX_DEVICE : failed !!!

 I find out that #define BOARD_MAX_DEVICE                    (36U) is defined in the same file.

Can user change this value ? also In custom board we are using 3 instances of SPI , to support all SPI instances simulataneously, do we need to make any changes in SPI driver code or some settings to be done before using the SPI bus.

Please let us know.

regards

Hrishikesh