MOD54415 Example Program GDB Demo has errors?

Discussion to talk about software related topics only.
Post Reply
jediengineer
Posts: 192
Joined: Mon Dec 17, 2012 6:24 am

MOD54415 Example Program GDB Demo has errors?

Post by jediengineer »

Hi all,

Maybe I'm making a mistake, but when I created a project using the Example Program "GDBDEMO" (I followed the Getting Started Guide to the letter) - the build came back with 32 errors... Did I do something wrong?? I'm assuming that all of these have been tested ?
jediengineer
Posts: 192
Joined: Mon Dec 17, 2012 6:24 am

Re: MOD54415 Example Program GDB Demo has errors?

Post by jediengineer »

Ok, I cleaned and rebuilt it and I'm down to 11 errors... still stuck on this one...
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: MOD54415 Example Program GDB Demo has errors?

Post by dciliske »

This sounds... strange? Can you post the console output (by default in the bottom right window of Eclipse)? The example built just fine for me, in both normal and debug mode, on 2.6.0.
Dan Ciliske
Project Engineer
Netburner, Inc
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: MOD54415 Example Program GDB Demo has errors?

Post by rnixon »

Builds fine for me. You really didn't supply much info on what the errors are, so its difficult to help you.
jediengineer
Posts: 192
Joined: Mon Dec 17, 2012 6:24 am

Re: MOD54415 Example Program GDB Demo has errors?

Post by jediengineer »

Here's the list of 11 errors I get. Thanks for taking a look!! I need to get this small program working by the end of the day today... Got a few deadlines. Thanks guys!!
Attachments
Errors.jpg
Errors.jpg (181.6 KiB) Viewed 9797 times
User avatar
dciliske
Posts: 624
Joined: Mon Feb 06, 2012 9:37 am
Location: San Diego, CA
Contact:

Re: MOD54415 Example Program GDB Demo has errors?

Post by dciliske »

You don't have an 'html' directory in your project do you...? Your project isn't creating a htmldata.cpp file, and therefore including those associated data members. Either remove the call to StartHttp() or retry the import, but make sure you include the 'html' subdirectory.
Dan Ciliske
Project Engineer
Netburner, Inc
jediengineer
Posts: 192
Joined: Mon Dec 17, 2012 6:24 am

Re: MOD54415 Example Program GDB Demo has errors?

Post by jediengineer »

Thanks Dan, got that sorted and built. Now it won't run. I keep getting the following message:

**** Build of configuration Debug for project Blinky LED ****

**** Internal Builder is used for build ****
Nothing to build for Blinky LED





Last I remember this was supposed to flash the onboard LEDs in a specific pattern - nothing happens. Even when I reset. I'm connected to the computer via USB (also powering the device) and the ethernet (I have an IP address, NBEclipse sees the device). When I clean the file, I get the following from the console:






**** Rebuild of configuration Debug for project Blinky LED ****

**** Internal Builder is used for build ****
m68k-elf-g++ -O0 -falign-functions=4 -D_DEBUG -IC:\nburn/include -IC:\nburn/MOD5441X/include -IC:\nburn/gcc-m68k/m68k-elf/include -IC:\Users\TScarnici\Desktop\NetBruner workspace\Blinky LED -gdwarf-2 -Wall -Wno-write-strings -c -fmessage-length=0 -fno-rtti -fno-exceptions -mcpu=5206e -DMOD5441X -DMCF5441X -o main.od ..\main.cpp
comphtml ../html -ohtmldata.cpp
Reading files from ../html and compressing them into htmldata.cpp
Ignoring files and directories: CVS, cvs, .SVN, .svn, .git, .GIT
MIME_file: C:\nburn/pcbin/MIME_magic.txt

Building MIME list..... Done
Processing /index.htm 77 bytes
Result counts = 59 total_ends :30
32 bytes out of 58 original encode out of 77 total original
Processing /index.htm 77 bytes
m68k-elf-g++ -O0 -falign-functions=4 -D_DEBUG -IC:\nburn/include -IC:\nburn/MOD5441X/include -IC:\nburn/gcc-m68k/m68k-elf/include -IC:\Users\TScarnici\Desktop\NetBruner workspace\Blinky LED -gdwarf-2 -Wall -Wno-write-strings -c -fmessage-length=0 -fno-rtti -fno-exceptions -mcpu=5206e -DMOD5441X -DMCF5441X -o htmldata.od htmldata.cpp
m68k-elf-g++ main.od htmldata.od -Wl,-Map=Blinky LED.map -mcpu=5206e -Wl -Wl,-n -TC:\nburn/MOD5441X/lib/MOD5441X.ld -Wl,-RC:\nburn/MOD5441X/lib/sys.ld -Wl,--start-group,C:\nburn/lib/DBMOD5441X.a C:\nburn/lib/DBNetBurner.a C:\nburn/lib/FatFile.a C:\nburn\lib\DBdebugLibrary.a -Wl,--end-group -oBlinky LED.elf
m68k-elf-objcopy Blinky LED.elf --strip-all --output-target=srec Blinky LED.s19
compcode Blinky LED.s19 DBBlinky LED_APP.s19 -R 0xC0040000 0xC2000000 -PMOD5441X
Block starts at 40000400
Block ends at 400394c4
Block size= 228K
Execution starts at 40000400
compressed 233668 bytes into 119627 bytes
Code CheckSum= 8758cfb8
Struct CheckSum= 3af71687
S records output with a base address of c0040000
S records output with a final address of c005d363
About to write S7...
******************************Build summary ******************************
Used 119651 bytes of 33292288 available flash (0.36%)
Used 809128 bytes of 67108095 available ram (1.21%)
NNDK release tag version:Rel_2_6_0
Build complete for project Blinky LED
Time consumed: 975 ms.



I'm assuming that at this point, I should be seeing some action on the board right? Do I need to jumper the 3V supply anywhere? Not sure what's going wrong...


I did find the LED program when I entered the IP address of the netburner module into internet explorer, but it's not the same program. This only allows me to turn them off and on, it doesn't increment the LEDs as the program suggests...


Tony
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: MOD54415 Example Program GDB Demo has errors?

Post by rnixon »

Reading the comments in main.cpp that you are referring to:
/* This is a very simple application to run with the debugger on a NetBurner
* network-enabled hardware platform. The application will boot and stay
* in a while() loop that increments the LED display on the NetBurner
* MOD-DEV-100 development board.
*/

You don't have a mod-dev-100 board, the dev board that comes with the MOD54414LC kit is a mod-dev-70. So the LEDs are different. If you want the leds to blink you can run the MOD54415 factory demo and click on them. Take a look at how the leds are controlled in that program, then you should be able to write your own and make them increment.
jediengineer
Posts: 192
Joined: Mon Dec 17, 2012 6:24 am

Re: MOD54415 Example Program GDB Demo has errors?

Post by jediengineer »

Ooooh, I see. Is there a list somewhere of which demo programs work with the LC kit that I have? I'd like to make sure that the examples I'm following are working with my kit if they're not labeled that well... I'm very new to this system - a week or two into it, and I've got pressure to get something produced... Thanks for the heads up!


T
Post Reply