Hi
I need to use a JSON parser and it seems exist a TI LIBRARY in utils but I was not able to find it.
How is possible to install and use that Json library?
Thanks
Fabio
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi
I need to use a JSON parser and it seems exist a TI LIBRARY in utils but I was not able to find it.
How is possible to install and use that Json library?
Thanks
Fabio
Hi Jagadish,
surely you are right!
Even though I didn't found anything in the TI CCS software repository.
I was speaking about this ...
TI Utilities API: JSON Parser/Builder
Thanks
Fabio
Hi Fabio,
I was speaking about this ...
If we verify this path carefully,
This SDK path is for CC13x2x7, CC26x2x7 controllers. And these controllers are not Hercules, and they are some wireless controllers provided by TI.
And i verified we don't have JASON library for Hercules controllers including TMS570LS3137.
--
Thanks & regards,
Jagadish.
Many thanks for your detailed explanation.
I'm using cjson library and I-m having a problem but I think is a TMS570 problerm regarding some compiler or linker option.
The project is very easy coming from any example you can find on the net ...
The parser function is
void parse_json_config(const char *json_string) {
cJSON *json = cJSON_Parse(json_string);
if (json == NULL) {
const char *error_ptr = cJSON_GetErrorPtr();
if (error_ptr != NULL) {
fprintf(stderr, "Error before: %s\n", error_ptr);
}
return;
}
}
called in this way
parse_json_config(config);
where config is the json file string C converted like
const char *config = "{\"name\":\"John\"}";
If the config lenght is <= 512 bytes all works
If the config lenght is greater, the json parser return fail with the pointer error
is the byte 513
I tried to change heap and stack size in linker option (default is 0x800 for both) and I see some beaviour changing but always in fail
I tried also to change the allocation (static, const, global, initialized or not) but without any success.
Do you have any suggestions?
Thanks
Fabio
Hi Fabio,
Maybe it looks like memory issue only.
If possible, share your project for debug at my end.
And also refer below thread, it looks similar issue to me. Here i explained how to change the Heap size.
--
Thanks & regards,
Jagadish.
Hi Fabio,
Is there a maximun value for this configuration?
We can't tell exact maximum value for this configuration.
It is just depending on the size of the RAM in the device:
Apart from Stack and Heap the same RAM memory will be used for .bss and .data sections as well and their usage will be just depending on the application, i mean variables declared in application etc.
So, it depends on your application usage of RAM.
--
Thanks & Regards,
Jagadish.