9 axis fusion

By manu , 22 July 2014

Hi,

I am using a MPU9250 and a cortex M0. I would like to port the Motion Driver 6.0 to it but I have less than 4kbytes RAM available to do the Sensor fusion.

It is possible to do a 9 axis fusion with only 4kbytes of RAM?
If it is not, is there a way to use less RAM ? I just want to read quite accurate quaternions.

I also tried to add the librairy libmpllib.a to my project on Keil. I have this error :
"._buildsoundlab.axf: Error: L6366E: quaternion_supervisor.o attributes are not compatible with the provided cpu and fpu attributes .
Object quaternion_supervisor.o contains Build Attributes that are incompatible with the CPU attributes.
Tag_CPU_arch = ARM v7E-M (=13)
Tag_CPU_arch_profile = The microcontroller profile 'M' (e.g. for Cortex M3) (=77)
Tag_THUMB_ISA_use = Thumb2 instructions were permitted (implies Thumb instructions permitted) (=2)
._buildsoundlab.axf: Error: L6242E: Cannot link object quaternion_supervisor.o as its attributes are incompatible with the image attributes.
... wchart-16 clashes with wchart-32.
... packed-enum clashes with enum_is_int."

The librairy should be compatible with CM0. Is there a way to fix this error?

Thanks in advance.

guy_mcilroy

11 years 7 months ago

4K of RAM is going to be really tough. You can try taking a look at the data structures and try removing the unnecessary ones. Look in the results_holder.c and storage_holder.c and try to remove some of the data structures there. Optimize for size also. This will take some trail and error but no other way. 8K RAM would be better.

Send an email to developers@invensense.com and we can send you an M0 library.

phpbb Post ID
25425

trioconseil

11 years 6 months ago

Hi all,
Would any of you share this cortex M0 lib with me too ?
drix@tangibledisplay.com
Thanks a lot !!
Cedric ;)

PS: @m3dsoundlabs, I had the same memory problem and if ever you haven't solved yours, this post saved me:
https://plus.google.com/+AndreyYurovsky/posts/XUr9VBPFDn7

phpbb Post ID
25428

nameless911_iamas

11 years 1 month ago

Hi, Can you provide me with cortex library also?
boyko.kazakov @ gmail.com
Thanks

phpbb Post ID
25434
phpbb Topic ID
16395