I'm working on MK12DN512VMC5 and trying to manage my logs buffer inside the flash area.
My development environment is IAR version: 8.20.2. If I try to access the flash I got a hard fault (0x1C6C). This is occurring due to Accessing an invalid address. What should I do about it? What are the right APIs for this purpose ( - logs purpose)?