2023-04-04 04:39 AM
Customer has fitted both to different rev boards and wants to detect the hardware rev based on the processor type that was fitted. both run the same firmware without issue. I'm looking for a way (in firmware) to detect which processor is fitted.
2023-04-04 05:04 AM
Hello,
I think debug registers cannot help you since the devices you are using are very similar from that standpoint.
You may play on the differences from peripheral instances.
For example F103 features a CAN module while F101 does not. In that case for example you may use CAN module in loopback mode and send receive a frame: if you are receiving the Frame -> it's a F103 device, otherwise it's F101!
2023-04-06 01:27 AM
There is no way. Both devices are the same die, with some parts in the F101 not tested.