Compiling the example microcontroller firmware

Platform for Telematic Applications
RichB
Posts: 1
Joined: Wed 20. Apr 2011, 10:35

Compiling the example microcontroller firmware

Post by RichB » Wed 20. Apr 2011, 10:50

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

F.Hessemer
Posts: 13
Joined: Thu 9. Sep 2010, 14:21

Re: Compiling the example microcontroller firmware

Post by F.Hessemer » Thu 21. Apr 2011, 09:10

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

expor
Posts: 14
Joined: Thu 3. Mar 2011, 10:44

Re: Compiling the example microcontroller firmware

Post by expor » Mon 21. Nov 2011, 19:35

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.

F.Hessemer
Posts: 13
Joined: Thu 9. Sep 2010, 14:21

Re: Compiling the example microcontroller firmware

Post by F.Hessemer » Tue 22. Nov 2011, 07:51

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

expor
Posts: 14
Joined: Thu 3. Mar 2011, 10:44

Re: Compiling the example microcontroller firmware

Post by expor » Tue 22. Nov 2011, 13:29

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?

F.Hessemer
Posts: 13
Joined: Thu 9. Sep 2010, 14:21

Re: Compiling the example microcontroller firmware

Post by F.Hessemer » Tue 22. Nov 2011, 14:02

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

expor
Posts: 14
Joined: Thu 3. Mar 2011, 10:44

Re: Compiling the example microcontroller firmware

Post by expor » Tue 22. Nov 2011, 14:13

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.

F.Hessemer
Posts: 13
Joined: Thu 9. Sep 2010, 14:21

Re: Compiling the example microcontroller firmware

Post by F.Hessemer » Tue 22. Nov 2011, 15:36

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

F.Hessemer
Posts: 13
Joined: Thu 9. Sep 2010, 14:21

Re: Compiling the example microcontroller firmware

Post by F.Hessemer » Wed 23. Nov 2011, 11:20

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
Attachments
MakefileProject.zip
Projekt Version 1.6.2 with Makefile
(5.44 MiB) Downloaded 655 times

jwphrijk
Posts: 15
Joined: Wed 21. Dec 2011, 22:19

Re: Compiling the example microcontroller firmware

Post by jwphrijk » Wed 21. Dec 2011, 22:33

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
Attachments
Error melding.docx
(11.99 KiB) Downloaded 609 times

Post Reply