Skip to content
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

Merged
merged 18 commits into from
Mar 10, 2023

Conversation

AbbyWolf-ADI
Copy link
Contributor

Update OTAS makefiles to automatically compile and flash the bootloader application

Copy link
Contributor

@kevin-gillespie kevin-gillespie left a 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
Copy link
Contributor

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.

Copy link
Contributor Author

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

Copy link
Contributor

@kevin-gillespie kevin-gillespie left a 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)
}
Copy link
Contributor

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.

@EdwinFairchild EdwinFairchild self-requested a review March 10, 2023 20:14
@EdwinFairchild
Copy link
Contributor

Added a bug fix that this helped discover.

@AbbyWolf-ADI AbbyWolf-ADI merged commit ccb7893 into main Mar 10, 2023
@AbbyWolf-ADI AbbyWolf-ADI deleted the otas-bootloader-auto-load branch March 10, 2023 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants