1 Reply Latest reply on May 22, 2019 2:00 PM by DaMa_1439756

    Programmatically determine device type


      Our current project targets the CYBLE-214009-00 device. This device is going end of life. So we're migrating to the drop-in replacement CYBLE-214015-01.


      Going forward we will need to maintain two build options one for each device type.


      In the firmware, I would like to be able to report the device type. As such we can annotate this information in error logs and also use the device type to load the correct hex file when performing a firmware update. I can make #define statements to identify the device etc. How do I programmatically determine whether my device is the CYBLE-214009-00 or the CYBLE-214015-01? Is there a #define that I can use, or a System API that I can use. Using PsoC Creator 4.2.