Fix Vector table issue for flash target (Vector table was in flash, so when we'd get an interrupt while writing to flash, we'd crash)

Add stack guard word and check.