You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wanted to use the TI sensor fdc2x1x (onboard I have a FDC2214). The driver is also available. After integration, the controller did not start and I received a “fatal exception” error.
First, I had an ESP32 (board: M5StickC-plus, flashed via UART), then I tried it with an STM32L552 (flashed via STLink V3) controller.
After ruling out the app code as the source of the error, I took a look at the driver. Here I discovered memory access violations.
For example, here:
Note the variable access cfg->ch_cfg->fin_sel which is channel specific and therefore must be implemented as follows: cfg->ch_cfg-[ch].fin_sel.
I have noticed 3 of these access violations.
Furthermore, I use the chip without the sd_gpio.
In the code, however, the function fdc2x1x_init(const struct device *dev) incorrectly checks whether this has been set in the device tree.
Here is what helped me: if (cfg->sd_gpio.port->name) { -> if (cfg->sd_gpio.port) {
Regression
This is a regression.
Steps to reproduce
Execute the example from the folder samples/sensor/fdc2x1x.
Relevant log output
Impact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
Linux Ubuntu
Zephyr SDK with VSCode
zephyrproject-rtos with revision: v4.1.0-rc3
Additional Context
No response
The text was updated successfully, but these errors were encountered:
After this change, the FDC2214 can be read both with and without an sd-gpio in the device tree and the fdc2x1x_init_sd_pin(dev) will only be called if the sd-gpio is specified.
I’m not certain whether this will later interfere with power-management routines that use the pin to shut down the FDC, but the adjustment probably best matches the driver author’s intent.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
I wanted to use the TI sensor fdc2x1x (onboard I have a FDC2214). The driver is also available. After integration, the controller did not start and I received a “fatal exception” error.
First, I had an ESP32 (board: M5StickC-plus, flashed via UART), then I tried it with an STM32L552 (flashed via STLink V3) controller.
After ruling out the app code as the source of the error, I took a look at the driver. Here I discovered memory access violations.
For example, here:
Note the variable access
cfg->ch_cfg->fin_sel
which is channel specific and therefore must be implemented as follows:cfg->ch_cfg-[ch].fin_sel
.I have noticed 3 of these access violations.
Furthermore, I use the chip without the
sd_gpio
.In the code, however, the function
fdc2x1x_init(const struct device *dev)
incorrectly checks whether this has been set in the device tree.Here is what helped me:
if (cfg->sd_gpio.port->name) {
->if (cfg->sd_gpio.port) {
Regression
Steps to reproduce
Execute the example from the folder
samples/sensor/fdc2x1x
.Relevant log output
Impact
Annoyance – Minor irritation; no significant impact on usability or functionality.
Environment
Additional Context
No response
The text was updated successfully, but these errors were encountered: