system
(system)
November 10, 2018, 5:29pm
1
mastupristi wrote on Saturday, November 10, 2018 :
I would like to know if you are aware of a FreeRTOS+TCP port on the i.MX RT 1050.
In your opinion, can the ETH and PHY drivers that I find in the lwip examples in the SDK, provided by NXP, be used as they are for FreeRTOS+TCP or do they need to be adapted? And how hard could this adaptation be?
best regards
Max
htibosch
(Hein Tibosch)
November 10, 2018, 6:34pm
2
heinbali01 wrote on Saturday, November 10, 2018 :
I do not know yet of a FreeRTOS+TCP port for “i.MX RT 1050”.
I did write a generic driver to configure Ethernet PHY’s. It recognises these ID’s :
/* ID's of supported PHY's : */
#define PHY_ID_LAN8742A 0x0007c130
#define PHY_ID_LAN8720 0x0007c0f0
#define PHY_ID_KSZ8041 0x000010A1
#define PHY_ID_KSZ8051 0x000010A1
#define PHY_ID_KSZ8081 0x000010A1
#define PHY_ID_KSZ8863 0x00221430
#define PHY_ID_KSZ8081MNXIA 0x00221560
#define PHY_ID_DP83848I 0x20005C90
You can find phyHandler.c here
That driver needs two functions:
typedef BaseType_t xPHY_Read( BaseType_t xAddress, BaseType_t xRegister, uint32_t *pulValue );
typedef BaseType_t xPHY_Write( BaseType_t xAddress, BaseType_t xRegister, uint32_t ulValue );
What you need to find out is how to program the transmission and reception of Ethernet packets on a “i.MX RT 1050”.
When you have specific questions about developing a +TCP Network driver, you can ask them here.