Not receive data from the UART, Pioneer Kit with Cyble-022001-EVAL

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

cross mob
Anonymous
Not applicable

Not receive data from the UART, Pioneer Kit with Cyble-022001-EVAL

I'm starting tests with Cyble Pioneer Kit-022001-EVAL.
I'm just testing the programming environment and I have not started testing the BLE.
I initially practiced with the activation of LEDs and buttons, this part I managed to make it work even with PWM.
Now I'm using the UART, I have connected to pins:
UART Rx Pin: P1.4
UART Tx Pin: P1.5
Sending data to the USB UART working properly and I get display on a terminal.

But the reception data does not work me, I followed the reception to the pin P1.4 and the data arrives ok to Cyble-022001-EVAL card, but I can not read it in the program.

I guess it's an initialization problem but I can not see it, my UART has the name of UART1 and I think I have everything correctly initialized:

dat_Rx unit32; // Is the variable that I use to store the data received

UART1_Uartinit ();
UART1_Start ();
UART1_Enable ();

   


dat_Rx = UART1_UartGetChar();; // I used this sentence but not receive data

 dat_Rx = UART1_SpiUartReadRxData(); // I have also proven this nor receive data

Somebody could tell me where is the problem?

0 Likes
2 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum!

   

Can you please post your complete project, so that we all can have a look at all of your settings. To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

Sorry

   

Solved:

Rookie mistake
The line of code
dat_Rx = UART1_UartGetChar();

Within an "if" that towards the sentence was not executed.

   

Sorry

0 Likes