RT1050 LWIP FSL-ENET ECR寄存器

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RT1050 LWIP FSL-ENET ECR寄存器

1,841 Views
jenli
Contributor I

我所实验例程为UDP实验例程(RT1050+LWIP2.1),在移植自己的操作系统后,(我关闭了LWIP的LWIP_TCPIP_CORE_LOCKING),上电运行,发送小数据0-400字节没有问题,发送大数据例如900字节一包,就会在            base->RDAR = ENET_RDAR_RDAR_MASK; 进入HardFault,通过调试,我发现,在

    /* Enables Ethernet module after all configuration except the buffer descriptor active. */
    ecr |= ENET_ECR_ETHEREN_MASK | ENET_ECR_DBSWP_MASK;
    base->ECR = ecr;

在ECR寄存器赋值后,设断点,再放开全速运行,就没有这个问题,正常收发,如果在ECR寄存器赋值之前设置断点,再放开全速运行,就还是这个问题。

Labels (1)
Tags (2)
0 Kudos
Reply
3 Replies

1,601 Views
jimmychan
NXP TechSupport
NXP TechSupport

could you tell me which SDK are you using?

0 Kudos
Reply

1,601 Views
jenli
Contributor I

base on sdk 2.4.1

0 Kudos
Reply

1,601 Views
jenli
Contributor I

I use IMXRT1052,the SDK is i.MX RT_周立功单片机  

0 Kudos
Reply