Resolved! Using end of memory address as process stack pointer value causing INVPC hard fault.
In STM32L432KC(arm cortex-m4+FPU) there are two ram memory blocks. Following is a snippet from the linker script I use._e_ram2_stack = ORIGIN(RAM2) + LENGTH(RAM2); _e_ram_stack = ORIGIN(RAM ) + LENGTH(RAM ); ... RAM (xrw) : ORIGIN = 0x20000000, LENG...