OK, maybee in this way. Lets say my program looks like this:
main(){
LED=1;
obj1 *o1 = new obj1();
LED=2;
obj2 *o2 = new obj2();
while(1){
function();
}
}
Simple program. I have found some issue that for some reason,somewhere in a part where obj2 is created something is happen and after flash by isp (flashmagic) and reset board no light is on.
On mbed board same thig is working leds are on program continuing.
if i will make something like this (add while after on LED2):
main(){
LED=1;
obj1 *o1 = new obj1();
LED=2;
while(1);
obj2 *o2 = new obj2();
while(1){
function();
}
}
I can see LED1 and LED2 on. My question is why it happen? I assume if some parts a code contains a leak or any other problems not detected by compiler. It should go to that moment and then stops.
This is only example. I have found also when I use certain functions. That was working before adding some features to my program: like drectory listing 'opendir' fro FATFileSystem library whenever lets say in function() in my example reffering to opendir function it causes same problem i described before.
Help please I'm desperate:) Why its working always when I use same program on mbed board. ?
Hi
I have a problem with prototyping board that is based on LPC1768. Little description what is in 'ecosystem':
- its using SPI for SDHC card (SDHCFileSystem lib) - several serials (MODSERIAL lib) - USB in Mass Storage Mode (USBFileSystem lib) - GPS (nmea parser) - Bluetooth (on modserial ...)
Thing is not everything seems to work like on mBed. Since 2 days while program has growing up I've added modification and target board has stopped working. Flashing is working fine. But on startup there is no life activity (first thing is to light one led its first line after main() for bug checking). I'ce been fighing with lots issues like problem with USBFileSystem read usb-stick problem with production board(that have been solved by removing WFI() line from USBHostLite implementation).But anyway...question is there something that can block program from executing just on beginning when its not running on mBed.
On mBed same program working flawlessly (only difference is ports mapping).
any components (SD card, other connections has been checked and working fine).
Does anybody ever found something similar?
Please help!