Skip to main content
Associate
January 8, 2026
Solved

The WHO_AM_I register value does not match the device selected

  • January 8, 2026
  • 1 reply
  • 205 views

The X-NUCLEO IKS4A1 cannot operate correctly in MEMS Studio with the default sensor selection on the board. I have the nucleo f401re.Screenshot 2026-01-08 at 12.50.59 PM.png

Best answer by joserp93

It's working now; the IKS4A1 doesn't have the 3.3V and Vio pins soldered on. STM should be more careful with test PCBs.

1 reply

joserp93Author
Associate
January 8, 2026
 
int32_t lsm6dsv16x_mem_bank_set(const stmdev_ctx_t *ctx, lsm6dsv16x_mem_bank_t val)
{
 lsm6dsv16x_func_cfg_access_t func_cfg_access;
 int32_t ret;

 ret = lsm6dsv16x_read_reg(ctx, LSM6DSV16X_FUNC_CFG_ACCESS, (uint8_t *)&func_cfg_access, 1);
 if (ret != 0)
 {
 return ret;
 }

 func_cfg_access.shub_reg_access = ((uint8_t)val & 0x02U) >> 1;
 func_cfg_access.emb_func_reg_access = (uint8_t)val & 0x01U;
 ret = lsm6dsv16x_write_reg(ctx, LSM6DSV16X_FUNC_CFG_ACCESS, (uint8_t *)&func_cfg_access, 1);

 return ret;
}


in the line 7 return -8

joserp93AuthorBest answer
Associate
January 8, 2026

It's working now; the IKS4A1 doesn't have the 3.3V and Vio pins soldered on. STM should be more careful with test PCBs.