-
Notifications
You must be signed in to change notification settings - Fork 3k
Corrected STM+K64F eth driver flagging, memory allocation and thread init #6266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Checking DEVICE_EMAC is problematic - particularly for the Odin W2 where apps have been shutting this off to disable the Wi-fi interface. Make drivers check a locally-relevant flag instead, pending new thoughts on how to achieve application/test-relevant flagging for XXX:get_default_instance() being provided by a system. However that is achieved, drivers do require a flag set purely by the target - they mustn't be tripped up by an add-on module providing itself as the system's default EMAC.
If we go with this version, I believe we should be able to revert https://github.com/ARMmbed/mbed-os-cliapp/pull/388 - the part that disables Odin W2, anyway. An IPv6 enable got slipped into the same commit. |
/morph build |
Build : FAILUREBuild number : 1332 |
Just checking "does the chip have an EMAC" doesn't work - there are targets using those chips which do not have an Ethernet connector and don't provide the necessary surrounding infrastructure (eg DISCO_F429ZI, not providing the board emac config call, and HEXIWEAR not providing PHY info). Make the targets that actually do want EMAC define their own local Freescale_EMAC and STM_EMAC labels, and move the drivers into the corresponding TARGET_ directories, removing the #ifdefs.
/morph build |
Build : SUCCESSBuild number : 1334 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 991 |
Test : SUCCESSBuild number : 1118 |
Just wondering if anyone has any problems with that use of the |
/morph build |
Build : SUCCESSBuild number : 1399 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 1052 |
Test : SUCCESSBuild number : 1187 |
Description
Changed STM EMAC ethernet driver RX memory allocation back to pool allocation. It was changed to heap during early phases of EMAC development when pool buffers were not yet implemented. Added check to RX callback function to check if RX thread has already been created.
Changed STM+K64F driver enable flags from LWIP ethernet enabled and DEVICE_EMAC flags to use flags from target headers.
Extension of and replacement for #6241.
Pull request type