Commit b06b901d authored by Federico Vaga's avatar Federico Vaga

bootloader: remove gcc optimization

The GCC optimization *brake* the bootloader code. It was happening
that on BOOT_jump() function call the ARM registers were not properly
set. The result was that the PC and SP register were pointing at the wrong
addresses.
Signed-off-by: 's avatarFederico Vaga <federico.vaga@gmail.com>
parent 44048d1e
......@@ -213,10 +213,10 @@ debug: debug_bootloader
release: release_bootloader
debug_bootloader: CFLAGS += -DDEBUG -Os -g3 -ggdb
debug_bootloader: CFLAGS += -DDEBUG -g3 -ggdb
debug_bootloader: $(EXE_DIR)/$(PROJECTNAME_MAIN)-rom.bin
release_bootloader: CFLAGS += -DNDEBUG -Os
release_bootloader: CFLAGS += -DNDEBUG
release_bootloader: $(EXE_DIR)/$(PROJECTNAME_MAIN)-rom.bin
# Create objects from C SRC files
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment