Skip to content

Crash with ESWIFI ( b_l4s5i_iot01a board) when enabling DHCPV4 #76897

@davidalo

Description

@davidalo

Describe the bug

Using b_l4s5i_iot01a I have a crash if I enable DHCPV4. I have been reading some threads about socket offloading which may be related but I couldn't find a similar Bug Report for this.

Using Zephyr 3.7.0.

If I run samples/net/wifi/ there is no problem, but as soon as I enable DHCPV4 client using CONFIG_NET_CONFIG_SETTINGS=y it crashes:

*** Booting Zephyr OS build v3.7.0 ***
[00:00:00.534,000] <inf> net_config: Initializing network
[00:00:00.534,000] <inf> net_config: Running dhcpv4 client...
uart:~$ 
[00:00:07.534,000] <err> os: ***** USAGE FAULT *****
[00:00:07.534,000] <err> os:   Illegal use of the EPSR
[00:00:07.534,000] <err> os: r0/a1:  0x20000630  r1/a2:  0x200081b0  r2/a3:  0x200035b4
[00:00:07.534,000] <err> os: r3/a4:  0x00000000 r12/ip:  0x00000010 r14/lr:  0x0800ce01
[00:00:07.534,000] <err> os:  xpsr:  0x40000000
[00:00:07.534,000] <err> os: Faulting instruction address (r15/pc): 0x00000000
[00:00:07.534,000] <err> os: >>> ZEPHYR FATAL ERROR 35: Unknown error on CPU 0
[00:00:07.534,000] <err> os: Current thread: 0x20002538 (sysworkq)
[00:00:07.614,000] <err> os: Halting system

After some debugging it seems that a null reference is being used in DHCP code.

To Reproduce

Expected behavior

Impact

Logs and console output

Environment (please complete the following information):

  • OS: (e.g. Linux, MacOS, Windows)
  • Toolchain (e.g Zephyr SDK, ...)
  • Commit SHA or Version used

Additional context

Metadata

Metadata

Labels

area: Wi-FiWi-FibugThe issue is a bug, or the PR is fixing a bugpriority: lowLow impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions