Open DaShen96 opened 1 year ago
I have observed the same issue
I have observed the same issue
Did you solve this issue?
I found the reason for the ethernet interface disappearing.
The issue is that the ethernet driver does not get initialised in Nuttx when CANFD is enabled.
See below requirement for multiple interfaces.
arch/arm/src/stm32h7/stm32_ethernet.c
.
/****************************************************************************
* Function: arm_netinitialize
*
* Description:
* This is the "standard" network initialization logic called from the
* low-level initialization logic in arm_initialize.c. If STM32H7_NETHERNET
* greater than one, then board specific logic will have to supply a
* version of arm_netinitialize() that calls stm32_ethinitialize() with
* the appropriate interface number.
*
* Parameters:
* None.
*
* Returned Value:
* None.
*
* Assumptions:
*
****************************************************************************/
I found the reason for the ethernet interface disappearing.
The issue is that the ethernet driver does not get initialised in Nuttx when CANFD is enabled.
See below requirement for multiple interfaces.
arch/arm/src/stm32h7/stm32_ethernet.c
./**************************************************************************** * Function: arm_netinitialize * * Description: * This is the "standard" network initialization logic called from the * low-level initialization logic in arm_initialize.c. If STM32H7_NETHERNET * greater than one, then board specific logic will have to supply a * version of arm_netinitialize() that calls stm32_ethinitialize() with * the appropriate interface number. * * Parameters: * None. * * Returned Value: * None. * * Assumptions: * ****************************************************************************/
Thank for your reply! I found that too. I have modified the NuttX driver, and now it works properly.
Describe the bug
There’s a problem bothering me. Why is the Ethernet device missing after configuring the CAN port?
After disabling the CAN port, the Ethernet port can work normally.
To Reproduce
Expected behavior
I need to use both CAN and Ethernet at the same time.
Screenshot / Media
No response
Flight Log
Software Version
Flight controller
pixhawk 6x
Vehicle type
None
How are the different components wired up (including port information)
No response
Additional context
No response