2023-03-03 06:56 AM
I connect my I2C but when I connect an oscilloscope I have nothing on the clock signal. So probably I misconfigured my clock. Could you give me the information? Thanks in advance.
In this picture below I've a warning, do you know how to remove this warning please ?
Thank you for your helps.
Regards
Yann DO
Solved! Go to Solution.
2023-03-06 07:57 AM
I'll try it tomorrow. Thank you for your patience.
2023-03-07 12:04 AM
Hello,
I come back again, after having listened to your advice, I do not encounter any warnings or errors.
After, this step how can I check if my clock is running correctly on my evaluation board? For example, can I test the HAL delay function ?
I just to check this step before continuing to configure the I2C and then SAI.
Thank you for your helps
Regards
2023-03-07 12:13 AM
I also configure I2C and no warning and no errors.
2023-03-07 01:46 AM
After configuring the RCC, I2C and SAI I still have an error at the I2C level
Something is wrong but I don't know where it could come from
2023-03-07 01:51 AM
Transmits in master mode an amount of data in blocking mode:
HAL_I2C_Master_Transmit(I2C_HandleTypeDef *hi2c, uint16_t DevAddress, uint8_t *pData, uint16_t Size,uint32_t Timeout)
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-03-07 01:55 AM
Hi,
All is correct after me. Do you have a working example for me to check the I2C communication ?
2023-03-07 01:58 AM
You can refer to the I2C WIKI : Getting started with I2C - stm32mcu
Also you can refer to the CubeFW to find the I2C examples : STM32Cube\Repository\STM32Cube_FW_L5_V1.4.0\Projects\
Foued
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2023-03-07 02:56 AM
Hi,
I know what i's I2C and how does it work. Someting tells me this is the evaluation board clock configuration. The I2C clock is a derivative of the main clock, that why in my previous message I would like to test the function Delay.
I'll see the example but after me it does not exist on this evaluation board, let me check this information.
2023-03-07 03:00 AM
That confirm my thoughts :
2023-03-07 03:37 AM
I can locate the error inside the function
And the error is that this point
I don't know the signification of this error. Do you have any idea ?