Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Feature: modem uart dfu #104

Merged
merged 3 commits into from
Feb 25, 2020
Merged

Feature: modem uart dfu #104

merged 3 commits into from
Feb 25, 2020

Conversation

bencefr
Copy link
Contributor

@bencefr bencefr commented Feb 25, 2020

This PR updates nrfjprog libraries to 10.6.0 and uses the new NRFJPROG_modemdfu_dfu_serial_init to create the new probe type for modem programming.

After this change with a Thingy:91 you can do this:

const api = require('pc-nrfjprog-js');

api.programMcuBootDFU(-1, 'nrfjprog/firmware/nrf9160_pca20035_firmware_upgrade_app_0.1.0.hex', 'COM-0', 115200, 12000, console.log, (err) => {
    if (err) {
        console.error(err);
        return;
    }
    api.programModemUartDFU(-1, 'mfw_nrf9160_1.1.1.zip', 'COM-1', 1000000, 12000, console.log, () => {
        console.log('done');
    });
});
...

Copy link
Contributor

@bihanssen bihanssen left a comment

Choose a reason for hiding this comment

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

LGTM:+1:

@bencefr bencefr merged commit afa6199 into master Feb 25, 2020
@bencefr bencefr deleted the feature/modem-uart-dfu branch February 25, 2020 13:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants