Skip to content

Bootloader fixes and support for more NOR flash chips#190

Closed
alex-luxonis wants to merge 21 commits intodevelopfrom
bootloader_updates
Closed

Bootloader fixes and support for more NOR flash chips#190
alex-luxonis wants to merge 21 commits intodevelopfrom
bootloader_updates

Conversation

@alex-luxonis
Copy link
Contributor

@alex-luxonis alex-luxonis commented Jul 28, 2021

  • Fix issues with upgrading bootloader/application with a non-empty flash (due to unaligned erase).
    Add back bootloader flash example (was removed previously due to issues).

  • Add support for more NOR flash chip types used on the 1099/2099 SoMs.

Related PR: luxonis/depthai-bootloader-shared#3

EDIT:

  • FW compression capabilities (zlib)
  • Bootloader Config (static IP, DNS, ... , timeouts,...)
  • Refactored DeviceBase for interacting with bootloader
  • Added versioning to BL requests
  • One example and pne test for BL Config

@alex-luxonis alex-luxonis changed the title Bootloader updates Bootloader fixes and support for more NOR flash chips Jul 28, 2021
@Luxonis-Brandon Luxonis-Brandon added the Gen2 Feature for or issue with Gen2 label Jul 28, 2021
@alex-luxonis
Copy link
Contributor Author

TODO: when flashing the bootloader/application, if a bootloader already exists, don't use it to flash, but load first the new bootloader over USB. We may also need to enforce flashing the new bootloader.

@themarpe
Copy link
Collaborator

Ready for initial re-review
@alex-luxonis @szabi-luxonis

bool usage = false, read = true, clear = false;
std::string path = "";
if(argc >= 2) {
std::string op = argv[1];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can add argparser, looks like this is a copy of the python implementation and header only:
https://github.com/jamolnng/argparse

Copy link
Collaborator

@themarpe themarpe Aug 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will leave this as a side task to refactor one day. Good suggestion to match Python, thanks 👍

@themarpe
Copy link
Collaborator

Merged to #202

@themarpe themarpe closed this Aug 26, 2021
@SzabolcsGergely SzabolcsGergely deleted the bootloader_updates branch October 22, 2021 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Gen2 Feature for or issue with Gen2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants