cancel
Showing results for 
Search instead for 
Did you mean: 

The WHO_AM_I register value does not match the device selected

joserp93
Visitor

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

1 ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

2 REPLIES 2
joserp93
Visitor
 
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

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.