-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Build error with I2C driver for nucleo_f103rb: DT_ST_STM32_I2C_V1_40005400_BASE_ADDRESS' undeclared here #12243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I2C_1 isn't enabled in nucleo_f103rb dts file. Try to add the following in nucleo_f103rb dts file.
Please consider creating a PR if it works. |
It compiles now after having added the above mentioned section to the nucleo_f103rb dts file. |
Changing this from Bug to Enhancement as this is a matter of correct board configuration. |
does not really qualify as an enhancement, it is a bug :) |
@nashif, well I2C1 is not configured on this board, and actually I2C driver has not been developed/validated on this STM32F1 series. Build issue happens because @mattzzw tries to enable it without adding the requested matching fixup definition. |
I2C not supported on STM32F1 series yet, closing this ticket. |
@erwango I had tested I2C master mode (polling and interrupt) on olimexino_stm32 (stm32f103rb) and it was working. I will try to setup a testing environment asap, to test it again. |
It's also working on nucleo_f103rb with PR #12246. |
Describe the bug
Trying to compile master (65f79cd) with nucleo_f103rb and I2C_1
Results in
To Reproduce
Steps to reproduce the behavior:
My understanding is that I have to use I2C_1 according to
stm32f1.dtsi
Expected behavior
Compile w/o error
Environment (please complete the following information):
Additional context
I'm not very familiar with DTS but I can't find the file that defines e.g.
DT_ST_STM32_I2C_V1_40005400_BASE_ADDRESS
. What am I missing?The text was updated successfully, but these errors were encountered: