1,821 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
1
answer
46
views
I2C interrupts on STM32, repeated start
I've got myself an STM32, and I'm writing an I2C interrupt handler for it. I can write data to the bus without a problem, the issue comes when I try to created a repeated start condition. I see the ...
0
votes
0
answers
71
views
An issue about STM32H503 I2C
I'm reading RM0492 Rev 3 about I2C's controller transmitter. The original words on the page of 1185 are
When RELOAD = 0 and the number of data bytes defined in NBYTES[7:0] is transferred:
• In ...
0
votes
1
answer
82
views
Timing of a I2C state machine on an FPGA
I’ve realized that my understanding of I2C timing is weaker than I thought. I’ve read the datasheet for the component I’m working with, but I’m still struggling to understand how to properly time my ...
0
votes
2
answers
86
views
I2C implementation aid on FPGA board
I’m working on implementing an I2C master in VHDL on an FPGA, and I’ve run into a problem with generating the STOP condition. Everything else in the transfer appears correct, but the STOP condition ...
5
votes
1
answer
146
views
SAMD11 I2C (SERCOM0) never leaves IDLE state
I am trying to get I2C to work on the SAMD11C14A (ATSAMD11D14A-SSUT).
Just for context the MCU is soldered on a custom PCB with nothing but 4.7kΩ pull up resistors soldered to the paths and no other ...
0
votes
0
answers
38
views
STM32 CONTROL HAL I2C/ADC returns zero values
we made a code in STM32CUBEIDE to control the ADC/I2C of our datalogger test but we have a problem because when we run the code, in line 156, the string ‘voltage_ch0’ gives us a value of 0 and nothing ...
1
vote
1
answer
87
views
„Why does my ICM-42688-P always read the same AX/AY/AZ values on PSoC (LED never changes)?"
I am using a PSoC 5LP together with the 6DOF IMU 14 Click (ICM-42688-P) from MikroE.
The IMU is connected via I2C, address 0x68, and the WHO_AM_I register correctly returns 0x47, so the sensor is ...
-1
votes
0
answers
170
views
Is I2C device interface thread-safe on Linux?
I have a single board computer with a I2C GPIO expander device, listed as /dev/i2c-0. In my multithreaded program I open() this character device and read/write to it on separate threads using ...
1
vote
2
answers
153
views
How to enable I2C GPIO fault Injector in Linux kernel
I am attempting to introduce bus errors on the I2C bus using the i2c-gpio fault injector already available under drivers/i2c/busses/. For my target platform (AST2600), I’ve enabled the following ...
-1
votes
0
answers
32
views
i2c conflict on M5Core?
I want to use a NAU702 load cell ADC with a M5Core and FreeRTOS
I try first this code with a ESP32 Huzzah32 and NAU702 using the adafruit library
#include <Wire.h>
#include <...
2
votes
1
answer
126
views
HTU2X sensor not successful with getting data
Did the following steps to test if my temperature sensor HTU2X is working thoroughly. Selected my board (Nucleo-64 STM32F411RE) from STM32CubeIDE then enabled I2C1 for pins PB8 (as the SCL) and PB9 (...
Franky's user avatar
- 1,240
0
votes
0
answers
119
views
How to get i2c_dev to coexist with direct usage of i2c drivers?
I am building a project that uses esp_lcd,and the TSL2591 component from the component library.
To my knowledge these are both well maintained and commonly used in the idf, and should be able to ...
1
vote
0
answers
126
views
Stable path to i2c device
I have a device driver that provides quite simple functionality that does not belong to any of the classes. The driver exposes one attribute through sysfs.
Currently I can get an access to my device ...
-1
votes
0
answers
66
views
Arduino Mega (Master) reads old Wire Communication data from slave (esp32 dev module)
I am using the Arduino IDE for uploading and compiling code for these microcontrollers.
These two sketches should send a serial monitor input from the user of the master to the slave and then the same ...
0
votes
0
answers
65
views
Repeated/Missing data in I2C transmission from MSP430FR5972 (slave) to Arduino Uno (master)
I am very new to embedded programming and I2C protocol. I would like to develop a command "CMD_READ_V" which will eventually read an analog voltage from the MSP430 A0 and report it back to ...