Problem using snprintf() in static thread
Posted: Sat Aug 02, 2014 10:00 am
Hello,
I am using MMC SPI to log float values to microSD card using STM32F4 MCU and Chibios 2.6.5.
I have mostly followed demo from chibios. I am using snprintf() function to convert float to string and then write them file.
This method works perfectly when I call write function from main thread. However when I call this write function from any other static thread, I get 0 and -268156 values written on SD card and none of expected value.
I have added syscall.c to makefile.
Am I missing something? Is there any difference in the execution of main thread and any other static thread?
--
Nikhil
I am using MMC SPI to log float values to microSD card using STM32F4 MCU and Chibios 2.6.5.
I have mostly followed demo from chibios. I am using snprintf() function to convert float to string and then write them file.
This method works perfectly when I call write function from main thread. However when I call this write function from any other static thread, I get 0 and -268156 values written on SD card and none of expected value.
I have added syscall.c to makefile.
Am I missing something? Is there any difference in the execution of main thread and any other static thread?
--
Nikhil