-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate bootloader with OTAS program code #472
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can add something like this to the client project.mk to build the .bin file without the bootloader section.
# Create binary output file without the bootloader
%.bin.noboot: %.elf
@if [ 'x${VERBOSE}' = x ]; \
then \
echo "Creating ${@}"; \
echo "Excluding bootloader section"; \
else \
echo ${OBJCOPY} -O binary --remove-section .bootloader $(call fixpath,${<}) $(call fixpath,${@}); \
fi
@$(OBJCOPY) -O binary --remove-section .bootloader $< $(call fixpath,${@})
@@ -31,6 +31,8 @@ SRCS += stack_dats.c | |||
SRCS += dats_main.c | |||
SRCS += main.c | |||
|
|||
PROJ_CFLAGS += -Wl,--section-start=.text=0x10004000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need this line? I think the linker fill will put the text section at this address.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doesn't look like we do, I've removed it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we accidentally added some documentation pictures and deleted one of the peripheral drivers.
.bootloader : | ||
{ | ||
KEEP(*bootloader.o) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need the > BOOT here.
Added a bug fix that this helped discover. |
Update OTAS makefiles to automatically compile and flash the bootloader application