Hello,
I want to port MotionApps for other uC (not Atmel's). I have read User Guide, but still it is not clear too me how to do it. I compile in Eclipse with a Code Sourcery compiler. I have downloaded Embedded MotionApps™ Source 2.0 and added umpl folder to my project. I have MPU6050 Rev. E chips. So far I added files for compilation:
umpl/lite/accel/mpu6050.c
umpl/lite/dmpDefaultMantis.c
umpl/lite/mldl_cfg_init_umpl_6050.c
umpl/platform/at32/mlsl_at32.c
and include folders:
umpl/platform/include
umpl/platform/include/linux
I as still not sure how to add compilation flags from UG's section 4.12.
When I try to compile I get errors:
http://pastebin.com/v0K0Viuk
Could someone help me?
BR,
Gelmi
Re: Re: Porting problem
Please let us know which SDK you are using. Are you using the Software for the Atmel AVR UC3 Platform or your platform. We recommned that you use the SDK software for your platform that is available under the Developers's corner.
We have tested the software sucessfully on the different platforms. If it is a Atmel UC3 microcontroller, we have included the porting. However the porting should be done by the user if it is a different microcontroller.
Re: Re: Porting problem
Thank you for the reply. I am using Embedded MotionApps™ Source 2.0 (only umpl folder). It is hard to port this lib because even in SDK for other platforms there is still some code for Atmel, AVR Studio libraries, like asf.h, ustore_nvram_uc3_io.c, etc. Could you work on that code, to make it more user friendly? I mean clear the code and put TODO sections just in places necessary co successfully build this lib on other platforms. It is confusing that you do not share registers description.
Re: Re: Porting problem
Thank you for your feedback. We are currently working on improving the SDK. We will definitely keep your inputs in mind when we implement the changes.
Re: Re: Porting problem
What platforms have you actually tested it on with success? Can you make particular implementations available to download?
"
We have tested the software sucessfully on the different platforms. If it is a Atmel UC3 microcontroller, we have included the porting. However the porting should be done by the user if it is a different microcontroller.[/quote]
"
Re: Re: Porting problem
We have several customers who have used the software with the MSP430 and ARM microcontrollers. We do not have any implemenations currently available other the Atmel UC3.