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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

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

跳至解决方案
1,700 次查看
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

标记 (2)
0 项奖励
1 解答
1,527 次查看
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 项奖励
6 回复数
1,527 次查看
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 项奖励
1,527 次查看
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 项奖励
1,528 次查看
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 项奖励
1,528 次查看
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 项奖励
1,528 次查看
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 项奖励
1,528 次查看
bwp530
Contributor IV

Hi Lukas:

thank you very much, I wiil follow your suggestion.

0 项奖励