November 22, 2024, 03:42:43 AM

E407 Runtime Revision Detection

Started by Hazardy, December 05, 2022, 09:26:47 AM

Previous topic - Next topic

Hazardy

Hi there,

we have multiple E407 boards in use at the customers side. We have some Revision B and some Revision E boards, and need the ethernet port.
The original authors of our project are gone and now I've inherited the project to make some changes. My question is, is there a way to detect the revision at runtime and set the PhyAddress accordingly, or do I have to create two binaries and choose upon flashing which one to use?

Sadly the board is mounted in a box and concealed by another board, so one has to know, or to guess which revision is inside of the box.

Kind regards,
Björn.

LubOlimex

Well, as you noticed revision B and revision E have different Ethernet controllers. It is probably faster to have two binaries and after fleshing to check empirically if the board has some ethernet activity. If  Ethernet doesn't work, then flash with the other binary, check again after if it works.
Technical support and documentation manager at Olimex