2026-01-08 7:52 AM
The X-NUCLEO IKS4A1 cannot operate correctly in MEMS Studio with the default sensor selection on the board. I have the nucleo f401re.
Solved! Go to Solution.
2026-01-08 1:44 PM
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.
2026-01-08 9:25 AM
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
2026-01-08 1:44 PM
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.