[sdiy] I2C on STM32F0 parts
sleepy_dog at gmx.de
sleepy_dog at gmx.de
Tue Nov 29 01:44:20 CET 2016
oops, never tried attachments here before, so here it is then instead
https://www.wetransfer.com/downloads/2ca2f81e7fec78b2192ed417cff2b8ba20161129004153/5466ddc7ee5436b3e5845ad9921feacf20161129004153/582ec2
Am 29.11.2016 um 01:21 schrieb sleepy_dog at gmx.de:
>
> some examples in there, standard periph lib needed, not included,
> exact version uknown,
> no guarantees ;)
>
> Steve
>
> Am 29.11.2016 um 00:57 schrieb sleepy_dog at gmx.de:
>>
>> do you have both the clock for the peripheral and the I/O port in
>> question enabled ?
>>
>> Did you give the I2C peripheral a clock *before* giving it commands
>> for configuration? The order is important, IIRC.
>>
>> did you setup the correct alternate function / remap for the
>> peripheral and pin?
>>
>> You could look on the ST site for the nucleo and discovery boards for
>> that MCU,
>> then under tab "design resources" or similar, look for app notes,
>> examples,
>> or in the unzipped folder for the peripheral library, somewhere in a
>> subfolder, are examples on how to initialize most of the peripherals,
>> I think. Those that I had found when I was fiddling with this stuff
>> were sufficient, but perhaps it was for a newer MCU, I do remember
>> this being a lot worse many years back (not that it's rosy now).
>>
>> sry for breaked english i very tired ;)
>>
>>
>>
>>
>> Am 28.11.2016 um 23:36 schrieb Chris McDowell:
>>> Howdy list,
>>>
>>>
>>> Does anyone here have any examples or pointers for how to initialize
>>> and use the I2C peripheral on STM32F0 micros using the Standard
>>> Peripheral Library? I love the ST chips, and they -almost- always
>>> just work wonderfully, but I2C is really stumping me. I've spent a
>>> few days at work scoping data to no avail. I understand how it is
>>> supposed to work, but am missing something somewhere either in
>>> configuration, or in when to wait for which flags, etc. The examples
>>> included with the std periph lib aren't doing me much good (is this
>>> really how most folks get to know these libraries?) so any pointers
>>> would be greatly appreciated!
>>>
>>> Cheers,
>>> Chris
>>> _______________________________________________
>>> Synth-diy mailing list
>>> Synth-diy at synth-diy.org
>>> http://synth-diy.org/mailman/listinfo/synth-diy
>>>
>>
>> _______________________________________________
>> Synth-diy mailing list
>> Synth-diy at synth-diy.org
>> http://synth-diy.org/mailman/listinfo/synth-diy
>>
>
> _______________________________________________
> Synth-diy mailing list
> Synth-diy at synth-diy.org
> http://synth-diy.org/mailman/listinfo/synth-diy
>
More information about the Synth-diy
mailing list