Hi, Christie,
I think the "lwip_httpsrv" project uses RMII mode instead of MII mode, for confirmation, you can check the bit 8 of the ENET_RCR in debugger, if it is 1, RMII mode is selected,if it is 0, MII mode is selected.
I have checked the code, it uses RMII mode in default.
Pls check the code:
void ENET_GetDefaultConfig(enet_config_t *config)
{
/* Checks input parameter. */
assert(config);
/* Initializes the MAC configure structure to zero. */
memset(config, 0, sizeof(enet_config_t));
/* Sets MII mode, full duplex, 100Mbps for MAC and PHY data interface. */
config->miiMode = kENET_RmiiMode;
config->miiSpeed = kENET_MiiSpeed100M;
config->miiDuplex = kENET_MiiFullDuplex;
/* Sets the maximum receive frame length. */
config->rxMaxFrameLen = ENET_FRAME_MAX_FRAMELEN;
}
Regarding your issue that you fail to work for the httpsrv demo, I suspect that you do not configure the jumper both for the TWR-KV58 and TWR-SER boards correctly. Pls set up the jumper based on readme.txt.
Regarding the CAN module, firstly, the baud rate should match by setting the RJW/PSEG1/PSEG2/PROPSEG bits in CANx_CTRL1 register, but the sampling point should be at the same time for transmitter/receiver. Pls refer to section 54.5.8.4 Protocol timing in RM of KV5x.
Hope it can help you
BR
Xiangjun Rong