Could you help me disenable the Ezport_cs based on Kinetis K60?

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

Could you help me disenable the Ezport_cs based on Kinetis K60?

Jump to solution
1,160 Views
670096762
Contributor II

hello,I want to ask a question, it worried me for a long time. 

I use the #Kinetis #K60 to make a project, and i want to use the PIN PTA4, but i must disable the #Ezport_cs, so i add a code "#FTFL_FOPT=0x00;" in my main function. but it didn't work ,when i put down the PTA4, K60 still enter to the Ezport mode. then i read the datasheet,

i find that i need to control the flash to change the FTFL_FOPT register maybe. Is that right? I just use the IDEs to control the register but not using CodeWarrior

I read some Post and know that CodeWarrior and IDEs are different, Is that right?

Could you help me solve it problem? It worried me for a long long time. Thank you very much.

Tags (1)
1 Solution
963 Views
mjbcswitzerland
Specialist V

Hi

In order to disable EZPORT you need to change the FOPT value in the Flash configuration. You cannot write FTFL_FOPT to do it.

In the uTasker project one does in app_hw_kinetis.h:

#define KINETIS_FLASH_CONFIGURATION_NONVOL_OPTION  (FTFL_FOPT_EZPORT_DISABLED | FTFL_FOPT_LPBOOT_NORMAL | FTFL_FOPT_NMI_DISABLED)

which is compatible with all IDEs.

In other packages you will generally need to search around for an assembler file (which will probably be different for each IDE) to locate it and then change the hex values manually.

Regards

Mark

Complete Kinetis solutions, training and support: http://www.utasker.com/kinetis.html
Kinetis K60/K10:
- http://www.utasker.com/kinetis/TWR-K60N512.html
- http://www.utasker.com/kinetis/TWR-K60D100M.html
- http://www.utasker.com/kinetis/TWR-K60F120M.html
- http://www.utasker.com/kinetis/ELZET80_NET-KBED.html
- http://www.utasker.com/kinetis/ELZET80_NET-K60.html

View solution in original post

4 Replies
964 Views
mjbcswitzerland
Specialist V

Hi

In order to disable EZPORT you need to change the FOPT value in the Flash configuration. You cannot write FTFL_FOPT to do it.

In the uTasker project one does in app_hw_kinetis.h:

#define KINETIS_FLASH_CONFIGURATION_NONVOL_OPTION  (FTFL_FOPT_EZPORT_DISABLED | FTFL_FOPT_LPBOOT_NORMAL | FTFL_FOPT_NMI_DISABLED)

which is compatible with all IDEs.

In other packages you will generally need to search around for an assembler file (which will probably be different for each IDE) to locate it and then change the hex values manually.

Regards

Mark

Complete Kinetis solutions, training and support: http://www.utasker.com/kinetis.html
Kinetis K60/K10:
- http://www.utasker.com/kinetis/TWR-K60N512.html
- http://www.utasker.com/kinetis/TWR-K60D100M.html
- http://www.utasker.com/kinetis/TWR-K60F120M.html
- http://www.utasker.com/kinetis/ELZET80_NET-KBED.html
- http://www.utasker.com/kinetis/ELZET80_NET-K60.html

963 Views
670096762
Contributor II

so you mean that 

#define KINETIS_FLASH_CONFIGURATION_NONVOL_OPTION  (FTFL_FOPT_EZPORT_DISABLED | FTFL_FOPT_LPBOOT_NORMAL | FTFL_FOPT_NMI_DISABLED

is compatible with all IDEs? but i can't find the file app_hw_kinetis.h. 

If i choose to change the hex values ,which file do i need to open?, how can i find it and do it?

I'm sorry I'm useless, but I still ask you to explain it to me. Thank you very much!

0 Kudos
963 Views
mjbcswitzerland
Specialist V

Hi

As I noted,

#define KINETIS_FLASH_CONFIGURATION_NONVOL_OPTION  (FTFL_FOPT_EZPORT_DISABLED | FTFL_FOPT_LPBOOT_NORMAL | FTFL_FOPT_NMI_DISABLED)

is how it is done in the uTasker project which allows a cross-platform and easy to manage solution - you can use the project free from its GITHUB repository if you are starting a new professional project that requires better support and capabilities to ensure faster delivery.

Otherwise you need to solve it in the specific framework that you use by identifying the relevant source or, as you have noted, by manually editing the binary or hex file that you are loading (although that would be a last resort solution).

To give you a little help here are the screen shots of a K60 binary file build with and then without EZPORT enabled so that see the bit that needs to be changed.

pastedImage_1.png
Enabled EZPORT

pastedImage_2.png

Disabled EZPORT

Regards

Mark

963 Views
670096762
Contributor II

Oh, Thank you very very very very very very very very very very very very  much,you've done me a great service

0 Kudos