hello everyone!
I would like to know how to use SJA1105 in terms of software。I consulted the relevant manuals,Its steps include::
1、Register the SPI and ETH callback functions、2、The device is initialized using SJA1105p_initswitch() function when it starts 3、Correctly configure and generate a C file via a script, put it in the src path
After completing the above three steps, can SJA1105 be used normally after powering on?I need to implement its communication in an AUTOSAR environment, and what else needs to be done.Are functions such as SJA1105P_sendSwitchFrame() an interface function used by developers to send and receive data?
Hello @KUN1996 ,
your flow seems to be correct. After power on, when MCU loads the switch configuration via SPI to the SJA1105, the SJA1105 starts working.
I do not have personal experience with SJA1105P_sendSwitchFrame() and SJA1105P_recvSwitchFrame().
You may also refer to example S32K344_Whiteboard_Example(LLD)_RTM_1.0.0\s32k3_wb_eth_lwip (download link has been shared here Solved: S32K344 Whiteboard Example Project - NXP Community). But this lwip example uses S32K3's GMAC driver.
Best regards,
Pavel