06-26-2006 04:10 AM
Hello,
Recently i was busy with creating Target based on Ecos and PC i386 machine. I have correct ecos and redboot images. I’m able to create application in
-DUsesSerialDebugger -DDBGBAUD=38400 -DSocketSupport=0 -DFileSupport=0 -DCHeadless=1 -I.
As I use 38400 in my ecos and redboot images.
Of course in my build configuration I checked: “Generate debug info”. I didn’t modify SerialMessaging.c as I use the same flags for compiler. What do wrong here??? Thanks in advance for any helpJ
Marcin
06-26-2006 06:00 PM
06-27-2006 06:03 PM
Michael,
I’ve applied your both suggestions but still no results. What I modified in SerialMessaging.c is:
scfg.stop_bits = 0;
and:
//now direct diagnostic output to the other channel.
//CYGACC_CALL_IF_SET_CONSOLE_COMM(1 - port);
CYGACC_CALL_IF_SET_CONSOLE_COMM(0);
But still no result. I’ve tried also to download application via second com port. The strange thing is that when I put in my vi inline C node with: printf(“\nString”);
I can see this output on second (the other one than download) console after issuing “go” command. I’ve add also LogPDAMessages=True to my LabVIEW.ini but no log file is generated (or at least I cannot find it). My last doubt is: Why do you call i386 “simulated target”???? I use real PC with 2 serial ports and with redboot floppy image as i386 target.
Marcin
06-27-2006 07:04 PM
06-28-2006 03:07 AM
P.J.,
@(1) I don’t think it is a case as I’m able to run program written in
@(2)I call it after I run app
@(3)Yes I do, host serial communication is not a problem as I wrote in beginning of this thread
@(4)Well, it can be always a case but I use my usb converters with visa also for some other projects and they work fine
Thanx for response!!!
Marcin
07-04-2006 07:49 AM
Hello,
I found reason of my problems:
In SerialMessaging.c you have this PDADebugOpenSerial() which calls SerialOpen_plat(port, &gSer);
SerialOpen_plat uses cyg_io_lookup() for searching for com ports assuming that name of serial device is /dev/serx where x is number. That works but only when you have included serial devices in ecos kernel so it was my error that I didn’t check serial devices in ecos configtool. Thank you once again for your support!!
BTW, I have run it also on LPC-H2294 Olimex board but instead of using redboot I just program flash with executable with debug option. Not very healthy for my flash but its only a matter of tuning..
Marcin