互联系列产品,设备编码为0x418。#define MCU_ID ((*(__IO u32*)(0xE0042000))&0xFFF) ...
I have developed code to determine this by evaluating the registers for the peripherals, but I'm wondering if there is another way. I've been looking at the DBGMCU_IDCODE register. And one thing confusing is that the value is different if you use the STLINK. In code, it looks like ...
SCPI_ResultText(context, MCU_FIRMWARE_BUILD_DATE""MCU_FIRMWARE_BUILD_TIME); 142146 returnSCPI_RES_OK; 147+ }elseif(cmd ==25) { 148+ #ifEEZ_PLATFORM_STM32 149+ charidCode[20]; 150+ snprintf(idCode,sizeof(idCode),"0x%08X", (unsignedint)DBGMCU->IDCODE); ...