MIPS32 port

ChibiOS public support forum for topics related to the micro-controllers based on MIPS32 cores.
User avatar
Giovanni
Site Admin
Posts: 14894
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: MIPS32 port

Post by Giovanni »

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

Post by Dmytro »

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

Post by Dmytro »

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: 14894
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: MIPS32 port

Post by Giovanni »

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

Post by Dmytro »

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

Post by Dmytro »

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

Post by Dmytro »

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: 14894
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: MIPS32 port

Post by Giovanni »

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

Post by Dmytro »

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: 14894
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: MIPS32 port

Post by Giovanni »

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
Post Reply