MPC5777M: bootloader can't program for address in same partition.

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

MPC5777M: bootloader can't program for address in same partition.

Jump to solution
1,699 Views
bwp530
Contributor IV

MPC5777M S32DS-2017v1

bootloader link file:

1.png

app link file:

2.png

bootloader code addr is 0x1000000, which is in the same partition for 0x1080000. 

This bootloader can erase 0x1080000, but can't program data into 0x1080000, why?

and where I should put bootloader in?

3.png

Tags (2)
0 Kudos
1 Solution
1,526 Views
bwp530
Contributor IV

Hi lucas:

my mistake.  this partition is locked in example, I transplant example to my project. I have changed it as follow:

1.png

View solution in original post

0 Kudos
6 Replies
1,526 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

Read-While-Write is supported only between partitions, so the code must be executed from another partition or from RAM memory. If interrupts are not disabled, make sure that interrupt vector table and ISR handlers (+ other resources accessed by the handlers) are also in different partition / RAM.

You can use low and mid blocks for the bootloader:

pastedImage_1.png

Regards,

Lukas

0 Kudos
1,526 Views
bwp530
Contributor IV

Hi lukas:

I followed your suggestion.

My bootloader link file:

2.png

my app link file:

3.png

but it still can't program into 0x100000

1.png

It is strange, program is successful, but "verify" failed.

I double check the bootloader hex file, there is no any code in sixth partition of flash.

can you help me?

@Lukas Zadrapa

0 Kudos
1,527 Views
lukaszadrapa
NXP TechSupport
NXP TechSupport

Hi,

let's start with some basic debugging. You have 'failed address' - what can you see in the memory? And what are expected data?

Regards,

Lukas

0 Kudos
1,527 Views
bwp530
Contributor IV

Hi lucas:

my mistake.  this partition is locked in example, I transplant example to my project. I have changed it as follow:

1.png

0 Kudos
1,527 Views
bwp530
Contributor IV

I add a test example as attachment, you can download it.

the pic. you want as follow:

1.png

2.png

thank you very much.

Lukas Zadrapa

0 Kudos
1,527 Views
bwp530
Contributor IV

Hi Lukas:

thank you very much, I wiil follow your suggestion.

0 Kudos