freesrtos+MMAU+KM34Z

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

freesrtos+MMAU+KM34Z

Jump to solution
1,487 Views
nickng
Contributor II

Hi ,

If I want to use the freeRTOS with MMAU in a KM34Z MCU. Do I need to some port.c modification in order to use MMAU without troubles?

e.g the store /restore the MMAU registers?

Thanks!

Labels (1)
Tags (4)
1 Solution
890 Views
MarMi
NXP Employee
NXP Employee

Hi Nick,

from MMAU initialization point of view as Jing explained above - no special steps needed.

Yes MMAU register context save / restore would have to be handled by FreeRTOS if MMAU is used in more tasks. In this case, most likely, portasm.s would have to be be extended by saving/restoring MMAU registers.

If you plan using MMAU in single task then no saving/restoring MMAU is required and use can use current FreeRTOS files

Kind regards,

Martin M. 

View solution in original post

4 Replies
891 Views
MarMi
NXP Employee
NXP Employee

Hi Nick,

from MMAU initialization point of view as Jing explained above - no special steps needed.

Yes MMAU register context save / restore would have to be handled by FreeRTOS if MMAU is used in more tasks. In this case, most likely, portasm.s would have to be be extended by saving/restoring MMAU registers.

If you plan using MMAU in single task then no saving/restoring MMAU is required and use can use current FreeRTOS files

Kind regards,

Martin M. 

890 Views
nickng
Contributor II

HI Martin,

Thanks or the answer.

By the way, the FreeRTOS embedded most os the asm code in port.c as well.

0 Kudos
890 Views
jingpan
NXP TechSupport
NXP TechSupport

Hi Nick,

No, you do not need to do any thing to enable MMAU. To minimize power dissipation, the design supports an architectural clock gate for the entire module, that is, the MMAU is only clocked when responding to bus requests to its programming model or is busy performing a calculation.

There is a MMAU demo in KM34 sdk, please find it in \boards\twrkm34z75m\driver_examples\mmau.

Regards,

Jing

0 Kudos
890 Views
nickng
Contributor II

Hi Jing,

Thanks for your reply!

My question is focusing on the context switching ( or interrupts) of the RTOS with that specific MMAU registers.

For a bare metal system, with can use the pair of store and restore action of those mmau register. Do I need to do the same on the port.c ? 

here are the store/restore pair :

pastedImage_1.png

0 Kudos