Skip to content

zephyr: Upload halts, keeps spinning in cbor decoding (nrf5340) #140

@peran1337

Description

@peran1337

I have an issue I have traced to the file cborattr/src/cborattr.c. I updated my nrf5340-based application from NCS 1.5.1 to 1.6.1 and then my FOTA upgrades stopped working. I can upload the netcpu update without issue. With the appcpu a good chunk of the file is uploaded, but then the system starts spinning. For each iteration it is executing cbor_value_advance() (line 309). Before that call I examine the struct CborValue cur_value and I find that the value remaining never decreases, the type is CborSimpleType, offset increases by 1 per iteration, and length (found using call extract_number) grows by one per iteration. (Quite different from how it is during normal operation.)
I tried reverting my branch to before the move to 1.6.1 and build that. It also failed while uploading (to a 1.6.1 system).
Attached are debug output from mcumgr, runtime output from appcpu, and a diff showing the modifications I made to obtaim this log.
diff.txt
mcumgr_debug_log.txt
runtime_log.txt

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