Community news, upcoming events and general discussions
Threads: 36 Posts: 88
Get technical support from the community
Threads: 1427 Posts: 7608
Threads: 18 Posts: 64
Tell us how to make XDK better!
Threads: 36 Posts: 119
Share and discuss community member projects
Threads: 81 Posts: 350
I want to test receive RX data and save it on SDCard(.txt)
So At the ExtensionBus example code, I add the write file part.
However, I couldn't print out the RX data and save strange data on txt file.
1) Is it possible to save data on txt file? How can I change?
2) I couldn't print the RX data on Console. How can I change?
Hello Choi, and welcome to the community, let me ask you: - Did you initilize the file system by calling the mount function? The mount of
file system is called once, but it mandatory otherwise the further actions will
not work correctly, take a look on FS XDK API:
- I found a quite strange line on image 1, you have data as uint8_t type which de-reference the process pointer and you pass data address through commandProcessorEnqueue, keep in mind data is destroyed after the processData function exits which will corrupt the data sent by enqueue, the commandProcessor pass data by reference and not by copy such FreeRTOS standard queue. My first tip, pass the contents of process directly to enqueue command, this will avoid to corrupt data. If you have such problems, please let me know> Felipe
Thank you for replying.
I added printf("test\n\r") the processdata1() function.
However I couldn't see the console.
I want to mix ExtensionBusUART exapmle and SdCardExample.
So I send the HEX code(ex 33) to XDK, and save the HEX data at the SDcard. However After mixing the code, I couldnt the HEX code(RX)data on Console as well as SDcard txt file.
I change the UTF-8 format txt file. However it is failed.