Hi,
Please help me, I can't find anything about that what happen to me. Maybe somebody has already faced to this problem.
I've written a software which operates on multiple Serials (3x), SD card uses Fat. I would like to extend my SW to additional feature using 3G modem Vodafone k3770. Because available library is still 'close' in beta testing phase i was forced :) to use RTOS to work with. I must admit that program worked fine until it uses mbed-rtos port.
Problem starts when I was initializing some objects that keep control on several peripherals. I have one big 'Object Holder' class that keeps pointers to other smaller low-level class for controlling GPS on serial, Bluetooth module (RN42) and additionaly there is a common trace system which outputs on USB serial. This is production board and I have no JTAG on it (I know my mistake).
Heres what I have found. All object looks similar. 3 of them initializes MODSERIAL, one SD card. Thing is I need to choose.
I cannot use 3 MODSERIAL at once and SDcard Object because at first try of using fopen() functions (read a particular file on my sd card) thread that is related to SD card operation just stucks. There is no message , no stack overfloww output. nothing it hangs but other Threads are working.
What is happening? Is there any way to find a reason what kills a thread and in which moment?
LIke I said If I will not init all MODSERIAL object just one will be not inited SDcard FatSystem working well. All my functions that openning something are prepared for NULL pointer returning after try to open a file. But in this case I get nothing.
Thanks in advance for any kind of help.
P.S Im using typical current releases of library MOSDERIAL, SDHC, FatFileSytem, mbed, mbed-rtos
Hi,
Please help me, I can't find anything about that what happen to me. Maybe somebody has already faced to this problem.
I've written a software which operates on multiple Serials (3x), SD card uses Fat. I would like to extend my SW to additional feature using 3G modem Vodafone k3770. Because available library is still 'close' in beta testing phase i was forced :) to use RTOS to work with. I must admit that program worked fine until it uses mbed-rtos port.
Problem starts when I was initializing some objects that keep control on several peripherals. I have one big 'Object Holder' class that keeps pointers to other smaller low-level class for controlling GPS on serial, Bluetooth module (RN42) and additionaly there is a common trace system which outputs on USB serial. This is production board and I have no JTAG on it (I know my mistake).
Heres what I have found. All object looks similar. 3 of them initializes MODSERIAL, one SD card. Thing is I need to choose. I cannot use 3 MODSERIAL at once and SDcard Object because at first try of using fopen() functions (read a particular file on my sd card) thread that is related to SD card operation just stucks. There is no message , no stack overfloww output. nothing it hangs but other Threads are working.
What is happening? Is there any way to find a reason what kills a thread and in which moment?
LIke I said If I will not init all MODSERIAL object just one will be not inited SDcard FatSystem working well. All my functions that openning something are prepared for NULL pointer returning after try to open a file. But in this case I get nothing.
Thanks in advance for any kind of help.
P.S Im using typical current releases of library MOSDERIAL, SDHC, FatFileSytem, mbed, mbed-rtos