I2C on 32F051 - V3

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderator: RoccoMarco

Post Reply
steved
Posts: 834
Joined: Fri Nov 09, 2012 2:22 pm
Has thanked: 12 times
Been thanked: 138 times

I2C on 32F051 - V3

Post by steved »

Just started using I2C on 32F051 with version 3, and found a couple of things:

1. STM32\LLD\I2CV2\i2c_lld.c still uses CORTEX_PRIORITY_MASK() in lines 427, 461 - needs to be removed

2. In mcuconf.c in the RT-32F051 Discovery demo, STM32_I2C_I2C1_IRQ_PRIORITY and STM32_I2C_I2C2_IRQ_PRIORITY are defined as 10, which is out of range for the 32F051 (although it seemed to work with 2.6!). A value of 3 appears to work.
User avatar
Giovanni
Site Admin
Posts: 14892
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: I2C on 32F051 - V3

Post by Giovanni »

Thanks, all fixed.

Giovanni
Post Reply