when I use the demo code to write and read Dflash , it is OK, as the example below:
but I modify the example code to erase and programe pflash ,it jump to hard fault.
I want to write the addr 0x440000 using 0-79 data, so I modify the start addr and sector number only as below.
I use the Jlink emulation, its result as below: