-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
Example for init #1
Comments
i've also connected A0,A1,A2 to GND with WP too, i'm using CAT24C512WI |
my init function
and my EEPROM seller I have tested your code but it doesn't work as the Is_Device_Ready never returns HAL_OK |
Hello. Do you use stm32f1 series,? |
yes stm32F103R8Tx |
I have the same problem with f1 |
What do you mean another I2C ? |
i can't use the other I2C output as it's already soldered in my PCB |
I have 2 demo PCBs both aren't working, every single thing in the processor works except for I2C |
I think this is a bug for HAL. please try this I2Cx_CLK_ENABLE(); <<<<<<<<<<<<<<<<< add here /##-2- Configure peripheral GPIO ##########################################/ /* I2C RX GPIO pin configuration */ /##-3- Enable I2C peripheral Clock ########################################/ ////////////////////// |
I got no definition for I2Cx_CLK_ENABLE function, only got __HAL_RCC_I2C1_CLK_ENABLE();
|
I've added this, but still no hope
|
please do not enable i2c interrupt and try again. |
and test all i2c address in a loop for get ack |
and the modes for SCL and SDA are right ? AF_OD and AF_Input ? |
its set automatically by cube |
Okie, current generated code
my main MX_GPIO_Init();
i never get HAL_OK in any round |
Its a big problem with f1 and cube. |
thanks alot for your help, last question : shouldn't i enable the I2C interrupts ? |
I2c interrupt doesn't need to this library. |
hi i using stm32h743 when i want write data stm crashed and stuck, i use this library in stm32f4 very well but h7 not working |
Hi |
@htan1375 Hello. you are welcome. unfortunately, I have not tried the G series. |
@htan1375 I have the G0 serie but i dont have your exact problem. I use I2C1 and the EEPROM works good |
hi @htan1375 . only F1 series. |
Hi. Thanks to Mr. Askari and @PieterBosElectro. My problem solved and library works well. We had a very strange electronic circuit problem related to EMI noise affecting the I2C pins. |
can you provide example for init of the EEPROM pins, as no clear documentation for that?
The text was updated successfully, but these errors were encountered: