- Silicon Labs Community
- Welcome and Announcements
- Silicon Labs Knowledge Base
- 8-bit MCU
- 32-bit MCU
- Bluetooth / Wi-Fi
- Other Products Category
- Optical/RH/Temp Sensor
- Other Products
- Hardware and Software Tools
- Simplicity Studio and Software
- General Discussions and Suggestions
- Chinese Forum
- Software Libraries
- Development Kits
- Reference Designs
- Third Party Tools
- White Papers
- Official Blog of Silicon Labs
- Chinese Blog
09-06-2017 01:27 AM - last edited on 09-19-2017 05:17 AM by Siliconlabs
1. My chip is EFR32MG1P232F256GM48
2. The stack I use is Ember Enet 184.108.40.206 GA SoC（Why I don't use 220.127.116.11： After I choose---- HAl configuration-------Virtual UART（port 0）【1】 I can't connect with other device by Zigbee. 【2】 I can't use the ）Virtual UART （serial 0） to be my console for debuging. So I tried some other stacks and find
Ember Enet 18.104.22.168 which can achieve what 22.214.171.124 can't ，so I select 126.96.36.199）
3.I select Z3light project
4.The only one place I changed in .isc file（show in the below picture）
5. After click generate and open the Z3LightSoc_callbacks.c file， I changed two place（blue to red ，show in the picture）
Its for initializing the UART
Its for testing the UART read and write by button on the chip.
6.After building the project, and upload application to the chip, I open my Serial Port Utility（for testing the UART read and write）, then I press the button on the chip and use the Serial Port Utility to send "1111111" to the chip.
In the “友善串口调试助手” （Serial Port Utility），We can see that I successfully write date to the Serial Port Utility（55AA000102000103） by the UART，but I can't read from the Serial Port Utility by the UART on the chip（16 bytes of 00 shows that my readDate have not been written ）
The red part shows that the Serial Port Utility really successfully TX 48 Bytes to the UART on the chip，but in the RX 175 Bytes， there are 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00.
I wonder if you could tell me how to operate it. So I can use the UART normally.
Thank you vary much.