stbenn opened a new issue, #14968:
URL: https://github.com/apache/nuttx/issues/14968

   ### Description
   
   I am struggling to get USB Device driver working on stm32h5. The goal is to 
get NSH over USB, similar to example in the tutorial video 010 on the NuttX 
YouTube channel (https://www.youtube.com/watch?v=rgZJPZh_po8)
   
   I would love help figuring out if this is a configuration issue or a driver 
issue. 
   
   ### H5 USB Support Additions (WIP)
   The USB peripheral IP for the H5 is almost identical to the G0. So I have 
ported the usbdev files into the STM32H5 directory and added necessary 
supporting files... I think... This is the commit if it helps: 
e222afd65528526a15c72c7625b4373b2afe3250
   
   ### What I've Tried
   I am trying to follow something similar to the video as well as 
`maple:usbnsh` config. Here is the defconfig 
[defconfig.txt](https://github.com/user-attachments/files/17940358/defconfig.txt)
   
   I have narrowed it down to something failing when opening `/dev/console` 
during initialization: 
   - In `group_setupidlefiles.c` line 77 (in function `group_setupidlefiles`), 
`fd = nx_open("/dev/console", O_RDWR);` returns `-2`
   - The lower level error occurs in `nx_vopen(...)` where the call to 
`file_vopen(...)` has a return code `-2`. 
   
   Could this be a configuration issue, or is it more likely something wrong 
with the driver?
   
   
   ### 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to