Skip to content

nrf52840pdk split image doesnt successfully write second image #1192

@jacobrosenthal

Description

@jacobrosenthal

Has anyone run a split on an nrf52840pdk lately? Neither of my boards are showing the second image.... Current upstream newt tool, newtmgr, and core

Bog standard target

Jacobs-MacBook-Air:chippd3 jacobrosenthal$ newt target show split-default
targets/split-default
   app=@apache-mynewt-core/apps/blesplit
   bsp=@apache-mynewt-core/hw/bsp/nrf52840pdk
   build_profile=optimized
   loader=@apache-mynewt-core/apps/bleprph

It seems like the restore command isnt working??? Here is the working nrf52dk showing the correct magic first byte

(gdb) x 0x8000
0x8000:    0x96f3b83c
(gdb) x 0x42000
0x42000:    0x96f3b83c
(gdb)

And both my nrf52840pdk and @mlaz's show no errors, but the second magic (and indeed the entire image) is missing on device

(gdb) x 0x82000
0x82000:    0xffffffff
(gdb) x 0xc000
0xc000:    0x96f3b83c (edited)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions