UART Software detect to Buffer Issues

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
JiGi_284761
Level 4
Level 4
Welcome!

Ive been using the NONE mode in the "RX address configuration" and have had no problems getting UART data by using a simple assignment function in the default RX ISR that is auto generated with the API as below:

   

 

   

for(

       

 

   

i=0; i<UART_1_RXBUFFERSIZE+1; i++){

   

 

   

 

   

RxIn->ModbusRxBuffer = UART_1_rxBuffer;

       

 

   

}

   

 

   

 

   

Data is transferred to Data Structure without any problem.

   

It is located around line 166 in the RX ISR

   

However ive tried to use the addressing function and the data does not appear in the rxBuffer[]. I have a flag that shows the assignment function was cycled which means the interrupt was activated but there is no data in the buffer.

   

I have my own API that does a good job however Im trying to better understand the cypress supplied API.

   

 

   

Any Ideas why the data is not in the rxBuffer?

0 Likes
1 Reply
himam_31
Employee
Employee
50 likes received 25 likes received 10 likes received

 Hello,

   

 

   

Kindly let us know which mode did you choose? Can you choose "Software Detect to Buffer" and give the RX Buffer size>4. Please check if the data is loeded into Rx software buffer after this.

   

 

   

Thanks,

   

Hima

0 Likes