I cannot share my project.
I can describe exactly which files I use and what I do.
1. I opened two examples "lpcxpresso55S06_secure_gpio_s" and "lpcxpresso55S06_secure_gpio_ns". After building the project, I generated two code files lpcxpresso55S06_secure_gpio_s.hex (address 0x10000 - 0x11080) and lpcxpresso55S06_secure_gpio_ns.hex (address 0x10000000 - 0x10003440).
2. I started my debbugger and connected to the device using SWD interface.
3. I loaded the firmware into RAM. Then I loaded my data into RAM, which I will later put into FLASH memory.
4. I called flash_iniit and flash_program function with address, size of data to write and current location of data in RAM.
5. Uploading to FLASH from API works without any problem for addresses 0x10000 - 0x11080 , that is for non-secure area. When I want to upload with API the application code to address 0x10000000 - 0x10003440, the API returns an error. "Address or length is outside of addressable memory".
How to make API work also for addresses above 0x10000000?
Thanks
Grzegorz