2015-06-29 03:06 AM
Hi,
I am using STM32F103ZE microcontroller. In which communicating with external SRAM with FSMC . It is working fine.
1)Now I am trying to communicate with an IC which is connected through I2C1 (PB6 : SCL , PB7 : SDA,). But this communication is not happening while using external RAM through FSMC.
2)But I2C is working with internal RAM, and communication with that IC is happening, there is no issue.
Then I tried I2C communication with External RAM after disabling FSMC_NADV in register AFIO_MAPR2 (By setting 10th bit in AFIO_MAPR2 register). But still same problem is persisting.
Anyone have idea about it?? #i2c #fsmc2015-06-29 03:22 AM
Hello khandelwal.gaurav,
Did you applied the workaround described inhttp://www.st.com/st-web-ui/static/active/en/resource/technical/document/errata_sheet/CD00197763.pdf
: ''it is possible to use the remap functionality available on the PB8 and PB9pins. Otherwise, disable the FSMC clock through the ''RCC_AHBENR'' register prior usingthe I2C1.''-Mayla-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.
2015-06-29 05:01 AM
PB6 : SCL , PB7 : SDA are available for I2C.
PB8 and PB9 pins are used for some other purpose.And Since I am using External SRAM , and my code is based on RTOS platform I can't disable FSMC clock in between. Is there any other solution?? Is AFIO_MAPR2 register available in STM32F103ZE HD device??2015-06-30 04:57 AM
Hi Guarav,
Unfortunately this is a limitation in STM32F103ZE and the possible workaround is what I suggested.Is there a way for you to free PB8 and PB9 and use other pins instead?-Mayla-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.
2016-04-02 03:46 PM
2016-04-02 03:47 PM