S32K116

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

S32K116

1,533件の閲覧回数
mehmetkaradag
Contributor III

Hello,

I want to write data directly to the P-Flash on the S32K116 without applying any partitioning. In the first image I shared, you can see that the data is written successfully.

Then I try to erase the data I wrote. However, when I do that, it erases 0x50 bytes. You can observe this in the second image. I also shared the contents of the wrapper function used for memory erase in the third image.

Additionally, when I stop debugging and start again, the values I wrote to Flash appear to be already erased.

Could you please help me understand what's happening?

Thank you in advance.



1)

Ekran Görüntüsü (246).png

2) 

Ekran Görüntüsü (247).png

3)

Ekran Görüntüsü (248).png

 



 

 

 

 

タグ(1)
0 件の賞賛
返信
5 返答(返信)

1,496件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@mehmetkaradag

Please double check if cache is enable or not in your code. 

The cache should be disabled before modifying the flash content because the buffer is not updated automatically. 

0 件の賞賛
返信

1,486件の閲覧回数
mehmetkaradag
Contributor III

Hi @Senlent ,

 

I have two questions:

  1. I'm asking to confirm — does a flash mass erase happen every time I enter debug mode?

    mehmetkaradag_0-1745235136170.png

     

  2. I don’t want to debug, I only want to flash the code as shown in the screenshot below (RT1176, MCUXpresso). Is there a feature like this? I couldn’t find it anywhere.

    mehmetkaradag_1-1745235216643.png

     

Thanks for your helping.

タグ(1)
0 件の賞賛
返信

1,464件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@mehmetkaradag

1.I'm asking to confirm — does a flash mass erase happen every time I enter debug mode?

Yes, but you can set preservation for some memory.

Senlent_1-1745286290052.png

 

2.I don’t want to debug, I only want to flash the code as shown in the screenshot below (RT1176, MCUXpresso). Is there a feature like this? I couldn’t find it anywhere.

S32 DS Platfrom have no such feature available, but S32 DS For Arm does.

1,430件の閲覧回数
mehmetkaradag
Contributor III

Hi again @Senlent,

Thank you for all your help first.

have one last question for you:

When I modified the linker file of the user application, I noticed that the changes are not reflected in the map file. The linker file was originally shared across all SDKs, but I separated it and made it independent — meaning it now points to the one I specified. I’ve attached a screenshot below. However, since the changes are not reflected in the map file, I’m unable to start the user application from the memory region I want.

Ekran Görüntüsü (256).png

Could you please help me with this?

Thank you!

タグ(1)
0 件の賞賛
返信

1,426件の閲覧回数
Senlent
NXP TechSupport
NXP TechSupport

Hi@mehmetkaradag

Could you describe it in more detail, I don't understand what you mean.

0 件の賞賛
返信