hi Team,
Looks like in AM263x MCU+ SDK NoRTOS largely uses SVC stack for ISR in NoRTOS mode.
When a ISR is hit it starts in IRQ mode and therefore IRQ stack but then the IRQ handler switches to SVC mode therefore switching to SVC stack as well
However the example linker.cmd file in examples/drivers/boot/sbl_uart/am263x-cc/r5fss0-0_nortos/ti-arm-clang/linker.cmd is setup wrong.
We should use more stack space for SVC and less for IRQ.
You will see issues if multiple interrupts are enabled in the bootloader, where in there is stack overflow and corruption/crash.
The hello world nortos application setups the stack sizes correctly.
I could be wrong in my understanding, but please check and fix if needed, also check comments and documentation for the same.
e.g
examples/hello_world/am263x-cc/r5fss0-0_nortos/ti-arm-clang/linker.cmd
Below comment can be improved to make it more clear which stack is used by ISR in NoRTOS mode
thanks and regards
Kedar