- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a BlueTooth Low Energy Pioneer Kit and am attempting to use the Serial device on the PSoC BLE module. I have a PC attached via an Adafruit USB<->Serial card (3.3v) that uses the Arduino serial pins (P1_5 and P1_4) on the Mother board for I/O. I am using the Example UART_Rx04[CY8C4247LQI-BL484] project with the UART [v2.50] module. The only change I made was to move the RX pin from P0_1 in the original project to P1_4. I realize the project uses the LCD display but I am just testing the UART_1_GetChar() call and it never seems to sense a character. I can see the LED flash on the Adafruit card when I send a character but I only get 0 from the call.
I went to the example as my real project using the UART (SCB Model) [3.10] input did not work either. The serial output does work and I get data from the board using the Arduino pins.
Any suggestions ?
Thank you for the help
--jim schimpf
Solved! Go to Solution.
- Labels:
-
BLE
-
ispn:20542:0.84:0
-
ispn:20543:0.842:0
-
ispn:29663:0.84:0
-
ispn:38451:0.99999166:0
-
ispn:38452:0.99999166:0
-
ispn:38454:0.99999166:0
-
ispn:38455:0.99999166:0
-
ispn:38456:0.99999166:0
-
ispn:38457:0.99999166:0
-
l1:144:0.842:0
-
l1:408:0.99999166:0
-
l2:152:0.842:0
-
l2:4421:0.99999166:0
-
l3:153:0.842:0
-
l3:4427:0.99999166:0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found it. I get a warning (plm.M0038:The pin named \SER:rx(0)\ at location [IOP=(1)][IoId=(4)] prevents usage of special purposes: F(OA,3). ) when I use P1_4 in my application. If I switch this to P0_4 it now works. So P1_4 does not seem to work anywhere. Which is bad since it's the TX in for Arduino.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jim, can you please post your actual 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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jim, your baud rate is rather uncommon. I would suggest you to use something like 9600 using internal clock or whatever the serial card supports.
Moreover: Set the Rx Buffer in the component to 15 and use UART_1_GetRxBufferSize() which returns the number of bytes received as indication for bytes received.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found the problem P1_4 used as RX in does not seem to work. If I use the RX demo project and set the RX in to P1_5 I get serial input. But if I used P1_4 it does not. P1_5 lists uart_tx as one of the signals and P1_4 lists uart_rx so I don't understand this.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Found it. I get a warning (plm.M0038:The pin named \SER:rx(0)\ at location [IOP=(1)][IoId=(4)] prevents usage of special purposes: F(OA,3). ) when I use P1_4 in my application. If I switch this to P0_4 it now works. So P1_4 does not seem to work anywhere. Which is bad since it's the TX in for Arduino.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yeah, have a look into the schematics, the pin P1_4 is connected to the UART bridge of the kitprog.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, I found that section. This means that if you don't have the board connected to the Mother board then you can use that pin. I am planning to use it this way so I will try that.