Serial Bootloader Problem for K60N512 MCU

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

Serial Bootloader Problem for K60N512 MCU

1,294 Views
rabbit
Contributor III

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

Labels (1)
0 Kudos
6 Replies

490 Views
yantailuo
Contributor I

How do u fix the problem at last?

0 Kudos

490 Views
apanecatl
Senior Contributor II

Hi rabbit, you can try moving everything to 0x4000, the bootloader protects everything up this address

0 Kudos

490 Views
rabbit
Contributor III

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

0 Kudos

490 Views
rabbit
Contributor III

After I change the memory to 0x4000, I download it to the Flash via IAR workbench. Then problem occurs as below:

  1. the MCU can't talk to Freescale- Universal bootloader.
  2. I can't download the AN2295_Kinetis.eww to MCU via IAR again.
  3. I can't download any program which starting at 0x0000 to MCU via IAR.

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

0 Kudos

490 Views
LuisCasado
NXP Employee
NXP Employee

Hello,

You can erase the devide with IAR. Project -> Download -> Erase Memory -> Erase All

Regards,

Luis

0 Kudos

490 Views
rabbit
Contributor III

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::

  1. The MCU can't be erase again, come error message "The flash loader program reported error"
  2. can't reprogram AN2295_Kinetis.eww, always come error message "The flash loader program reported error"
  3. Can program flash start at 0x4000
  4. I try recycle the power, still same.

What's wrong?

  1. AN2295_Kinetis.eww do something stupid?
  2. The MCU PK60N512VMD100 not stable for flash?
  3. P&E debugger not stable?

Regards

Samuel

0 Kudos