- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Labels:
-
BLE
-
ispn:40067:1:0
-
l1:314:1:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry
Solved:
Rookie mistake
The line of code
dat_Rx = UART1_UartGetChar();
Within an "if" that towards the sentence was not executed.
Sorry