Hello !
1.
Do I understand right and FLASH API is designed for be called from secure side only ?
#define BOOTLOADER_API_TREE_POINTER ((bootloader_tree_t *)0x130010f0U)
#define VERSION1_FLASH_API_TREE BOOTLOADER_API_TREE_POINTER->flashDriver.version1FlashDriver
But all FLASH API required Non secure address range e.g started from 0 ?
Does it matter what kind of attributes has erased flash sector , Secure or Not secure ?
2. When I read erased flash memory it has value 0x00, not 0xFF what is typical value ?
3. FLASH API in UM might have wrong parameters explanation:
Erase:
lengthInBytes The length, given in bytes (not words or long words) to be erased. Must be word-aligned.
Program :
lengthInBytes The length in bytes (not words or long words) to be erased; the length must also be 512bytes-aligned.
I think erasing can be done on sector 512 byte basic.
But I expect it should be possible to write by 4 byte aligned chunks. But I have HardFault if I write less than 512 bytes.
Can I program one dword ( 4 bytes ) at once ?
Regards,
Eugene