erase netcore update image

I’m using SMP over UART to send the erase command ({"slot": 1}), and it only erases the application core image (image 0). I also have a network core image (image 1) present in slot 1, but it is not erased by this command.


How can I erase the netcore image too?

Do I need to include the "image": 1 key in the CBOR payload? Or is there another way to target both images?



Parents Reply
  • thanks for the response,

    I tried that:

    zcbor_new_encode_state(zse, ARRAY_SIZE(zse), smp_cmd.payload,
    sizeof(smp_cmd.payload), 0);

    /* Stop encoding on the error. */
    zse->constant_state->stop_on_error = true;

    zcbor_map_start_encode(zse, 3);
    zcbor_tstr_put_lit(zse, "slot");
    zcbor_uint32_put(zse, slot);
    zcbor_tstr_put_lit(zse, "image");
    zcbor_uint32_put(zse, 1);
    zcbor_map_end_encode(zse, 3);

    if (!zcbor_check_error(zse)) {
    LOG_ERR("Failed to encode SMP erase packet, err: %d", zcbor_pop_error(zse));
    return -EFAULT;
    }


    but it doesnt work.

Children
No Data
Related