freesrtos+MMAU+KM34Z

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

freesrtos+MMAU+KM34Z

跳至解决方案
1,933 次查看
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!

标签 (1)
标记 (4)
1 解答
1,336 次查看
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. 

在原帖中查看解决方案

4 回复数
1,337 次查看
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. 

1,336 次查看
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 项奖励
回复
1,336 次查看
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 项奖励
回复
1,336 次查看
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 项奖励
回复