Hi Christof,
I'm afraid there's no such application note.
"The P-Flash of the S32K148 is devided in 3 Parts.
Part 1 and Part 2 can be used for the Application, with the advantage that if the application is excecuted from , let's say Part2, part 1 can be updated with the new application. Am I right?"
- Yes, that's correct.
"If we place the Bootloader in Part 3, the bootloader can access the emulated EEPROM."
- The reference manual says:
"The last partition (448KB Program Flash and 64KB Data
Flash/FlexMEM), being a single read partition which is
shared, needs consideration as code may not execute from
the 448KB Program Flash area at the same time as the
64KB Data Flash/FlexNVM area is being accessed."
But there's simple workaround - execute the code from RAM memory (like functions which read/write the EEE). You can use these macros to force a function to RAM:
START_FUNCTION_DEFINITION_RAMSECTION
END_FUNCTION_DEFINITION_RAMSECTION
Notice that interrupts should be either disabled or all the resources related to interrupts need to be moved to RAM too.
"And it is also possible to update the Bootloader during an started, let's stick with the example Part 2, application?"
- Yes. If the code runs from Part 1 or Part 2, you can update Part 3.
"And thats the recommended way for the S32K148, am I right?"
- Yes.
"Any application which is placed in the NVRAM, is not able to make an write access to an emulated EEPROM?"
- NVRAM - do you mean FlexRAM? There's no such option at all because if Emulated EEPROM is enabled, whole FlexRAM is used for EEE. If you want to use FlexRAM as a system RAM, the emulation needs to be disabled.
Regards
Lukas