-
Notifications
You must be signed in to change notification settings - Fork 3k
STM32H7: correct Ethernet issue in baremetal #13143
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
@jeromecoutant, thank you for your changes. |
#else | ||
/* ex: bare metal profile */ | ||
#define ETH_TX_DESC_CNT 0 /* Tx buffers of size ETH_TX_BUF_SIZE */ | ||
#define ETH_RX_DESC_CNT 0 /* Rx buffers of size ETH_RX_BUF_SIZE */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does "0" mean?
Is Ethernet expected to work on Baremetal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so, Ethernet needs threads
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! then it might be better to disable ethernet rather than silently compiling, right?
And perhaps if the network API is used in bare-metal, there should be an error (I'm not sure where exactly the check should be introduced but it might be a tools/build-system enhancement).
For reference: https://os.mbed.com/docs/mbed-os/v6.0/bare-metal/index.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Ethernet is disabled with baremetal, but Ethernet ST Cube drivers are compiled.
And these 2 macro ETH_RX/TX_DESC_CNT are used in ST files. Definition were defined at ST Cube level, but I moved them in emac directory for mbed. So we need to redefine it when emac is not present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeromecoutant might be useful to have the reason for having this set to 0 in the commit message - does that mean no allocated memory as they are 0 or symbols are protected somehow? I've already started CI ,can restart later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As emac is disabled, you can set the value you want....
CI started |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Summary of changes
There was some build issue with mbed-os-example-blinky-baremetal and STM32H7 boards.
@MarceloSalazar
Impact of changes
Migration actions required
Documentation
Pull request type
Test results
Reviewers