Part Number: CC2640R2F
Other Parts Discussed in Thread: SYSBIOS
We have a custom board with CC2640R2 MCU and successfully run ProjectZero on it. We use the SDK v1.50.00.58 and CCS 9.3.0.
We successfully use PIN, UART, and I2C drivers and everything works perfectly fine, but we got some strange issues when tried to run the SPI driver: when we add a call of the SPI_init() function to main(), a "ti_sysbios_family_arm_m3_Hwi_excHandler__I()" exception happens after the BIOS_start(), and no RTOS task is executed.
The problem is caused by SPI_init() function. We don't even call SPI_open(). But the SPI_init() itself is executed without any problem. The problem happens when BIOS_start() is running. If we remove SPI_init() from the main(), everything works as expected. I checked the code of SPI_init and don't see anything that can lead to the exception. Do you have any idea why it happens?