diff -ur orig/ChibiOS_2.6.1/os/hal/platforms/STM32/I2Cv1/i2c_lld.c chibios/os/hal/platforms/STM32/I2Cv1/i2c_lld.c --- orig/ChibiOS_2.6.1/os/hal/platforms/STM32/I2Cv1/i2c_lld.c 2013-05-05 08:55:02.000000000 +0300 +++ chibios/os/hal/platforms/STM32/I2Cv1/i2c_lld.c 2013-11-15 15:50:31.968735157 +0200 @@ -202,9 +202,9 @@ "Invalid standard mode duty cycle"); /* Standard mode clock_div calculate: Tlow/Thigh = 1/1.*/ - chDbgAssert((STM32_PCLK1 % (clock_speed * 2)) == 0, + /*chDbgAssert((STM32_PCLK1 % (clock_speed * 2)) == 0, "i2c_lld_set_clock(), #2", - "PCLK1 must be divided without remainder"); + "PCLK1 must be divided without remainder");*/ clock_div = (uint16_t)(STM32_PCLK1 / (clock_speed * 2)); chDbgAssert(clock_div >= 0x04, diff -ur orig/ChibiOS_2.6.1/os/hal/platforms/STM32/I2Cv1/i2c_lld.h chibios/os/hal/platforms/STM32/I2Cv1/i2c_lld.h --- orig/ChibiOS_2.6.1/os/hal/platforms/STM32/I2Cv1/i2c_lld.h 2013-05-05 08:55:02.000000000 +0300 +++ chibios/os/hal/platforms/STM32/I2Cv1/i2c_lld.h 2013-11-08 11:34:34.938215881 +0200 @@ -275,7 +275,7 @@ #elif defined(STM32L1XX_MD) #if !(I2C_CLK_FREQ >= 2) && (I2C_CLK_FREQ <= 32) -#error "I2C peripheral clock frequency out of range." +//#error "I2C peripheral clock frequency out of range." #endif #elif defined(STM32F2XX) diff -ur orig/ChibiOS_2.6.1/os/ports/GCC/ARMCMx/rules.mk chibios/os/ports/GCC/ARMCMx/rules.mk --- orig/ChibiOS_2.6.1/os/ports/GCC/ARMCMx/rules.mk 2013-05-05 08:55:16.000000000 +0300 +++ chibios/os/ports/GCC/ARMCMx/rules.mk 2013-11-05 15:37:35.645561720 +0200 @@ -57,10 +57,10 @@ # Various settings MCFLAGS = -mcpu=$(MCU) ODFLAGS = -x --syms -ASFLAGS = $(MCFLAGS) -Wa,-amhls=$(LSTDIR)/$(notdir $(<:.s=.lst)) $(ADEFS) -ASXFLAGS = $(MCFLAGS) -Wa,-amhls=$(LSTDIR)/$(notdir $(<:.S=.lst)) $(ADEFS) -CFLAGS = $(MCFLAGS) $(OPT) $(COPT) $(CWARN) -Wa,-alms=$(LSTDIR)/$(notdir $(<:.c=.lst)) $(DEFS) -CPPFLAGS = $(MCFLAGS) $(OPT) $(CPPOPT) $(CPPWARN) -Wa,-alms=$(LSTDIR)/$(notdir $(<:.cpp=.lst)) $(DEFS) +ASFLAGS = $(MCFLAGS) $(ADEFS) +ASXFLAGS = $(MCFLAGS) $(ADEFS) +CFLAGS = $(MCFLAGS) $(OPT) $(COPT) $(CWARN) $(DEFS) +CPPFLAGS = $(MCFLAGS) $(OPT) $(CPPOPT) $(CPPWARN) $(DEFS) ifeq ($(USE_LINK_GC),yes) LDFLAGS = $(MCFLAGS) -nostartfiles -T$(LDSCRIPT) -Wl,-Map=$(BUILDDIR)/$(PROJECT).map,--cref,--no-warn-mismatch,--gc-sections $(LLIBDIR) else