Hi Jerry,
It hangs also when you try to save your settings, I didn’t try to calibrate the device, but it is calling the same functions. I don’t know why, but the device hangs when I call any <string.h> functions. So I wrote my own string.h/string.c that contains all neccessary functions. Probably someone who has more experience with gcc can help us with correct setting of compiler/linker flags, because this solution is a stupid workaround.
Debugging? Sad, but the only way how to debug this firmware is to put everywhere some debugging code like:
#define dbg(s) Print_Str(0, 0, 0x001F, 0, “dbg>” s);
//#define dbg(s)
dbg(“Load_Attr_1”)
…
dbg(“Load_Attr_2”)
…
dbg(“Load_Attr_3”)
…
If I will get more experience with the STM32 processor, I will add to the USB interface a virtual serial port, it should make all the development much more easy with a console.
Download a fixed version here:
http://valky.eu/data/hardware/ds203_2_gabo-dsoquad.zip