How could I disable MPU of K64F

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

How could I disable MPU of K64F

跳至解决方案
1,164 次查看
gloria
Contributor III

Hi, I am using KDS3.0+KSDK1.2.0 and K64F board. How could I disable MPU because I want to use USB CDC. Which file should I modify to diable it?

Many thank!

 

Best Regrads,

Gloria

标签 (1)
0 项奖励
回复
1 解答
798 次查看
mjbcswitzerland
Specialist V

Hi

You should find the register (possibly with slightly different name) in an existing header file.

In an emergency you can use

*(unsigned long *)0x4000d000 = 0;

Regards

Mark

Kinetis: µTasker Kinetis support

K64: µTasker Kinetis FRDM-K64F support  / µTasker Kinetis TWR-K64F120M support  / µTasker Kinetis TWR-K65F180M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

在原帖中查看解决方案

0 项奖励
回复
3 回复数
798 次查看
mjbcswitzerland
Specialist V

Hi

Add

MPU_CESR = 0;

to any code before USB initialisaition.

Regards

Mark

Kinetis: µTasker Kinetis support

K64: µTasker Kinetis FRDM-K64F support  / µTasker Kinetis TWR-K64F120M support  / µTasker Kinetis TWR-K65F180M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 项奖励
回复
798 次查看
gloria
Contributor III

​Hi Mark,

Should I add any header file?

Best Regards,

GLoria

0 项奖励
回复
799 次查看
mjbcswitzerland
Specialist V

Hi

You should find the register (possibly with slightly different name) in an existing header file.

In an emergency you can use

*(unsigned long *)0x4000d000 = 0;

Regards

Mark

Kinetis: µTasker Kinetis support

K64: µTasker Kinetis FRDM-K64F support  / µTasker Kinetis TWR-K64F120M support  / µTasker Kinetis TWR-K65F180M support

For the complete "out-of-the-box" Kinetis experience and faster time to market

0 项奖励
回复