Hi Anita.
Thanks for your reply
Can yo check my solution and train of thought.
So I try to do this:
Install S32K344 HSE FW 0.2.40.0 SR Release with S32K344_HSE_FW_INSTALL provided by NXP
Reset 2 times (Power Off - Power On)
Flash my application and start debug
Reset
Try to reattach
My Application
I used HSE_FW_S32K344_0_2_40_0 and the following files form S32K3_HSE_DemoExamples_1_0_0: hse_host.h, hse_host.c, hse_mu.h, hse_mu.c.
Linker file:
...
MEMORY
{
int_pflash : ORIGIN = 0x00400000, LENGTH = 0x001D4000 /* 2048KB - 176KB (sBAF + HSE)*/
int_pflash_passive : ORIGIN = 0x00600000, LENGTH = 0x001D4000 /* 2048KB - 176KB (sBAF + HSE)*/
int_dflash : ORIGIN = 0x10000000, LENGTH = 0x00020000 /* 128KB */
int_itcm : ORIGIN = 0x00000000, LENGTH = 0x00010000 /* 64KB */
int_dtcm : ORIGIN = 0x20000000, LENGTH = 0x0001F000 /* 124KB */
int_stack_dtcm : ORIGIN = 0x2001F000, LENGTH = 0x00001000 /* 4KB */
int_sram : ORIGIN = 0x20400000, LENGTH = 0x0002FF00 /* 184KB, needs to include int_sram_fls_rsv */
int_sram_fls_rsv : ORIGIN = 0x2042FF00, LENGTH = 0x00000100
int_sram_no_cacheable : ORIGIN = 0x20430000, LENGTH = 0x0000FF00 /* 64KB, needs to include int_sram_results */
int_sram_results : ORIGIN = 0x2043FF00, LENGTH = 0x00000100
int_sram_shareable : ORIGIN = 0x20440000, LENGTH = 0x00004000 /* 16KB */
ram_rsvd2 : ORIGIN = 0x20444000, LENGTH = 0 /* End of SRAM */
}
...
TARGET(binary) /* specify the file format of binary file */
INPUT (C:\Projects\Torc\AB_SWAP\bhutorc-adl-mcu-evb\source\adl-main-D_52c6b06a.bin) /*Temporary dummy path*/
OUTPUT_FORMAT(default) /* restore the out file format */
SECTIONS
{
...
.new_application_image :
{
. = ALIGN (0x4);
__new_application_image_start__ = .;
C:\Projects\Torc\AB_SWAP\bhutorc-adl-mcu-evb\source\adl-main-D_52c6b06a.bin /*Temporary dummy path*/
. = ALIGN (0x4);
__new_application_image_end__ = .;
} > int_pflash_passive
...
...
(void)HSE_GetVersion_Example(&gHseFwVersion);
...
pHseSrvDesc->srvId = HSE_SRV_ID_ACTIVATE_PASSIVE_BLOCK;
srvResponse = HSE_Send(MuInstance, MuChannel, gSyncTxOption, pHseSrvDesc);
...
- HSE_SRV_ID_ACTIVATE_PASSIVE_BLOCK serviceis called
- After reset

Problems
If I try to get the HSE FW version I’ve got the following return value: HSE_SRV_RSP_INVALID_ADDR (0x55a5a26a)
If I attach right after a reset an I try to push the suspend button I’ve got Interrupt Failer error message:

Questions:
- Is the thought process I'm following good or completely wrong?
- How can I attach to the device with S32 device studio after an A/B SWAP?
- How can I test if the app update was successful?