due to various reasons I am migrating an existing project from RX631 (R5F5631BDDFB) to RX651 (R5F56519BDFB). It would be useful for backwards compatibility to know in the software, if it is running on a hardware with RX631 or with RX651 controller.
Unfortunately I didn’t find a possibility to identify the device. Is there a possibility I have overseen?
In reply to architect:
In reply to François Paul:
Also not exactly what you're looking for, but there's the Unique ID Registers (UIDRn) that provide a unique ID for every Renesas MPU die manufactured. It's possible (but not guaranteed) that the MPU model number is encoded in parts of this 16-byte ID.
But yeah, there should be an app note that describes how to determine on what processor one's code is running, similar to CISC processors' CPUID instruction.