s12zvm bootloader

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

s12zvm bootloader

1,282 Views
sohyunjang
Contributor III

Hi, I use s12zvm MCU.

And I want to make bootloader.

So, I refer to AN4723 and S12ZVM_Bootloader of AN4723SW.

 

I need to add the code of AN4723SW.

and compile Erros is occured.

 

Out of allocation space in segment ROM at address 0xFFFAD8

 

 

The original bootloader code's ROM aera is

 

      ROM           = READ_ONLY   0xFFF800 TO 0xFFFBFF;   // 1K for the bootloader FLASH-ONLY functions. Each 0x200 is 512
      SHADOW_ROM_S  = READ_ONLY   0xFFFC00 TO 0xFFFDFF;   // 512 for funtions that will be copied to RAM

 

So, I want to increase the area of ROM.

 

Is it correct to make the following changes?

 

   ROM           = READ_ONLY   0xFFF600 TO 0xFFFBFF

 

and I change the code, in main.h

#define FLASH_SECTORS_TO_ERASE 251  /* 256 total - 1 interrupt vector - 4 (2k) for Bootloader = 251. Each sector is 512 bytes */

 

 

Do I need to change other code too?

 

thank you.

Labels (1)
0 Kudos
Reply
1 Reply

1,033 Views
dianabatrlova
NXP TechSupport
NXP TechSupport

Hi,

Let me apologize for the delay.

I have no error when I used your modifications.

This error may mean the space of the ROM is not big enough for your code. 

I would like to recommend the newer application note AN12086 - Bootloader for the S12Z devices,

see Simple Serial Bootloader for S12Z - AN draft 

I hope it helps you.

Best regards,

Diana

0 Kudos
Reply