cederom commented on PR #18815:
URL: https://github.com/apache/nuttx/pull/18815#issuecomment-4337562162
Builds fine for me, but I have no board to test, tried on NUCLEO-H755ZI but
I had problem flashing :-P
```
% uname -a
FreeBSD hexagon 14.4-RELEASE-p2 FreeBSD 14.4-RELEASE-p2 GENERIC amd64
% git checkout dlizewski/feature/dl.usbecm
HEAD is now at 38866d8497e drivers/usbhost/usbhost_cdcecm.c: Added support
for Host CDC-ECM
hexagon% git log -1
commit 38866d8497e8c8c26e8f0e48b17f2954afe623dc (HEAD,
dlizewski/feature/dl.usbecm)
Author: daniellizewski
Date: Thu Apr 9 13:49:50 2026 -0400
drivers/usbhost/usbhost_cdcecm.c: Added support for Host CDC-ECM
Added support for USB host to use an USB CDC-ECM device.
This class is used for usb-ethernet adapters as well as many modems.
Signed-off-by: daniellizewski <[email protected]>
% ./tools/configure.sh -B nucleo-h563zi:nshusbnet
Copy files
Select CONFIG_HOST_BSD=y
Refreshing...
(..)
#
# configuration written to .config
#
hexagon% gmake -j
Create version.h
LN: platform/board to /XXX/nuttx/pr/nuttx-apps.git/platform/dummy
Register: telnetd
Register: ping
Register: dd
Register: nsh
Register: sh
LD: nuttx
Memory region Used Size Region Size %age Used
flash: 330308 B 2 MB 15.75%
sram: 22656 B 256 KB 8.64%
CP: nuttx.bin
```
```
% openocd -f interface/stlink.cfg -f target/stm32h7x.cfg -c 'program
nuttx.bin 0x08000000; reset run; exit'
Open On-Chip Debugger 0.12.0
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To
override use 'transport select <transport>'.
Info : The selected transport took over low-level target control. The
results might differ compared to plain JTAG/SWD
Info : clock speed 1800 kHz
Info : STLINK V3J15M6 (API v3) VID:PID 0483:3754
Info : Target voltage: 3.280690
Info : [stm32h7x.cpu0] Cortex-M7 r1p1 processor detected
Info : [stm32h7x.cpu0] target has 8 breakpoints, 4 watchpoints
Info : starting gdb server for stm32h7x.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
[stm32h7x.cpu0] halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x08001fbc msp: 0x20006080
Info : Unable to match requested speed 4000 kHz, using 3300 kHz
Info : Unable to match requested speed 4000 kHz, using 3300 kHz
** Programming Started **
Info : Device: STM32H74x/75x
Info : flash size probed value 2048k
Info : STM32H7 flash has dual banks
Info : Bank (0) size is 1024 kb, base address is 0x08000000
Info : Padding image section 0 at 0x08050a44 with 28 bytes (bank write end
alignment)
Warn : Adding extra erase range, 0x08050a60 .. 0x0805ffff
Error: error writing to flash at address 0x08000000 at offset 0x00000000
embedded:startup.tcl:1516: Error: ** Programming Failed **
in procedure 'program'
in procedure 'program_error' called at file "embedded:startup.tcl", line 1581
at file "embedded:startup.tcl", line 1516
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]