測試TX 部分
ZNET5.10.1.0
SOC mode
BRD4151A
Sample code : Z3Switch
Zigbee Type : Sleep end device
USART0 :TX PA0, RX PA1
USART1:TX PC9 ,RX PC 10
Step as below:
We use Z3SwitchSample
We use BRD4151A for the test
Set a event for test
not overwrite callback.c when we generate a project.
Default the USART1 on BRD4151A is use for external flash.
So if we want use USART1 we need take off EEPROM plugin .
Generate the project
Setting the USART 1 to PC9,PC10
The location can be check on datasheet
We don't use the ncp ,so disable here
Disable the SPI to external flash pin define
We try to initial the USART1 on maininit callback.
Fix a ZNET5.10.1 bug ,lose the ","
We print some message on event and set it print every 5 seconds
compile and upload the FW to EFR32
We use the BRD4001A Expansion Header Pinout to connect to CP2104,and connect to PC.
After upload FW ,we can use tera term to open CP2104 console and can find the TX message fromUSART1 tx PC9 data
Here is the USAR0 from PA0 data
Here is the related UART API .
沒有留言:
張貼留言