Good morning,
I'm using MCF52255 controller with MQX3.8.1 and CW10.
I want to reset the FEC at this time and I implemented a procedure in the attachment (reset_fec.c). In the function I always get from the function ENET_shutdown the error "ENETERR_DEVICE_IN_USE".
How do I stop the device? Where is my error?
Which is the procedure and the functions that I need to use for resetting the FEC (Fast Ethernet Controller)?
Thank you
Best Regards
Mirko
Original Attachment has been moved to: reset_fec.c.zip
Solved! Go to Solution.
Hi Mirko,
before ENET_shutdown() we need to call ipcfg_unbind() and RTCS_if_remove(). Unfortunately this doesn't unallocate all memory, some semaphore destroys are missing that have been created.
A new function ipcfg_release_device() will be introduced in MQX 4.0.1 which can shutdown the enet device and free memory resources properly. MQX 4.0.1 should be out very soon.
Hi Mirko,
before ENET_shutdown() we need to call ipcfg_unbind() and RTCS_if_remove(). Unfortunately this doesn't unallocate all memory, some semaphore destroys are missing that have been created.
A new function ipcfg_release_device() will be introduced in MQX 4.0.1 which can shutdown the enet device and free memory resources properly. MQX 4.0.1 should be out very soon.
Hi Martin,
thank you