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.

CC2541: Issue with UART RX interrupt (SWRC257 - ISR)

Part Number: CC2541


Hi,

I have cc2541 module:

 

My final goal is to implement UART on SimpleBLEBroadcast example from BLE stack (BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEBroadcaster).

I chosed CC2541_43_44_45_Peripherals_Software_Examples\software_examples\uart   from swrc257 as reference example to understand how to work with interrupts on this module and adapt it on ble project. 

Connection with uart dongle is next:

RX --- P_03

TX --- P_02

(and common GND).

TX option works fine:

But when I wanted to test RX, I have goten issue:

Interrupt for RX doesnt even pass through line .

I.e. it pass only once at start, but as I understand it should ALWAYS enter to this line when packet received from UART.

  

Preprocessor also defined correct module:

chip=2541

and in General Options:

CC2541F256

 

Defines corrected:

// Test definitions
#define UART_TST_MODE_RX
//#define UART_TST_MODE_TX

 

What am I missing?

What else I need to get interrupts on RX event?

  • Hi,

    you might want to refer to one of the other example where we receive UART data. HostTest, for example, uses NPI to receive data from the UART. I'd take at the project's uart driver, which is located in the hal layer. I'm pretty sure that this driver uses RX interrupts from the UART.

    Tom