Hello,
I've installed MOD5213 and MOD5234 support in 24 RC2. In step 4 from the Wiki FAQ (shown below), I changed to "\nburn\system", executed "make clean" per step 5, and then got compile errors when I ran "make" in step 6. Should I be able to run make without errors from this folder? I had not made any changes whatsoever to any files.
After that, I changed to each of the folders below and did steps 5-7, with no errors.
"\nburn\system_nn"
"\nburn\MOD5213\system"
"\nburn\MOD5234\system"
Do I need to do steps 5-7 on each of those 4 folders to completely rebuild system files for both platforms?
Thanks,
Joe
* From a DOS window:
1. Enter the command line application by clicking on Start->Run and typing [cmd]
2. Change to the nburn directory. [cd\nburn]
3. Set the NetBurner command line environment variables. [SetEnv.bat]
4. Change to your system directory [cd\nburn\system] (system_nn for MOD5213 platform, system_sc for L2E platform)
5. Clean the project [make clean]
6. Build the project [make]
7. Build the debug version [make debug]
8. Change to your platform system directory [cd\nburn\*your platform*\system]
9. Clean the project [make clean]
10. Build the project [make]
11. Build the debug version [make debug]
Confusion about Rebuilding System Files in 24 RC2
-
- Posts: 85
- Joined: Mon Apr 28, 2008 7:32 am
Re: Confusion about Rebuilding System Files in 24 RC2
You should be able to run a "make" without errors. If there are errors then any changes to the system files will not be applied. I believe you have a problem with the defined platform variable when you run make on the system files. After your step#3 you should set the platform for the system or system_nn directories. Do this by typing "SET PLATFORM=MOD5234" or "SET PLATFORM=MOD5213". You are probably trying to compile the normal system library as a 5213 platform which will not work. The makefile in the platform system directories (C:\nburn\MOD5234\system\makefile) already specifies the platform so you do not need to set the platform for these directories.
An easier way to rebuild all the system folders is from an eclipse project. From the top menu select "NBEclipse->Rebuild all system files". This will rebuild all the system files for that specific platform. For example, if it was a MOD5213 project then the "system_nn" and "mod5213\system" directories would be cleaned and rebuilt in release and debug versions.
An easier way to rebuild all the system folders is from an eclipse project. From the top menu select "NBEclipse->Rebuild all system files". This will rebuild all the system files for that specific platform. For example, if it was a MOD5213 project then the "system_nn" and "mod5213\system" directories would be cleaned and rebuilt in release and debug versions.
-
- Posts: 85
- Joined: Mon Apr 28, 2008 7:32 am
Re: Confusion about Rebuilding System Files in 24 RC2
Hi Larry,
I'm still getting the error. I tried SET PLAFORM=MOD5213 and SET PLATFORM=MOD5234, from both "\nburn" and from "\nburn\system", and I still get the same errors when compiling UCOS files, in all cases.
I'm using the command line approach because I get an error when I try to rebuild system files from within the IDE. I've used 2.2 for a long time, and I was always able to rebuild system files from the IDE, but I moved up to 2.4 RC2 when I got a new laptop.
Your answer raises another question in my mind. Do I have to do any reconfiguration of the IDE to move back and forth between projects for MOD5213 and MOD5234. I'm just getting started with MOD5234.
I've pasted the results of "make clean" and "make" below.
Joe
C:\nburn\system>SET PLATFORM=MOD5234
C:\nburn\system>make clean
rm -f ./ucosmcfa.o ./ucosmcfc.o ./ucos.o ./ucosflags.o ./debugtrap.o ./ucosmain.o ./fileio
.o ./md5c.o ./system.o ./librarystubs.o ./aes.o ./itoa.o ./tzsetchar.o ./main.o ./utils.o
./ip.o ./buffers.o ./arp.o ./dns.o ./udp.o ./udpsocket.o ./tftp.o ./ftp.o ./ftpd.o ./filep
ost.o ./StreamUpdate.o ./tcp.o ./extraio.o ./httppass.o ./http.o ./httpinternal.o ./htmlde
comp.o ./htmlwritefile.o ./htmlvarplaceholder.o ./iosys.o ./multicast.o ./mailto.o ./new_o
ps.o ./ppp.o ./ahdlc.o ./command.o ./dhcpc.o ./pop3.o ./random.o ./tcpupdate.o ./defappnam
e.o ./nbtime.o ./ntpclient.o ./vjhc.o ./wifisetup.o ./netinterface.o ./multiconfig.o ./tas
kmon.o ./smarttrap.o ./autoupdate.o ./device.o ./base64.o ./syslog.o ./qspiShared.o ./sdSh
ared.o ./netbios.o ./SendUdpFragment.o ./convert.o ./sdio.o ./sdioBus.o ./sdioBusSpiMode.o
./netDevice.o ./wifi.o
rm -f ./ucosmcfa.od ./ucosmcfc.od ./ucos.od ./ucosflags.od ./debugtrap.od ./ucosmain.od ./
fileio.od ./md5c.od ./system.od ./librarystubs.od ./aes.od ./itoa.od ./tzsetchar.od ./main
.od ./utils.od ./ip.od ./buffers.od ./arp.od ./dns.od ./udp.od ./udpsocket.od ./tftp.od ./
ftp.od ./ftpd.od ./filepost.od ./StreamUpdate.od ./tcp.od ./extraio.od ./httppass.od ./htt
p.od ./httpinternal.od ./htmldecomp.od ./htmlwritefile.od ./htmlvarplaceholder.od ./iosys.
od ./multicast.od ./mailto.od ./new_ops.od ./ppp.od ./ahdlc.od ./command.od ./dhcpc.od ./p
op3.od ./random.od ./tcpupdate.od ./defappname.od ./nbtime.od ./ntpclient.od ./vjhc.od ./w
ifisetup.od ./netinterface.od ./multiconfig.od ./taskmon.od ./smarttrap.od ./autoupdate.od
./device.od ./base64.od ./syslog.od ./qspiShared.od ./sdShared.od ./netbios.od ./SendUdpF
ragment.od ./convert.od ./sdio.od ./sdioBus.od ./sdioBusSpiMode.od ./netDevice.od ./wifi.o
d
rm -f C:\nburn\lib\NetBurner.a
rm -f C:\nburn\lib\DBNetBurner.a
rm -f NetBurnerdepend.mk
C:\nburn\system>make
m68k-elf-gcc -m5200 -MM ucosmcfc.c ucos.c ucosflags.c debugtrap.c ucosmain.c fileio.c md5c
.c system.c librarystubs.c aes.c itoa.c tzsetchar.c main.c -I"C:\nbu
rn\include_nn" -I"C:\nburn\MOD5213\include" -DMOD5213 -DMCF5213 >>NetBurnerdepend.mk
ucosmcfc.c:20:22: error: includes.h: No such file or directory
ucos.c:12:22: error: includes.h: No such file or directory
ucosflags.c:12:22: error: includes.h: No such file or directory
ucosmain.c:9:22: error: includes.h: No such file or directory
fileio.c:42:24: error: iointernal.h: No such file or directory
librarystubs.c:3:22: error: includes.h: No such file or directory
aes.c:31:17: error: aes.h: No such file or directory
m68k-elf-as -m5206e ucosmcfa.s -o ucosmcfa.o
m68k-elf-ar cr C:\nburn\lib\NetBurner.a ucosmcfa.o
m68k-elf-gcc -c -m5206e -gdwarf-2 -Wall -falign-functions=4 -O2 -DMOD5213 -DMCF5213 -DNBMI
NGW -I"C:\nburn\include_nn" -I"C:\nburn\MOD5213\include" ucosmcfc.c -o ucosmcfc.o
ucosmcfc.c:20:22: error: includes.h: No such file or directory
ucosmcfc.c:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OSTCBInit'
ucosmcfc.c: In function 'TopOfStackKillfunction':
ucosmcfc.c:43: warning: implicit declaration of function 'OSTaskDelete'
ucosmcfc.c: At top level:
ucosmcfc.c:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OSTaskCreat
ewName'
ucosmcfc.c:169: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OSTaskCrea
te'
ucosmcfc.c:188: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OSTCBInit'
make: *** [ucosmcfc.o] Error 1
rm ucosmcfa.o
I'm still getting the error. I tried SET PLAFORM=MOD5213 and SET PLATFORM=MOD5234, from both "\nburn" and from "\nburn\system", and I still get the same errors when compiling UCOS files, in all cases.
I'm using the command line approach because I get an error when I try to rebuild system files from within the IDE. I've used 2.2 for a long time, and I was always able to rebuild system files from the IDE, but I moved up to 2.4 RC2 when I got a new laptop.
Your answer raises another question in my mind. Do I have to do any reconfiguration of the IDE to move back and forth between projects for MOD5213 and MOD5234. I'm just getting started with MOD5234.
I've pasted the results of "make clean" and "make" below.
Joe
C:\nburn\system>SET PLATFORM=MOD5234
C:\nburn\system>make clean
rm -f ./ucosmcfa.o ./ucosmcfc.o ./ucos.o ./ucosflags.o ./debugtrap.o ./ucosmain.o ./fileio
.o ./md5c.o ./system.o ./librarystubs.o ./aes.o ./itoa.o ./tzsetchar.o ./main.o ./utils.o
./ip.o ./buffers.o ./arp.o ./dns.o ./udp.o ./udpsocket.o ./tftp.o ./ftp.o ./ftpd.o ./filep
ost.o ./StreamUpdate.o ./tcp.o ./extraio.o ./httppass.o ./http.o ./httpinternal.o ./htmlde
comp.o ./htmlwritefile.o ./htmlvarplaceholder.o ./iosys.o ./multicast.o ./mailto.o ./new_o
ps.o ./ppp.o ./ahdlc.o ./command.o ./dhcpc.o ./pop3.o ./random.o ./tcpupdate.o ./defappnam
e.o ./nbtime.o ./ntpclient.o ./vjhc.o ./wifisetup.o ./netinterface.o ./multiconfig.o ./tas
kmon.o ./smarttrap.o ./autoupdate.o ./device.o ./base64.o ./syslog.o ./qspiShared.o ./sdSh
ared.o ./netbios.o ./SendUdpFragment.o ./convert.o ./sdio.o ./sdioBus.o ./sdioBusSpiMode.o
./netDevice.o ./wifi.o
rm -f ./ucosmcfa.od ./ucosmcfc.od ./ucos.od ./ucosflags.od ./debugtrap.od ./ucosmain.od ./
fileio.od ./md5c.od ./system.od ./librarystubs.od ./aes.od ./itoa.od ./tzsetchar.od ./main
.od ./utils.od ./ip.od ./buffers.od ./arp.od ./dns.od ./udp.od ./udpsocket.od ./tftp.od ./
ftp.od ./ftpd.od ./filepost.od ./StreamUpdate.od ./tcp.od ./extraio.od ./httppass.od ./htt
p.od ./httpinternal.od ./htmldecomp.od ./htmlwritefile.od ./htmlvarplaceholder.od ./iosys.
od ./multicast.od ./mailto.od ./new_ops.od ./ppp.od ./ahdlc.od ./command.od ./dhcpc.od ./p
op3.od ./random.od ./tcpupdate.od ./defappname.od ./nbtime.od ./ntpclient.od ./vjhc.od ./w
ifisetup.od ./netinterface.od ./multiconfig.od ./taskmon.od ./smarttrap.od ./autoupdate.od
./device.od ./base64.od ./syslog.od ./qspiShared.od ./sdShared.od ./netbios.od ./SendUdpF
ragment.od ./convert.od ./sdio.od ./sdioBus.od ./sdioBusSpiMode.od ./netDevice.od ./wifi.o
d
rm -f C:\nburn\lib\NetBurner.a
rm -f C:\nburn\lib\DBNetBurner.a
rm -f NetBurnerdepend.mk
C:\nburn\system>make
m68k-elf-gcc -m5200 -MM ucosmcfc.c ucos.c ucosflags.c debugtrap.c ucosmain.c fileio.c md5c
.c system.c librarystubs.c aes.c itoa.c tzsetchar.c main.c -I"C:\nbu
rn\include_nn" -I"C:\nburn\MOD5213\include" -DMOD5213 -DMCF5213 >>NetBurnerdepend.mk
ucosmcfc.c:20:22: error: includes.h: No such file or directory
ucos.c:12:22: error: includes.h: No such file or directory
ucosflags.c:12:22: error: includes.h: No such file or directory
ucosmain.c:9:22: error: includes.h: No such file or directory
fileio.c:42:24: error: iointernal.h: No such file or directory
librarystubs.c:3:22: error: includes.h: No such file or directory
aes.c:31:17: error: aes.h: No such file or directory
m68k-elf-as -m5206e ucosmcfa.s -o ucosmcfa.o
m68k-elf-ar cr C:\nburn\lib\NetBurner.a ucosmcfa.o
m68k-elf-gcc -c -m5206e -gdwarf-2 -Wall -falign-functions=4 -O2 -DMOD5213 -DMCF5213 -DNBMI
NGW -I"C:\nburn\include_nn" -I"C:\nburn\MOD5213\include" ucosmcfc.c -o ucosmcfc.o
ucosmcfc.c:20:22: error: includes.h: No such file or directory
ucosmcfc.c:34: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OSTCBInit'
ucosmcfc.c: In function 'TopOfStackKillfunction':
ucosmcfc.c:43: warning: implicit declaration of function 'OSTaskDelete'
ucosmcfc.c: At top level:
ucosmcfc.c:55: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OSTaskCreat
ewName'
ucosmcfc.c:169: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OSTaskCrea
te'
ucosmcfc.c:188: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'OSTCBInit'
make: *** [ucosmcfc.o] Error 1
rm ucosmcfa.o
Re: Confusion about Rebuilding System Files in 24 RC2
I see from your output that the platform being used to make the system directory is the MOD5213... "-DMOD5213". This is definitely a problem with the platform. Before you type make you should just type "SET". This will display the system variables. Look for the DEFPLATFORM and PLATFORM variables. The DEFPLATFORM variable is used if there is not currently a PLATFORM variable set. I have a feeling the your DEFPLATFORM is MOD5213 and for some reason the PLATFORM variable is not being set. You can also set the DEFPLATFORM variable to MOD5234 just like you set the regular PLATFORM variable. This should not be required though if the PLATFORM variable is correctly set.
When you use the SET command it will change a variable only for that local command prompt window. So everything should be done from the same command prompt, if that window closes then setenv and set platform must be done again. I will also have Forrest take a look at this tomorrow.
When you use the SET command it will change a variable only for that local command prompt window. So everything should be done from the same command prompt, if that window closes then setenv and set platform must be done again. I will also have Forrest take a look at this tomorrow.
-
- Posts: 513
- Joined: Sat Apr 26, 2008 7:14 am
Re: Confusion about Rebuilding System Files in 24 RC2
You might try to use the appwizard to setup and configure a generic project for the desired platform with autoupdate turned on. That usually gets all the platform stuff properly configured. If that compiles, links, and allows a proper run configuratiuon, you can add new files, change User_Main() etc...
-
- Posts: 85
- Joined: Mon Apr 28, 2008 7:32 am
Re: Confusion about Rebuilding System Files in 24 RC2
Okay, thanks. When I ran the SetEnv.bat macro, I remember seeing DEFPLATFORM=MOD5213. I'm still confused about something that seems fundamental. As I said in a previous message, I have projects for both MOD5213 and MOD5234. Do I need to rebuild system files or modify the environment in any way when switching between projects for these two different platforms?
I won't be able to try your suggestions until Thursday.
I won't be able to try your suggestions until Thursday.