You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "vladsomai (via GitHub)" <gi...@apache.org> on 2024/09/25 18:36:36 UTC
[I] [HELP] STM32H7 hardfault in lpwork [nuttx]
vladsomai opened a new issue, #13614:
URL: https://github.com/apache/nuttx/issues/13614
### Description
Hello everyone,
We are using a STM32H7 based board and recently updated our NuttX version from 9.1.0 to the 12.6.0-RC1 tag.
We are using the TCP/IP **unbuffered** networking to send data from the STM32H7 MCU to our main controller. When there is alot of traffic between the two, we notice some big delays in replies and after a while the app crashes, on NuttX 9.1.0 we did not have this issue.
When we switch the NuttX 12.6.0 networking to be buffered (CONFIG_NET_TCP_WRITE_BUFFERS), the network behaves better as there are not so many frequent delays in the replies and the app does not crash.
What could be the cause of a hardfault in the lpwork when using unbuffered networking?
The Network Driver buffer configuration is set as follows: CONFIG_NET_RECV_BUFSIZE = 32768 (32kb)
The stack dump on hard fault looks like this when using unbuffered networking (used arm-none-eabi-addr2line to convert all the flash addresses):
0x0809b2bf
tcp_recvhandler
/Nuttx/net/tcp/tcp_recvfrom.c:500
0x080263a7
devif_conn_event
/Nuttx/net/devif/devif_callback.c:521
0x08025c87
tcp_callback
/Nuttx/net/tcp/tcp_callback.c:308
0x08027319
tcp_input
/Nuttx/net/tcp/tcp_input.c:1547
0x08026405
ipv4_in
/Nuttx/net/devif/ipv4_input.c:149
0x080264bf
ipv4_in
/Nuttx/net/devif/ipv4_input.c:153
0x080269cf
netdev_input
/Nuttx/net/netdev/netdev_input.c:91
0x08021dbd
stm32_receive
/Nuttx/arch/arm/src/chip/stm32_ethernet.c:1918
0x08022fe5
up_irq_save
/Nuttx/include/arch/armv7-m/irq.h:416
0x08023a71
nxtask_start
/Nuttx/sched/task/task_start.c:122
### Verification
- [X] I have verified before submitting the report.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [HELP] STM32H7 hardfault in lpwork [nuttx]
Posted by "acassis (via GitHub)" <gi...@apache.org>.
acassis commented on issue #13614:
URL: https://github.com/apache/nuttx/issues/13614#issuecomment-2377602615
Hi @vladsomai is it possible to reproduce this issue in some common STM32 board with Ethernet? like nucle-stm32f746, etc? Is it possible to reproduce it using some existing net test application existing on nuttx-apps?
If you can reproduce it, please submit a board config that we could use for testing.
If you only can reproduce it on your board, I suggest you doing this test discover when the issue was introduced: grab some release version between 9.1 and 12.6 and copy your boards/arm/stm32h7/boardname to there (and include the 3 entries at boards/Kconfig).
@wengzhe do you have some idea about this issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org