Why can only the lower 32 bits be output when printing 64-bit data?

  uint32_t id[2];
  id[0]=NRF_FICR->DEVICEID[0];
  id[1]=NRF_FICR->DEVICEID[1];
  uint64_t deviceId = ((uint64_t)id[0] << 32) | id[1];
  NRF_LOG_INFO("Device ID: %" PRIx64 "\n", deviceId);

Top Replies

Parents Reply Children
Related