Tool/software: Code Composer Studio
i could enable TX interrupts and that way successfully receive data by using this function:
uint32_t thcp_hw_read_hercules(uint8_t* buffer, const uint32_t length)
{
uint32 bytes_read = 0;
uint32 bytes_to_read = length;
while (sciIsRxReady(thcp_hw_sci_base) && (bytes_to_read > 0))
{
buffer[bytes_read] = sciReceiveByte(thcp_hw_sci_base);
bytes_to_read--;
bytes_read++;
}
return bytes_read;
}
but enabling rx-interrupts did not work. I enabled SCI3 RX INT in HalCoGen and enabled the corresponding VIM channels.
this method worked out for TX interrupts, but not for RX interrupts. What am I missing?