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

Fix regression bug in bootloader #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Neofoxx
Copy link
Contributor

@Neofoxx Neofoxx commented Apr 2, 2020

Fixes bug introduced in commit 7d512c6.
Error was that a struct was expanded, but bootloader's struct wasn't updated, making the initial variables be at wrong offsets/places.

(Error was that a struct was expanded, but bootloder's struct wasn't updated, making the initial variables be at wrong offsets/places)
@rhn
Copy link
Contributor

rhn commented Apr 3, 2020

How to test this? I'd like to see how I can make stuff fail, then apply this patch and then see it work.

@Neofoxx
Copy link
Contributor Author

Neofoxx commented Apr 3, 2020

Grab the current master of pic32prog & compile.
Try flashing something via the bootloader - you should get a floating point exception (a division by 0 happens, because blocksz gets the wrong value on declaration).

Grab my fix_bootloader_regression branch & compile.
Try flashing something via the bootloader - it should now work as expected.

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.

2 participants