Just looking for the serial bootloader utilities for K60 MCU, download AN2295SW from Freescale website, user TOWER to test.
I download AN2295_Kinetis.eww to TWR-K60N512, start the tool win_hc08sprg.exe, it can talk to TWR-K60N512 via
TWR-SER DD9 adaptor at 115200bps:smileyhappy:.
From the AN2295_Kinetis.map, I can see the ROM up to 0x944.
I modify this file128KB_Pflash.icf to change the memory address setting for my application .eww, I can see the my application MAP file, the code start address change to 0x1000,
I down my application.s19 to TWR-K60N512, then it comes error message :smileycry::
WARNING! S19 image will not fit into available memory (at address 0x00001000)!
Memory programming block 0: W 0x00001000 0%
Can't program block 0 at address 0x00001000.
How to fix this problem?
Another question: If mass production, a new K60 MCU is programmed with the firmware AN2295_Kinetis.eww?
Regards
Samuel
How do u fix the problem at last?
Hi rabbit, you can try moving everything to 0x4000, the bootloader protects everything up this address
Hi Pedro,
I change the start address to 0x4000, the bootloader still fail on program, here is the message:
Bootloader version string: K60
System device ID: 0x14A [Kinetis K60] rev. 0
Kinetis Package: 144-pin .
Number of memory blocks: 1
Memory block #1: 0x00004400-0x0007FFFF
Erase block size: 2048 bytes
Write block size: 128 bytes
Original vector table: 0x00000000-0x000003FF
New vector table: 0x00004000-0x000043FF
S19 Image Control.
Parsed S-record lines: 410 Bytes total: 6524
Source address range: 0x4000-0x597B
The S19 image also contains redirected vectors. The automatic redirection is skipped now.
WARNING! S19 image will not fit into available memory (at address 0x00004000)!
Memory programming block 0: W 0x00005900 98%
Can't program block 0 at address 0x00005900
Any idea?
Regards
Samuel
After I change the memory to 0x4000, I download it to the Flash via IAR workbench. Then problem occurs as below:
Maybe the MCU flash get corrupted, and the 0x0000 flash get protected by mistake.
Is there any tool that I can erase the whole flash? I would like start it from as an empty flash.
Regards
Samuel
Hello,
You can erase the devide with IAR. Project -> Download -> Erase Memory -> Erase All
Regards,
Luis
Hi Luis,
I go to IAR. Project -> Download -> Erase Memory -> Erase All. it works, erase the flash, I regrogram the AN2295_Kinetis.eww to MCU, the MCU can talk to the bootloader, read command works:smileyhappy:.
But the bootloader fail on program the flash, so I try to reprogram the MCU, problem occur:smileyangry::
What's wrong?
Regards
Samuel