Thanks, I see. So whatever the APP reset handler does before calling APP __program_start would make it fail. It would be interesting to know what is going on there. Maybe something important (but something that can only be done once) that we miss in the gcc build. Can you please attach an elf file produced by IAR, so that I can try disassemble it?