Skip to content

FRDM-K64F boot hang w/ mcuboot + lwm2m client #8005

Closed
@mike-scott

Description

@mike-scott

Using latest master, I can produce a boot hang on K64F when using mcuboot + the lwm2m client chain loaded from slot 0. The interesting bit is that IPv6 needs to be disabled.

Bisecting led to this commit:
1856e22#diff-23bba5938c8ac686f219f01f58478b9aR152

And if I change line 152 from:

update_cache(0);

to

update_cache(1);

It allows the boot to finish (not saying this is a fix, just stating that this makes the boot hang go away).

Even more curious, if I flash the lwm2m client directly and avoid mcuboot, this issue doesn't happen.

The thread that's hanging is started via k_work_q_start() here:
https://github.com/zephyrproject-rtos/zephyr/blob/master/subsys/net/ip/net_tc.c#L343

TBH, I don't understand the scheduler changes enough to really debug this further.

Metadata

Metadata

Assignees

Labels

area: KernelbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions