You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nuttx.apache.org by Roberto Bucher <ro...@supsi.ch> on 2022/05/06 14:34:18 UTC
Still problems with network on the ARM - STM32F7 - Nucleo-144 board
Hi
I have still problems with my nucleo-144 board (stm32F746ZG) and the
network.
I've tried both static and dynamic IP.
The eth0 doesn't receive an IP from the DHCP server (still 0.0.0.0).
When I give
nsh> ifup etho
I get the message
ifup eth0...OK
but the card is still down
nsh> ifconfig
eth0 Link encap:Ethernet HWaddr 5e:11:f1:23:d9:ce at DOWN
inet addr:0.0.0.0 DRaddr:192.168.178.1 Mask:255.255.255.0
when I launch:
nsh> renew eth0
I get
ERROR: dhcpc_request() failed
What is wrong in my configuration? (attached
Re: Still problems with network on the ARM - STM32F7 - Nucleo-144 board
Posted by Alan Carvalho de Assis <ac...@gmail.com>.
Hi Roberto,
I did a test with stm32f746g-disco using the default netnsh board
profile and it got IP:
$ ./tools/configure.sh stm32f746g-disco:netnsh
$ make
Connect a mini-usb cable to CN14 USB-STLINK
$ sudo openocd -f interface/stlink-v2.cfg -f target/stm32f7x.cfg -c
init -c "reset halt" -c "flash write_image erase nuttx.bin 0x08000000"
$ minicom -s
Change /dev/ttyUSB0 to /dev/ttyACM0
NuttShell (NSH) NuttX-10.3.0-RC2
nsh> ifconfig
eth0 Link encap:Ethernet HWaddr 00:e0:de:ad:be:ef at UP
inet addr:10.42.0.68 DRaddr:10.42.0.1 Mask:255.255.255.0
nsh> ps
PID GROUP PRI POLICY TYPE NPX STATE EVENT SIGMASK STACK COMMAND
0 0 0 FIFO Kthread N-- Ready 00000000 001000 <noname>
1 1 224 RR Kthread --- Waiting Semaphore 00000000
002016 <noname> 0x200103f4
3 3 100 RR Task --- Running 00000000 002024 <noname>
nsh>
Maybe you can compare it with your board config to see what is missing.
BR,
Alan
On 5/6/22, Roberto Bucher <ro...@supsi.ch> wrote:
> Hi
>
> I have still problems with my nucleo-144 board (stm32F746ZG) and the
> network.
>
> I've tried both static and dynamic IP.
>
> The eth0 doesn't receive an IP from the DHCP server (still 0.0.0.0).
>
> When I give
>
> nsh> ifup etho
>
> I get the message
>
> ifup eth0...OK
>
> but the card is still down
>
> nsh> ifconfig
>
> eth0 Link encap:Ethernet HWaddr 5e:11:f1:23:d9:ce at DOWN
> inet addr:0.0.0.0 DRaddr:192.168.178.1 Mask:255.255.255.0
>
> when I launch:
>
> nsh> renew eth0
>
> I get
>
> ERROR: dhcpc_request() failed
>
> What is wrong in my configuration? (attached