How could I disable MPU of K64F

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

How could I disable MPU of K64F

Jump to solution
898 Views
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

Labels (1)
0 Kudos
1 Solution
532 Views
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

View solution in original post

0 Kudos
3 Replies
532 Views
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 Kudos
532 Views
gloria
Contributor III

​Hi Mark,

Should I add any header file?

Best Regards,

GLoria

0 Kudos
533 Views
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 Kudos