Differences

This shows you the differences between two versions of the page.

chibios:community:guides:i2c_trouble_shooting [2014/02/25 11:08]
tectu [Troubleshooting: I²C on STM32]
chibios:community:guides:i2c_trouble_shooting [2014/02/25 11:09] (current)
tectu [Troubleshooting: I²C on STM32]
Line 2: Line 2:
 One (not) good day you may have decided to use the I²C interface of your STM32 MCU but you cannot get it working. Your I²C slave does not response at all or you're getting garbage. This guide lists very common issues. Please step through each point and make sure you got things right. One (not) good day you may have decided to use the I²C interface of your STM32 MCU but you cannot get it working. Your I²C slave does not response at all or you're getting garbage. This guide lists very common issues. Please step through each point and make sure you got things right.
  
-<code> 
-file2c [-dbcs] [-n name] [-f file] [inputfile] [outputfile] 
-        -?      This help 
-        -h      This help 
-        -d      Add a directory entry for the ROM file system 
-        -b      Break the arrays for compilers that won't handle large arrays 
-        -c      Declare as const (useful to ensure they end up in Flash) 
-        -s      Declare as static 
-        -n name Use "name" as the name of the array 
-        -f file Use "file" as the filename in the ROM directory entry 
-</code> 
 ===== Check first ===== ===== Check first =====
   * Ensure that you're using **external** pullups. The internal pullup resistors of the STM32 are too weak, never use them for I²C. Please note that it's important that your resistor values match the speed of your I²C bus. You may not use more than 10kΩ for 100kHz and note more than 4,7kΩ for 400kHz. If you go up to 1MHz you mustn't use more than 2kΩ.   * Ensure that you're using **external** pullups. The internal pullup resistors of the STM32 are too weak, never use them for I²C. Please note that it's important that your resistor values match the speed of your I²C bus. You may not use more than 10kΩ for 100kHz and note more than 4,7kΩ for 400kHz. If you go up to 1MHz you mustn't use more than 2kΩ.
 
chibios/community/guides/i2c_trouble_shooting.txt · Last modified: 2014/02/25 11:09 by tectu
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.3