-
Notifications
You must be signed in to change notification settings - Fork 94
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
read_short() wrong index for terminating 0 #19
Comments
Thanks for the find. There is actually at least one more of those in there I recently found on a derivative project but haven't pushed to master yet. Sorry about that. I'll push them soon. |
you're welcome! no worries... |
USB not enumerating is almost always because the oscillator is not correct. Are you using an internal oscillator (not sure if this device supports it for USB)? Some of those PIC24 parts have oscillators that will run at 4 or 8 MHz, and it's not entirely clear in the main oscillator diagram which is used by default and that it can be switched. |
actually it turned out to be a linker script problem! |
https://github.com/signal11/m-stack/blob/master/apps/bootloader/software/hex.c#L97
should be changed to chars[4] = '\0';
the indexes 0 1 2 3 will contain the relevant data
The text was updated successfully, but these errors were encountered: