Kea Bootloader AN5400

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

Kea Bootloader AN5400

1,412 Views
martinodeluca
Contributor II

Hello Guys, I am trying to use the Bootloader PC software and firmware from nxp AN5400 and i have some problems. The software PC works quite well but i have problems when I upload by means of Application a new firmware (I used one of an example of SDK frdm.128 and freedom board FRDM-128). The problems is that the new firmware doesn't work even if the procedure is correct. I noticed that if I launch from debug (s32) the application firmware, it works very well. I'am going mad because i can't explain this behavior. The firwmare is present from the address 0x1000  f MCU but it doesnt' work.

Someone have experienced with this problem?

Martino

0 Kudos
Reply
5 Replies

1,039 Views
martinodeluca
Contributor II

mjbcswitzerland Hello Mark, thank u for the hints, but i didn't solved the problem. I try to give more details about this problem. I noticed in debug that the CNT register of RTC is stuck to 0 and it never go on. This is the reason that the application doesn't work. it's more strange because how i told you the application "standalone" works very well. So what I am doing wrong?

Thank you!

Martino

0 Kudos
Reply

1,039 Views
mjbcswitzerland
Specialist V

Hi

If the loaded application runs but not the RTC then there is presumably a problem with the RTC code being used. Without knowing the clock that you are using and the code it is not possible to say what the problem is. However, I do remember analysing PE generated RTC code that is buggy and sometimes fails as detailed here: Running the K64 from its RTC oscillator - does it work? Although I doubt it to be an explanation in this case it shows that you will basically need to debug the code and correct whatever is stopping it working as expected (not all code is fool-proof when not used in the single way that it was tested in).

Regards

Mark


P.S. For the FRDM-KEAZ128 you can also try a loader and application from http://www.utasker.com/kinetis/FRDM-KEAZ128Q80.html

1,039 Views
martinodeluca
Contributor II

Hello Mark, Finally I solved the problem I mentioned here. The problem was a uncorrect clock configuration (ICS). In particular in bootloader KEA the clock ICS is engaged internally (FEI) but in the application code ICS is engaged esternally (FEE) . I tried to change the ICS configuration on the boot code and magically every pheripheral (also the RTC) worked very well. By the way thank you for your suggest. I tried to download utasker but after I got the login I didn't download the source from the repository. Is it possible to have another login or refresh the old one? Thank you

Martino

0 Kudos
Reply

1,039 Views
mjbcswitzerland
Specialist V

Martino

I am glad to hear that you solved the problem.

Regards

Mark

P.S. Since you were also registered as uTasker free commercial user I have re-activated your private account for an extension (5 days).

0 Kudos
Reply

1,039 Views
mjbcswitzerland
Specialist V

Hi

Have you linked the application correctly so that it can start at its shifted start address?
See appendix B of the following document for a list of things to check when working with boot loaders: http://www.utasker.com/docs/uTasker/uTaskerSerialLoader.PDF
It also explains various alternative boot loaders available for your chip.

Regards

Mark

0 Kudos
Reply