ChibiOS 3.x Porting

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

Post Reply
avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

ChibiOS 3.x Porting

Post by avrhack »

I had decided to take the plunge and start migrating my 2.6.x firmware to 3.x. Having read the porting guide it seemed pretty clear what to expect.

However I was more than a little surprised at all the changes in organisation, so I've had to re-work the Makefile, which unless I've missed something in the guide, was never covered. That wasn't too bad, but then include files were not found etc. etc. so frankly I've given up in the hope that there will actually be a more complete guide to this at some point, as the current one seems to focus solely on the actual API rather than the bigger picture of the complete build environment which people will of course need to move to 3.x as well.

Any thoughts?
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ChibiOS 3.x Porting

Post by Giovanni »

Hi,

Just take a makefile from a 3.0 project, it is much improved and easy to understand.

Giovanni
avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

Re: ChibiOS 3.x Porting

Post by avrhack »

Yep did that thanks - merged into my existing ones. Then ran into header files not being found so assumed there were yet more structural changes in the header layouts that weren't covered in the 'porting guide' and at that point decided to wait rather than invest the time since the documentation doesn't seem to cover this properly.......
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

Re: ChibiOS 3.x Porting

Post by steved »

Somewhat surprised at the problems you seem to be having; doesn't reflect my own experience, although I migrated to 3.0 fairly early on. Don't think I've ever suffered from missing include files. Migration was mostly a matter of changing the names of functions and structures (which is largely documented) and keeping the makefile in line with the evolving structure.
avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

Re: ChibiOS 3.x Porting

Post by avrhack »

steved wrote:Somewhat surprised at the problems you seem to be having; doesn't reflect my own experience, although I migrated to 3.0 fairly early on. Don't think I've ever suffered from missing include files. Migration was mostly a matter of changing the names of functions and structures (which is largely documented) and keeping the makefile in line with the evolving structure.


Thanks Steve - interesting. Suggests I've not sorted the makefile properly so I'll persevere and give it another go.....
User avatar
Giovanni
Site Admin
Posts: 14895
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 997 times

Re: ChibiOS 3.x Porting

Post by Giovanni »

In general is a good idea to use configuration files and makefiles from the version you are using, those evolve over time.

Giovanni
avrhack
Posts: 140
Joined: Tue Dec 24, 2013 1:42 pm
Has thanked: 17 times
Been thanked: 3 times

Re: ChibiOS 3.x Porting

Post by avrhack »

Giovanni wrote:In general is a good idea to use configuration files and makefiles from the version you are using, those evolve over time.

Giovanni


You are right as always Giovanni, I was just being lazy and hoping to get away without reconciling the various files! But I guess there's no easy way but to do that. Might be worth putting that into the porting guide - reminder to pick up the new makefile, mcuconf.h, chconf.h and halconf.h.......
Post Reply