Yan Sun

Confused with flash's erasing and programing

Discussion created by Yan Sun on Jul 17, 2018
Latest reply on Jul 22, 2018 by Kerry Zhou

I'm using KEAZ128 and S32DS, and below are my main function

linker file

section setting

and data defination.

What my problem is that I can erase and program the sector after 0x4000 when there is no flash_data's defination and .mytext section setting. And once I allocate flash_data in the .mytext section, I can't erase and program the sector after 0x4000 anymore. Please help. Project attached.

Attachments

Outcomes