Members Login
Username 
 
Password 
    Remember Me  
Post Info TOPIC: m32r compiler needed


Guru

Status: Offline
Posts: 2338
Date:
m32r compiler needed


Just realized that my m32r compiler license has expired. In sh7052 the license was limiting the use to a certain memory use level. now with m32r there seems to be time limit that blocks the use of the product.

The compiler is important for external modules like boostfuel and shifter + future nitrous enhancements.

The renesas tool used that has been used has been:
C/C++ Compiler Package for M32R Family M3T-CC32R V.5.01
www.renesas.com

Now there is a need for a new compiler or extending the renesas license. There is luckily a freeware compiler:
GCC, the GNU Compiler Collection
http://gcc.gnu.org/
... that can be used.

Anyhow the gnu compiler is a new beast to me so would appreciate advice in setting it up or alternatively help in getting the renesas working again.

e.g. this one: http://sourceforge.net/projects/mingw/files/





-- Edited by PetriK on Sunday 10th of January 2010 07:54:41 PM

__________________

When asking a question, you can also consider posting it to facebook:

http://www.facebook.com/ecueditorcom



Guru

Status: Offline
Posts: 1344
Date:

how much does the licence cost..??? maybe the flashing comunity can start a "kitty" to pay for it to feep all of your hard work going...

__________________

09 busa.????? now what....still got what it takes.......!

I got what you need...!
www.poweredbyford.com

www.marc@poweredbyford.com

 



Veteran Member

Status: Offline
Posts: 97
Date:

I'll kick in for it as well.

__________________
Something wonderful is going to happen...


Newbie

Status: Offline
Posts: 2
Date:

PetriK, I have a setup for that compiler that should work for you. Send me an email or something. I've got a series of Makefiles that would probably help you. They're unix based but should be easy enough to translate them.

__________________


Guru

Status: Offline
Posts: 1233
Date:

for future reference i have been messing around with a version of the gcc compiler for m32r to produce elf format files which can be converted to bin file

http://www.linux-m32r.org/eng/download.html

I have been using this with http://www.cygwin.com/

I have not really got it working to the point where i can compile the c code we have into small bin files like what is produced by HEW (the renesas compiler), it may be something that a make file would be able to help with?

Anyone able to assist with getting an enviroment up and running using the gcc compiler? as the licence for the renesas compiler expires after 4 months.

__________________

site_logo_small.png

www.WoolichRacing.comTune your bike to the Limit with our Advanced ECU Flashing Products



Guru

Status: Offline
Posts: 963
Date:

Another possibility for the Renesas compiler is Microsoft Virtual PC. It allows you to run an instance of windows within windows. If you exit it every time by saving the state it never ages. This will usually defeat time limited license. If nothing else you can just make a new instance every 30 days. The virtual PC for all intents and purposes is a new PC and totally independent from the host PC. The only drawback is you can't access USB devices like the FTDI cable from the virtual PC

__________________


Veteran Member

Status: Offline
Posts: 58
Date:

Samething can be done in vmware workstation for pcs and vmware fusion for mac.

__________________


Member

Status: Offline
Posts: 14
Date:

You can use buildroot or crosstool-ng to make a GCC toolchain for the M32R. This way you get GCC 4.7 which as a lot of optimization from 3.2 :)
You will need linux or cygwin.

__________________


Guru

Status: Offline
Posts: 1233
Date:

mobyfab wrote:

You can use buildroot or crosstool-ng to make a GCC toolchain for the M32R. This way you get GCC 4.7 which as a lot of optimization from 3.2 :)
You will need linux or cygwin.


 Can you please provide some more specific instructions on how to do this with windows 7 and cygwin?



__________________

site_logo_small.png

www.WoolichRacing.comTune your bike to the Limit with our Advanced ECU Flashing Products



Member

Status: Offline
Posts: 14
Date:

You can give this one a try: http://www.sendspace.com/file/ptukj7 (gcc/g++ 4.3)

I unpacked the deb files from the debian port. This should work for bare metal as well.

The original files are here: http://debian.linux-m32r.org/dists/sid/main/



__________________


Member

Status: Offline
Posts: 14
Date:

https://drive.google.com/open?id=0BzWyTGWIwcYQRlEtRGdEMWRjRmM

There you go, latest GCC with GDB under cygwin. 500MB uncompressed.

I had to do it manually as there is no support for the M32R in automatic tools, plus there were a few objects that would not compile.

 

I tried to compile/link a hello world program, works fine.



-- Edited by mobyfab on Wednesday 30th of September 2015 10:17:08 AM

__________________


Veteran Member

Status: Offline
Posts: 40
Date:

I have written a Makefile and linker script for the GNU m32r compiler to compile code for the m32r to a binary file. The code is logically correct, although the GNU compiler does optimise slightly different to the Renesas compiler judging by the outputted binary files.

__________________
Page 1 of 1  sorted by
 
Quick Reply

Please log in to post quick replies.

Tweet this page Post to Digg Post to Del.icio.us


Create your own FREE Forum
Report Abuse
Powered by ActiveBoard