When I write to P_flash(Address 0x19000, 8 bytes),it can write successfullt.
But when the address is 0x190001, the byte can't be writen.
Why?
Hi,
The address 0x190001 is out of Flash address range. I assume that you mean the address 0x19001.
Please, refer to the reference manual rev9. to the section "36.5.11.4 Program Phrase command" in that case.
There can be seen the note "1." under the "Table 36-40. Program Phrase Command FCCOB requirements"
The Flash address Must be 64-bit aligned (Flash address [2:0] = 000)
Also, if Flash address is not 64-bit aligned the FSTAT[ACCERR] bit is set.
Please, refer to "Table 36-41. Program Phrase command error handling".
I hope it helps you.
Best Regards,
Diana