Part Number: EK-TM4C123GXL
Hello,
I'm using TI-RTOS and a part of the project uses one of the I2C as slave. Since there is no TI-RTOS libraries for I2C Slave, I'm using a regular interrupt based piece of code (based on the example: "slave_receive_int") to get it working. Unfortunately it's not completely working. The processor is only acking to the slave address and the first byte (register address) and after that the clock line is being pulled low indefinitely. Not sure if it's related, but I'm getting the following warning when compiling: "creating output section ".vtable" without a SECTIONS". So I'm suspecting that for some reason the interrupt handler fxn is not being called, even tho I added the API to register it: I2CIntRegister(I2C0_BASE,I2C0SlaveIntHandler).
After looking around in the .cmd, I realized that it didn't have the .intvecs and .vecs included in the sections. I added them manually (as shown below), but still is not working.
#define APP_BASE 0x00000000
#define RAM_BASE 0x20000000
SECTIONS
{
.intvecs: > APP_BASE
.text : > FLASH
.const : > FLASH
.cinit : > FLASH
.pinit : > FLASH
.init_array : > FLASH
.vecs : > RAM_BASE
.data : > SRAM
.bss : > SRAM
.sysmem : > SRAM
.stack : > SRAM
}
Can please someone help me with this issue?
Thanks in advance!