Skip to content

Fix RAM byte in Nicla Vision BL descriptor #456

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

Merged
merged 2 commits into from
Apr 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bootloaders/NICLA_VISION/bootloader.bin
Binary file not shown.
Binary file modified bootloaders/NICLA_VISION/bootloader.elf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ void setup() {
Serial.println("USB Speed: " + getUSBSpeed(bootloader_data[3]));
Serial.println("Has Ethernet: " + String(bootloader_data[4] == 1 ? "Yes" : "No"));
Serial.println("Has WiFi module: " + String(bootloader_data[5] == 1 ? "Yes" : "No"));
Serial.println("RAM size: " + String(bootloader_data[6]) + " MB");
Serial.println("RAM size: " + getRAMSize(bootloader_data[6]));
Serial.println("QSPI size: " + String(bootloader_data[7]) + " MB");
Serial.println("Has Video output: " + String(bootloader_data[8] == 1 ? "Yes" : "No"));
Serial.println("Has Crypto chip: " + String(bootloader_data[9] == 1 ? "Yes" : "No"));
Expand Down Expand Up @@ -49,6 +49,13 @@ String getClockSource(uint8_t flag) {
}
}

String getRAMSize(uint8_t flag) {
if (flag == 0) {
return "N/A";
}
return (String(flag) + "MB");
}

void loop() {
delay(1000);
}
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ void setup() {
Serial.println("USB Speed: " + getUSBSpeed(bootloader_data[3]));
Serial.println("Has Ethernet: " + String(bootloader_data[4] == 1 ? "Yes" : "No"));
Serial.println("Has WiFi module: " + String(bootloader_data[5] == 1 ? "Yes" : "No"));
Serial.println("RAM size: " + String(bootloader_data[6]) + " MB");
Serial.println("RAM size: " + getRAMSize(bootloader_data[6]));
Serial.println("QSPI size: " + String(bootloader_data[7]) + " MB");
Serial.println("Has Video output: " + String(bootloader_data[8] == 1 ? "Yes" : "No"));
Serial.println("Has Crypto chip: " + String(bootloader_data[9] == 1 ? "Yes" : "No"));
Expand Down Expand Up @@ -172,6 +172,13 @@ String getClockSource(uint8_t flag) {
}
}

String getRAMSize(uint8_t flag) {
if (flag == 0) {
return "N/A";
}
return (String(flag) + "MB");
}

void printProgress(uint32_t offset, uint32_t size, uint32_t threshold, bool reset) {
static int percent_done = 0;
if (reset == true) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10582,7 +10582,7 @@ const unsigned char bootloader_mbed_bin[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0xa0, 0x17, 0x08, 0x01, 0x00, 0x01, 0x08, 0x10,
0x00, 0x00, 0x00, 0x00, 0xa0, 0x17, 0x08, 0x01, 0x00, 0x01, 0x00, 0x10,
0x00, 0x01, 0x19, 0x00, 0xcc, 0x12, 0xfe, 0x7f, 0x01, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, 0x01, 0x0a, 0x00, 0x08, 0xd5, 0x09, 0x00, 0x08,
0xb5, 0x0b, 0x00, 0x08, 0x89, 0x0a, 0x00, 0x08, 0xa1, 0x09, 0x00, 0x08,
Expand Down