Hello,
I am writing a program with using RTX. I want to convert ascii buffer into a float using atof in a task. But this function works unreliable, program hang. If I try to debug this situation with jtag, problem never happen. I have replaced atof to atoi and then program start working, but I need some solution for converting string to float.
microcontroller - ARM7, LPC2368 Keil - 3.80
May someone give me an idea?
Thanks Mike Kleshov, with the big stack it works. My problem is that I do not know how to estimate stack size.
I like the following way of measuring stack utilization. In your startup code, fill the stack space with a known pattern (like 0xDEADBEEF or whatever.) With the in-circuit debugger attached, run your application, try to induce maximum stack usage. After a while, stop the application and inspect stack space in the memory window of the debugger. This will give you the exact stack space requirement for this application run. The maximum theoretical stack space requirement will likely be greater, of course. Some compilers can estimate that, by the way. Nevertheless, it's a direct measurement.