-
Notifications
You must be signed in to change notification settings - Fork 75
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
Update to fix flash and other related bugs #11
Conversation
reserve flash storage section
previous linker declaration didnt work with current version of platformIO
!defined(READ_SENSOR) was missing cause resource conflict
software serial must be initalized prior to flash init for debug message
update the flash storage location as per the linker script
see #10 |
looks good to me without building and testing. |
|
yep, see if you can remove it from the flash image. The flash should initialise if the magic is not valid, but I moved from an area inside the flash image to one outside to try to keep existing flash values through firmware updates. We can scrap 'flasharea.c' completely - I don't see it as relevant any more? |
You could change #if def Flash_storage to soemthinglike flash_init and keep the file for formatting the flash. Don't know if anyone sees value in this. |
you can always init the flash via serial.... (if it does not detect that it needs to init because magic is wrong)? |
yes i just confimred it works. remove flasharea.c and remove the keep before the .mysections. in the future you can use someting like flasharea.c to define some initial good settings |
great - add the commit, and i'll see if i can test tonight. |
haha... built 'env hoverboard'; did not notice the firmware.bin was 256k, ran my flash.sh, and it failed. |
Make sure you change the ld file too. I fried my St link so we both had some setbacks. |
just flashed back to @p-h-a-i-l 's 'size' stuff and it's back. will try build again. |
are you building the hoverboard env in pio? |
ahh... did you not push the remove of keep? |
Miscommunication I thought you would add that commit. In fact i dont seem to know how to edit pull requests |
oh i think it worked, if not the code is commited to my fork |
ok, can confirm hoverboard operation with this combined with @p-h-a-i-l 's latest. |
As per issue 10 comments