EzPort WriteError flag set while programming Flash Config Field

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

EzPort WriteError flag set while programming Flash Config Field

Contributor II

I am using EzPort to program bootloader to K70 MCU at factory, everything works fine if I don't set Flash security. When I attempt programming an image (srec) which has FSEC secured (tried 00 and 11 for SEC) in flash configurations, the first chunk (first 0x400 bytes) programs fine, the next chunk which has the flash configurations comes back with WriteError flag set. I have made sure the MCU is not reset at any point during programming after the flash is erased. The same srec image when I program through a JTAG programmer (P&E Micro) works fine.

If anybody can help is greatly appreciated.

Labels (1)
0 Kudos
2 Replies

Contributor II

Thanks for the response Mark !. I am using my own application, driving EzPort through an FTDI chip FT2232H. I never tried uTasker before, will give it a try and let you know.

Meanwhile if someone else has any point, please shoot at me.

0 Kudos

Specialist V

Hi Gireesh

What do you use to program via EzPort? It may be that, if it is an adapter that you have bought, the adapter doesn't allow programming security by default. You may need to configure it appropriately to allow it to be performed.

I use the following application to do it [ http://www.utasker.com/docs/uTasker/uTaskerEzPortCloner.pdf ] and have no problems writing the sector with the flash configuration with security set and then continuing with the rest - as you have pointed out, the new security setting becomes valid only after the next reset, so if no reset is made the values written have no effect yet.



Kinetis: http://www.utasker.com/kinetis.html
Kinetis K70:
- http://www.utasker.com/kinetis/TWR-K70F120M.html
- http://www.utasker.com/kinetis/EMCRAFT_K70F120M.html

EzPort Cloning: http://www.utasker.com/docs/uTasker/uTaskerEzPortCloner.pdf

Free Open Source solution: https://github.com/uTasker/uTasker-Kinetis
Working project in 15 minutes video: https://youtu.be/K8ScSgpgQ6M

Professional Kinetis support, one-on-one training and complete fast-track project solutions: http://www.utasker.com/support.html

0 Kudos