MIPS32 port

ChibiOS public support forum for topics related to the micro-controllers based on MIPS32 cores.
User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: MIPS32 port

Postby Giovanni » Sat Nov 24, 2012 10:50 pm

Does CodeSourcery (now Mentor CodeBench) work for this? There is a free MIPS version.

Giovanni

Dmytro
Posts: 98
Joined: Sun Oct 07, 2012 11:49 am

Re: MIPS32 port

Postby Dmytro » Mon Nov 26, 2012 10:43 am

Giovanni wrote:Does CodeSourcery (now Mentor CodeBench) work for this? There is a free MIPS version.

Giovanni

I didn't try, but I will. Basically any gnu/gcc toolchain should work. Later I was going to check LLVM. As it may become a good alternative to GCC soon.

I raised a question on microchip forum regarding the link-time issue I face: http://www.microchip.com/forums/m689784.aspx. Hope to get some answer there.

Dmytro
Posts: 98
Joined: Sun Oct 07, 2012 11:49 am

Re: MIPS32 port

Postby Dmytro » Tue Nov 27, 2012 10:16 am

I've tried codesourcery mips toolchain and it works fine. At least the latest one: https://sourcery.mentor.com/GNUToolchain/release2189

I pushed several updates(few fixes, few improvements and reorganization of how mips core timer is handled) to the branch. I suggest everybody pull those.

best regards,
-- dmytro

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: MIPS32 port

Postby Giovanni » Tue Nov 27, 2012 12:48 pm

Hi,

Good to know, CodeSourcery is like a reference for me because it is stable and supported.

Giovanni

Dmytro
Posts: 98
Joined: Sun Oct 07, 2012 11:49 am

Re: MIPS32 port

Postby Dmytro » Wed Dec 05, 2012 12:06 am

Hi guys,
I did some "progress" to build the entire chibios with xc32.
I've isolated the problem around the linker and highlighted that at microchip forum.
Though it's possible to build the world with xc32 now I believe that it's better to wait for their conclusion instead of pushing some fragile stuff while we have old good GCC with mips support!

cheers,
-- dmytro

Dmytro
Posts: 98
Joined: Sun Oct 07, 2012 11:49 am

Re: MIPS32 port

Postby Dmytro » Tue Dec 18, 2012 1:10 am

Hi,
I've pushed mips16 ISA support.

It does not work very well with each GCC. Latest GCC distribution from codesourcery/mentorgraphics crashes during the compilation with internal error. GCC 4.4 succeeds with the compilation but sometimes it generates wrong assembly code =/. And xc32 does not support mips16 in free version.
I could successfully compile and run chibi in mips16 mode only with GCC 4.7

Thereby this mode is by default disabled.

best regards,
-- dmytro

Dmytro
Posts: 98
Joined: Sun Oct 07, 2012 11:49 am

Re: MIPS32 port

Postby Dmytro » Tue Jan 08, 2013 1:40 am

Any chance to get this into the mainline so more people can try the port and report the bugz? Is there any requirements for that?
I'm planning to work on some peripheral embedded into PIC32 but maybe people may contribute themselves some pieces meanwhile.
Also I'm curios whether there is any interest of this port for chibiOS.

thanks,
-- dmytro

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: MIPS32 port

Postby Giovanni » Tue Jan 08, 2013 9:00 am

Hi,

It could go in mainline after some review and after clarifying the situation regarding compilers, it is still not clear for me.

About mainline, are you available for long term support and maintenance? I cannot officially support something I cannot test nor maintain.

Giovanni

Dmytro
Posts: 98
Joined: Sun Oct 07, 2012 11:49 am

Re: MIPS32 port

Postby Dmytro » Tue Jan 08, 2013 9:48 pm

Thanks Giovanni for the reply.
I completely understand your point. I was just curious whether there any interest in this port.

Of course I want to finish integration with microchip's compiler and do more test before you can start integration into the mainline.
Also I will try to get more HW samples to test on.

Of course I'm available for LTS of this port if there will be at least one user except myself ;).

cheers,
-- dmytro

User avatar
Giovanni
Site Admin
Posts: 14444
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1074 times
Been thanked: 921 times
Contact:

Re: MIPS32 port

Postby Giovanni » Tue Jan 08, 2013 9:57 pm

OK,

No need to rush things, let it grow and mature. I think there must be interest because a MIPS port has been requested in several occasions in the past. There is also an open ticket on the Feature Request tracker.

Please everybody, give feedback about the port :)

Giovanni


Return to “MIPS32 Support”

Who is online

Users browsing this forum: No registered users and 6 guests