Replies: 6 comments 1 reply
-
Please be more specific, can you list which files are treated in what ways? And is this a megaTinyCore bug or a platformio bug? |
Beta Was this translation helpful? Give feedback.
-
Here were the "errors" I encountered. It might be expected behaviour rather than any bug. TLDR, should there be a package.json in megaTinyCore git repo to allow platform_packages to reference the git repo directly ? Long version: Starting from a default megaTinyCore install with Platform IO that is currently at megaTinyCore 2.5.11 I wanted to upgrade to 2.6.4 to get the improvements to Serial classes. So I tried
which results a report that the
Then I tried patching the 2.4.6 tag in a branch of my own
resulting in exposing a bug in platforms/atmelmegaavr/builder/frameworks/arduino.py which I can report there. (can't parse
At which point I thought it would be quicker to manually patch as per https://github.com/ieb/ModbusShunt#megatinycore Upgrading to 2.6.4 fixed the problem I was seeing (first 7 bytes of a modbus RTU frame being dropped) which are more likely to have been caused by a bug in my code than anything in 2.5.11. |
Beta Was this translation helpful? Give feedback.
-
If you open the platformio registry page (https://registry.platformio.org/tools/platformio/framework-arduino-megaavr-megatinycore) You can see "Used By" section in the right bar. Unfortunatelly I don't know how to force platformio to use last version of megaTinyCode (It shows 2.5.11 for me as well) |
Beta Was this translation helpful? Give feedback.
-
And you think I know?!
I wouldn't know platform-io from a hole in the ground! I only know how to
use the arduino ide and how to make a modern avr walk on its side in
assembly :-pme to do?
My brain only has 16 bits of address space anyway (ever wonder why i never
talk about the m2560? Above 64k words of flash, I'm out of my league!). And
here you are asking about some piece of software for desktop pc's with GBs
of ram and TBs of nonvolatile memory - what am I supposed to do?!
…____________
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 Mon, Jan 30, 2023, 10:38 Morcatko ***@***.***> wrote:
If you open the platformio registry page (
https://registry.platformio.org/tools/platformio/framework-arduino-megaavr-megatinycore)
You can see "Used By" section in the right bar.
It shows "atmelmegaavr" which has source code here
https://github.com/platformio/platform-atmelmegaavr
Unfortunatelly I don't know how to force platformio to use last version of
megaTinyCode (It shows 2.5.11 for me as well)
—
Reply to this email directly, view it on GitHub
<#877 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW732LY6JPMDOMFQ4WDWU7N7TANCNFSM6AAAAAATINCJTE>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
LOL, poor Spence and his severely constrained wetware... I am at the moment struggling with the same issue. PIO comes with an ancient (relatively speaking) megaTinyCore and I really wanted the latest one with its I2C fanciness. I did manage to do a local upgrade. Here goes: First, clone
Finally, make your project use the updated package by placing the following in your
Adapt the path as required... This should be enough to make PIO use the new framework. Additionally, you'll want to get the latest Once you have done all this, you can use
and it just works! |
Beta Was this translation helpful? Give feedback.
-
Additionally, I created the following issue: platformio/platform-atmelmegaavr#53 Go give it thumbs up, and if you want to follow the progress, subscribe to it! EDIT: Here's a respective issue for |
Beta Was this translation helpful? Give feedback.
-
Sorry to have to ask another PlatformIO question here.
Where is the source code for https://registry.platformio.org/tools/platformio/framework-arduino-megaavr-megatinycore which references this git repo.
When that package is installed it uses files from https://github.com/SpenceKonde/megaTinyCore/tree/master/megaavr mixed in with files from the root and some files that dont exists, which makes me think the pointer to this repo is incorrect. I want to ask the maintainer to create a 2.6.4 version of the package.
It is possible to install manually by checking out 2.6.4 locally, copying ~/.platformio/packages/ramework-arduino-megaavr-megatinycore (2.5.11) into ~/.platformio/packages/[email protected], replace the 2.5.11 files with the 2.6.4 files (I used symlinks) and adjusting the .poipm and package.json files.
Then to use.
Unfortunately referencing a git repo fails as the version number isn't in the expected format. (too many '.'s)
Beta Was this translation helpful? Give feedback.
All reactions