Skip to content

Eth Global interrupt priority #1

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

Open
mangodan2003 opened this issue May 6, 2020 · 0 comments
Open

Eth Global interrupt priority #1

mangodan2003 opened this issue May 6, 2020 · 0 comments

Comments

@mangodan2003
Copy link

First off, thanks for this, no doubt saved me a tonne of time messing about.

I just had one thing missing after following the guide which looking back at it i see you had set but seemingly not listed in the config steps.

CubeMX creates config where Middleware->FREERTOS_M7->Config Parameters(tab)->LIBRARY_MAX_SYSCALL_INTERRUPT_PRIORITY deafults to 5
and System Core->NVIC1->NVIC(tab)->Ether Global Priority defaults to 0. This results in calls to osDelay never returning, and sitting in vPortValidateInterruptPriority().

Without this step the DHCP server sees a Request, sends an Offer, but then the board hangs and never sends an ACK, won't reply to pings, and indeed any call to osDelay() just gets stuck as above.

I also had to disable USB device which was enabled by default and prevented setting the clock configuration to anything remotely fast - as the boards are not fitted with an HSE (X2) and thus rely on the HSI by default. As I will be using USB eventually too I have ordered an XTAL for X2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant