Page 1 of 1
ChibiOS 3.x Porting
Posted: Wed Apr 01, 2015 4:44 pm
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?
Re: ChibiOS 3.x Porting
Posted: Wed Apr 01, 2015 5:58 pm
by Giovanni
Hi,
Just take a makefile from a 3.0 project, it is much improved and easy to understand.
Giovanni
Re: ChibiOS 3.x Porting
Posted: Wed Apr 01, 2015 6:02 pm
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.......
Re: ChibiOS 3.x Porting
Posted: Wed Apr 01, 2015 8:08 pm
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.
Re: ChibiOS 3.x Porting
Posted: Wed Apr 01, 2015 8:15 pm
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.....
Re: ChibiOS 3.x Porting
Posted: Wed Apr 01, 2015 8:16 pm
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
Re: ChibiOS 3.x Porting
Posted: Thu Apr 02, 2015 10:25 am
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.......