ATtiny816 not found on OneWire #995
Unanswered
chris-b-tanner
asked this question in
Q&A
Replies: 3 comments 4 replies
-
Oh, shoot, I posted this in the wrong repo, sorry - it was supposed to be over at OneWireHub. If I get a solution I'll update it here anyway in case it's useful. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually, I'll reopen this as I'm wondering if it's because of differences between the atmelavr and atmelmegaavr platforms as compiled into the final code. Might there be something in the megaTinyCore which is causing trouble? |
Beta Was this translation helpful? Give feedback.
3 replies
-
That's unfortunate. I thibk the cores need to be manually updated past that
on PIO. But that shouldn't be related to the issue.
And you didn't answer the one most important question: there are MANNNYYYY
libraries called OneWire, which one are you using???
Like I said the most popular library of thst name maintained by Paul S
appears to have made the deliberate decision not to support these parts and
his version of the library is unsuitable for these parts and since he
refused to merge my fixes or any of the other dozen plus other prs to fix
it, I forked it and the fork should work
…____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore: Arduino support for almost every ATTiny microcontroller
Contact: ***@***.***
On Tue, Aug 8, 2023, 12:30 Chris Tanner ***@***.***> wrote:
Perhaps a clue: I have looked at the package usage in PlatformIO and it's
pulling in
framework-arduino-megaavr-megatinycore @ ^2.6.7
But I can't update it using plaformio.ini
Resolving attiny816 dependencies...
Tool Manager: Installing platformio/framework-arduino-megaavr-megatinycore @ ^2.6.8
UnknownPackageError: Could not find the package with 'platformio/framework-arduino-megaavr-megatinycore @ ^2.6.8' requirements for your system 'darwin_x86_64'
Interestingly your notes on the 2.6.8 release tag suggest that 2.6.7 won't
compile but I've not had problems.
—
Reply to this email directly, view it on GitHub
<#995 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW5YLABEESHFLZWLCHDXUJSSLANCNFSM6AAAAAA3IPE6VM>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi folks, I originally posted this as an issue but it might be better here.
I am struggling to get the ATtiny816 to respond as a OneWire device to an ESP32 master. Running the DS18B20 example.
Background info:
The bus and master physically work. I have another real DS18B20 on the same OneWire bus and it's seen fine by the host (an ESP32); the reset pulse from the ESP32 looks a strong low on a 'scope. I've tested the ATtiny without this separate device on the bus as well.
I can run the DS18B20 emulation code fine on an ATtiny85, so it's something related to the ATtiny816.
4k7 pullup is on the ESP32 end.
I'm using PlatformIO, but I don't suspect that makes a difference.
Nothing else is hooked up to the ATtiny apart from a 1uF cap from VCC to GND and the debug LED.
The DS18B20 emulation code runs on the ATtiny816, with the LED/blink at exactly 1s, but nothing on OneWire.
I've confirmed the OneWire pin I'm using on the ATtiny (10 / PB4) can be manipulated fine from the code, and it receives the low pulse into the calibration code.
The ATtiny816 runs the calibration code with a serial output, but I had to edit to while (repetitions++ < 5) in order for it to come out of the other end with a value_ipl (which strangely gives me 11 not 13 which is the default for the AVR)
No response on OneWire for IPL at either 11, 12 or 13
I have set fuses to use both 16Mhz and 20Mhz internal clock.
OneWireHub version 3.0.0
PlatformIO config:
Beta Was this translation helpful? Give feedback.
All reactions