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

Firmware updater not compiling #25

Closed
cobraPA opened this issue Jul 24, 2024 · 4 comments
Closed

Firmware updater not compiling #25

cobraPA opened this issue Jul 24, 2024 · 4 comments
Assignees
Labels
UAY Unassigned yet Wio_Tracker_1110_Examples Label for Wio_Tracker_1110_Examples

Comments

@cobraPA
Copy link

cobraPA commented Jul 24, 2024

It seems the firmware updater does not compile in platformio,
there is a missing function for the dfu_bootload setup:

static int usrcmd_enter_bootloader_mode(int argc, char **argv)
{
// not found
wm1110Hw.enterBootloaderMode();

return 0;

}

@cobraPA
Copy link
Author

cobraPA commented Jul 24, 2024

Compiling .pio\build\release\src\main.cpp.o
src\main.cpp: In function 'int usrcmd_enter_bootloader_mode(int, char**)':
src\main.cpp:224:14: error: 'class Wm1110Hardware' has no member named 'enterBootloaderMode'
wm1110Hw.enterBootloaderMode();

@tve
Copy link

tve commented Sep 8, 2024

I believe it needs to call lr11xx_bootloader_reboot in the lr111x driver, now how to get there from here...

Edit: the following seems to be working:

static int usrcmd_enter_bootloader_mode(int argc, char **argv)
{
    // wm1110Hw.enterBootloaderMode();
    if (lr11xx_system_reboot(wm1110Hw.radio.ral.context, true) != LR11XX_STATUS_OK)
    {
        Serial.printf("ERROR: Failed to enter bootloader." DLM);
        return -1;
    }

    return 0;
}

I believe the new firmware needs to come from here: https://github.com/Lora-net/radio_firmware_images/tree/master/lr1110/transceiver but I don't have time right now to try it out (so close...)

Update: looks like the update process succeeded:

> info
Chip is in firmware mode.
Chip:
 Hardware version = 0x22
 Type             = 0x01
 Firmware version = 0x0307
> bootloader
> info
Chip is in bootloader mode.
Chip:
 Hardware version   = 0x22
 Type               = 0xDF
 Bootloader version = 0x6500
> update
Start flash erase...
Flash erase done!
Start flashing firmware...
Flashing done!
Rebooting...
Reboot done!
> info
Chip is in firmware mode.
Chip:
 Hardware version = 0x22
 Type             = 0x01
 Firmware version = 0x0401
> 

@wzy-github123
Copy link

commit b939635 fixed it.

@MatthewJeffson MatthewJeffson added UAY Unassigned yet Wio_Tracker_1110_Examples Label for Wio_Tracker_1110_Examples labels Oct 9, 2024
@KillingJacky
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
UAY Unassigned yet Wio_Tracker_1110_Examples Label for Wio_Tracker_1110_Examples
Projects
Status: Done
Development

No branches or pull requests

6 participants