- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I tried to use PIN Tx(32), Rx(33) as UART bus for communication between 20732A0 and laptop.
But I don't see test pattern, i.e. 'u' (0x55), showing correctly from my console or even signal scope.
Question from my side:
1. What's the correct initialization steps for peripheral uart? Any conflict between bleapp_set_cfg(xx,xx,xx, hello_sensor_puart_cfg,xx,xx) and 'puart_selectUartPads(33, 32, 0, 0)?
2. What's the correct setting on variable 'bleapp_trace_enable', if we want peripheral UART to be purely managed by our application not infected by BLE stock program.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if this helps with your laptop situation, but here's the code I adapted from some sample code in the datasheet that works with communicating with an Arduino via the Peripheral UART:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Can somebody comment on this?
BTW, I've also checked some discussion for redirecting the debugging to peripheral UART. Can someone comment if both UART can be used specifically, i.e. HCI UART for debugging and peripheral UART for application communication?
If yes, then what's concerning to 2 questions in original post.
Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if this helps with your laptop situation, but here's the code I adapted from some sample code in the datasheet that works with communicating with an Arduino via the Peripheral UART:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi odbol,
Thanks for your suggestion.
Though I've moved such communication to SPI bus, I'll try UART based on your sample code.