This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How do I use the cJSON library?

I need to use cJSON to parse the uart data. I found the file in SDK15.3 but how can I use the related function?

Parents Reply
  • I think I found the reason. This issue can occur if the total number of blocks from XXS to XXL exceeds 255. This is independent of the block size, and I firmly believe that the size of each memory block I set is reasonable. Because, I use nrf_malloc to apply for the memory of the corresponding block size to determine whether to return null, and observe whether the number of successful applications corresponds to the number I set. The final result is correct. So how can I solve the HardFault_Handler caused by cJSON_CreateNumber?

Children
Related