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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,696件の閲覧回数
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,523件の閲覧回数
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,523件の閲覧回数
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,523件の閲覧回数
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,524件の閲覧回数
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,524件の閲覧回数
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,524件の閲覧回数
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,524件の閲覧回数
bwp530
Contributor IV

Hi Lukas:

thank you very much, I wiil follow your suggestion.

0 件の賞賛