cancel
Showing results for 
Search instead for 
Did you mean: 

Preferred method for determing hardware at runtime?

john doe
Lead
Posted on January 21, 2017 at 04:50

You want us to use the HAL, ok fine.  We use the HAL. But we still often times need to know what hardware we are running on.

What is the factory approved method for determining which board/chip is running?

Where is the list of HAL Device IDs and what those ID correspond to?

2 REPLIES 2
Posted on January 21, 2017 at 10:21

A board is going to be very hard to detect without external strapping.

For F4 chips I use DBGMCU DEVID to auto set clocking.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Imen.D
ST Employee
Posted on January 23, 2017 at 11:25

Hello

doe.john.016

,

You may refer to the 'Debug support (DBG)' section in your reference manual for more clarification, exactlyin the 'MCU device ID code' paragraph.

Hope this helps you.

Regards

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen