2020-02-26 11:54 PM
2020-02-27 12:15 AM
You have my deepest sympathy.
Unfortunately, as I have yet no means to know
I can off no other advice than check each of those points thoroughly, using the board schematics and BOM, the EEPROM datasheet, the MCU datasheet and reference manual, and an oscilloscope.
2020-02-27 02:27 AM
pullup resistor of 2.2 k
MCU is STM32f303c8
2020-02-27 03:15 AM
These are my answers:
Note:- I am using examples of STM32F303C8 related boards.In that I am not using DMA and converted it by using an interrupt mode all other things I have same.
/**
* @brief System Clock Configuration
* The system Clock is configured as follow :
* System Clock source = PLL (HSE)
* SYSCLK(Hz) = 72000000
* HCLK(Hz) = 72000000
* AHB Prescaler = 1
* APB1 Prescaler = 2
* APB2 Prescaler = 1
* HSE Frequency(Hz) = 8000000
* HSE PREDIV = 1
* PLLMUL = RCC_PLL_MUL9 (9)
* Flash Latency(WS) = 2
* @param None
* @retval None
9. GPIO Register is PB6 and PB7 as I2C pins.
10.In status register transmission enbale bit is set already all other bits are zero.
11. Controller stuck in this while loop.
while (HAL_I2C_GetState(&I2cHandle) != HAL_I2C_STATE_READY)
{
}
Confusions:-----1.I have doubt in timeout value
2.page size in IC datsheet Is-256 but in example it is taken as 128.
3.Also about DMA and IT.