Hardware requirements
Micro USB cable
FRDM-RW612 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a micro USB cable between the PC host and the MCU-Link USB port (J10) on the board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Launch the debugger in your IDE to begin running the example.
Running the demo
When the demo runs successfully, the log would be seen on the Terminal like:
This is cJSON example.
This example constructs a JSON stucture using cJSON, print it to string and then parses the string as JSON and checks the info.
JSON created successfully:
{
"sdk version": 2,
"cJSON version": "x.y.z",
"example info": {
"category": "demo_apps",
"name": "cjson"
},
"demo strings": ["This", "is", "cJSON", "demo"]
}
JSON parsed successfully.