prevent immediate pause if sw1 is pressed for a long time
separated stacks for thread and handler mode
more portable way of suppressing a false warning
more robust linker script