Compiling the example microcontroller firmware
Compiling the example microcontroller firmware
Hi all
I'm having some difficulty compiling the firmware off of the CD that came with my PCAN-GPRS Link.
I have installed my winarm, installed eval uVision4 and altered the project compiler accordingly.
When I (clean first!) then Build Target, I get a lot of messages saying "Could Not Find C:\embed\pcan\first\out\gcc\main.__i.gnu" there is one for each C file in the project.
From the instructions, this appears to be dead simple to set up, am I missing something simple?
Has anyone tried using the Makefile directly? I've noticed quite a few typos and bits missing from it, I have corrected it and now it does compile and produce a telematic.bin The problem is this file is nearly twice the size of the original FirmCRC.bin so I think some settings are wrong. Anyone got any help with this?
Kind regards
Rich
I'm having some difficulty compiling the firmware off of the CD that came with my PCAN-GPRS Link.
I have installed my winarm, installed eval uVision4 and altered the project compiler accordingly.
When I (clean first!) then Build Target, I get a lot of messages saying "Could Not Find C:\embed\pcan\first\out\gcc\main.__i.gnu" there is one for each C file in the project.
From the instructions, this appears to be dead simple to set up, am I missing something simple?
Has anyone tried using the Makefile directly? I've noticed quite a few typos and bits missing from it, I have corrected it and now it does compile and produce a telematic.bin The problem is this file is nearly twice the size of the original FirmCRC.bin so I think some settings are wrong. Anyone got any help with this?
Kind regards
Rich
-
- Posts: 13
- Joined: Thu 9. Sep 2010, 14:21
Re: Compiling the example microcontroller firmware
HI Rich,
do you get the mail I have send to you yesterday and today?
As I had written in the mail, let us phone to clear the problem with µVision.
The size of the binary file is bigger because of the gcc compiler and the disabled optimization. We started to test gcc with optimization but when we create the libs and later the build the program, it seams that gcc gcc does not load the libs right in the program. When you use RealView and optimization 2 you get this small bin-file. The bigger file is normal for gcc.
Best Regards
Fabian Hessemer
Development
do you get the mail I have send to you yesterday and today?
As I had written in the mail, let us phone to clear the problem with µVision.
The size of the binary file is bigger because of the gcc compiler and the disabled optimization. We started to test gcc with optimization but when we create the libs and later the build the program, it seams that gcc gcc does not load the libs right in the program. When you use RealView and optimization 2 you get this small bin-file. The bigger file is normal for gcc.
Best Regards
Fabian Hessemer
Development
Re: Compiling the example microcontroller firmware
Could you please post the solution to the missing files (xx.__i.gnu)? I'm having the same problem while my firmware compiled without any errors before.
-
- Posts: 13
- Joined: Thu 9. Sep 2010, 14:21
Re: Compiling the example microcontroller firmware
Hello expor,
could it be possible, that you have updated your µVision? The problem is, that Keil has updated the way calling gcc and the ARM-glue- file will not work with newer Versions of µVision.
Best Regards
Fabian Hessemer
Development
could it be possible, that you have updated your µVision? The problem is, that Keil has updated the way calling gcc and the ARM-glue- file will not work with newer Versions of µVision.
Best Regards
Fabian Hessemer
Development
Re: Compiling the example microcontroller firmware
That could be the case. As writtten in your documentation I downloaded the latest version from uVision and opened my old project. The problem is another student is taking over this project and I was helping him setting everything up and running. Is there anyway to recompile the project with the new gcc calls?
-
- Posts: 13
- Joined: Thu 9. Sep 2010, 14:21
Re: Compiling the example microcontroller firmware
Hi,
we have changed this a for a while. It is only possible to compile with old µVision Version (V4.13 or less). Is it possible for you to use/get this Version?
regards,
Fabian Hessemer
we have changed this a for a while. It is only possible to compile with old µVision Version (V4.13 or less). Is it possible for you to use/get this Version?
regards,
Fabian Hessemer
Re: Compiling the example microcontroller firmware
Hello,
I've been trying to find an older version but I wasn't able to find one. Keil only offers the latest version of the MDK which includes uVision 4.22.22. Do you possibly have the 4.13 version available (non-licensed ofcourse)?
Thanks again for your assistance.
I've been trying to find an older version but I wasn't able to find one. Keil only offers the latest version of the MDK which includes uVision 4.22.22. Do you possibly have the 4.13 version available (non-licensed ofcourse)?
Thanks again for your assistance.
-
- Posts: 13
- Joined: Thu 9. Sep 2010, 14:21
Re: Compiling the example microcontroller firmware
Hello,
I will try to create a makefile, but this will take a bit time. Because I have to test this solution. So that it is possible to create a binary file without µVision.
regards,
Fabian
I will try to create a makefile, but this will take a bit time. Because I have to test this solution. So that it is possible to create a binary file without µVision.
regards,
Fabian
-
- Posts: 13
- Joined: Thu 9. Sep 2010, 14:21
Re: Compiling the example microcontroller firmware
Hello,
attached you can find the sample code with the makefile. For using the makefile, please have a look inside the user manual (PCAN-Router manual in PDF format (English)) from our PCAN-Router. Inside this manual there is a description how to build your code with a makefile (page 25).
regards,
Fabian Hessemer
attached you can find the sample code with the makefile. For using the makefile, please have a look inside the user manual (PCAN-Router manual in PDF format (English)) from our PCAN-Router. Inside this manual there is a description how to build your code with a makefile (page 25).
regards,
Fabian Hessemer
- Attachments
-
- MakefileProject.zip
- Projekt Version 1.6.2 with Makefile
- (5.44 MiB) Downloaded 2220 times
Re: Compiling the example microcontroller firmware
Hello I'm the "other" student Expor is talking about.
And I'm still having problems compiling. When I use the make file a lot off errors occur.
In the attachment a copy of the errors.
Thanks in advance for your coorporation
Kind regards
JWPHRIJK
And I'm still having problems compiling. When I use the make file a lot off errors occur.
In the attachment a copy of the errors.
Thanks in advance for your coorporation
Kind regards
JWPHRIJK
- Attachments
-
- Error melding.docx
- (11.99 KiB) Downloaded 2182 times