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

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

Open
peran1337 opened this issue Sep 15, 2021 · 1 comment
Open

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

peran1337 opened this issue Sep 15, 2021 · 1 comment

Comments

@peran1337
Copy link

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

@peran1337
Copy link
Author

mcumgr_debug_log is not from the complete transfer. However, it does include both before and after the critical section. When piping the output to file, I lost formatting for some reason (everything was enclosed in " " so newlines were no longer recognized), making it totally unreadable. We had a short meeting in the local LUUG discussing it :D So this is just copy/paste from terminal window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant