mcci-catena / OneWire

Library for Dallas/Maxim 1-Wire Chips
http://www.pjrc.com/teensy/td_libs_OneWire.html
1 stars 1 forks source link

OneWire doesn't work with STM32L0 processors #1

Closed terrillmoore closed 6 years ago

terrillmoore commented 6 years ago

The OneWire library has a lot of machine-specific code for accessing GPIOs. See OneWire.h for details, and architecture-sensitive #if chains.

The code compiles if there's no architecture-specific support, but (as the warning that is emitted bunever seen says), it doesn't necessarily work, and isn't supported. In fact, with the Catena 4551m102 and the Adafruit High Temp Waterproof Sensor, it doesn't work at all.

Probably it should #error on unsupported architectures, since it doesn't work.

Definitely we need to add STM32L0 support for the 4551.

terrillmoore commented 6 years ago

Branch https://github.com/mcci-catena/OneWire/tree/tmm-STM32support has code that adds direct access for STM32 processors. However, as of commit 0517a1b29b0b051e39a2b1bb5ec1a9d02fbf6296, although we now discover that a device is attached, we still are unable to enumerate the Adafruit High-Temp Sensor. Testing confirmed that the primitives are working and that we could see changes on the external pins as expected. Next step is to confirm function with a scope.