Replies: 2 comments 9 replies
-
Any possibility to use a scope on the bus ? |
Beta Was this translation helpful? Give feedback.
6 replies
-
Please check if #69290 could help |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I am trying to connect the STM32 board(NUCLEO-F767ZI) and the U-BLOX(B78-ADR) module through I2C.
I2C communication on STM32CubeIDE without Zephyr
In order to check the I2C connection, I checked I2C communication using STM32CubeIDE without Zephyr. I used the open source below.
(https://github.com/cturvey/RandomNinjaChef/blob/main/STM32_uBlox_I2C.c)
Communication is successful.
I2C communication on Zephyr
I tried to I2C communicate with the U-BLOX module using the open source below.
(Drivers: U-Blox NEO-M8 Driver implementation + Sample Project #46447)
However, an error occurs in the code below.
Is there anything I missed?
A link to the GPS module I am using :
: I didn't buy it myself, so I don't have an exact specification.
Below are the product photos and protocol I am referring to below specification documents.
https://content.u-blox.com/sites/default/files/products/documents/u-blox8-M8_ReceiverDescrProtSpec_UBX-13003221.pdf
#46447
: I connected as below.
/* i2c_ll_stm32_v2.c */
static int stm32_i2c_msg_write(const struct device *dev, struct i2c_msg *msg,
uint8_t *next_msg_flags, uint16_t slave)
{
.....
error:
....
}
/* Output */
[00:00:00.620,000] i2c_ll_stm32_v2: TH : is_nack(0),is_err(0),is_arlo(0),is_timeout(1)
[00:00:00.620,000] i2c_ll_stm32_v2: TH : stm32_i2c_msg_write: TIMEOUT
[00:00:00.620,000] i2c_ll_stm32_v2: TH : stm32_i2c_transaction(v2) - ret :-5
[00:00:00.620,000] i2c_ll_stm32_v2: TH : is_nack(1),is_err(0),is_arlo(0),is_timeout(0)
[00:00:00.620,000] i2c_ll_stm32_v2: TH : stm32_i2c_msg_write: NACK
[00:00:00.620,000] i2c_ll_stm32_v2: TH : stm32_i2c_transaction(v2) - ret :-5
Beta Was this translation helpful? Give feedback.
All reactions