2021-07-07 02:18 AM
I am using lis3mdl and try to use libiio in my programm.
In my programm I enabling chanels and try to create buffer with iio_device_create_buffer function. It fails with error "Operation not permitted".
Also "WARNING: High-speed mode not enabled" message prints in terminal (I assume this message is printed by libiio)
What should I do? Should I turn on this high-speed mode in device tree or what?
Solved! Go to Solution.
2021-07-20 05:03 AM
Hi @axel101 ,
sorry for the late reply.
Are you using these drivers on Github in your project, especially this st_mag3d_buffer.c?
If so, what I suggest you is to open an issue directly on Github (LINK), so that the expert can directly receive a notification of the issue and can reply faster to you.
Let me update in case of any progress.
-Eleon
2021-07-20 05:03 AM
Hi @axel101 ,
sorry for the late reply.
Are you using these drivers on Github in your project, especially this st_mag3d_buffer.c?
If so, what I suggest you is to open an issue directly on Github (LINK), so that the expert can directly receive a notification of the issue and can reply faster to you.
Let me update in case of any progress.
-Eleon
2021-12-24 02:55 AM
Sorry for late answer.
No, I'm using intree drivers from https://github.com/STMicroelectronics/linux/tree/v5.10-stm32mp linux kernel.
Your link refers to another linux kernel, but there is only 4.19 kernel version. Any plans to include these drivers in linux v5?
2022-01-04 07:23 AM
Hi @axel101 ,
I don't thins so, but I suggest you to try on Github, to get a direct link with ST sensors Linux expert.
-Eleon
2022-01-24 12:56 AM
This repo already contains buffered mode driver, thanks
2022-01-24 01:01 AM
The issue was different. I using STM32MP157-ev1 board and configured SPI interface with NSS pin. But I found out that NSS is not enabled in STM32MP1 SPI driver at all. Driver doesn't setup SPI controller for NSS usage. Magnetometer driver successfully read WhoAmI register, but since NSS didn't switched after register reading, SPI doesn't work anymore. I set up SPI with software NSS via GPIO and all works fine.
2022-01-24 01:26 AM
Hi @axel101 ,
thank you for sharing your solution!
Good community approach!
-Eleon