# Support ATmega128 (MegaCore)

**URL:** <https://forum.xod.io/t/support-atmega128-megacore/1295>\
**Category:** Uncategorized\
**Created:** [October 29, 2018, 3:18pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295 "2018-10-29T15:18:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [October 29, 2018, 3:18pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/1 "2018-10-29T15:18:38Z")

</div>

hi @nkrkv, is ATmega128 supported?

> **[MCUdude/MegaCore](https://github.com/MCUdude/MegaCore)**
>
> Arduino hardware package for ATmega64, ATmega128, ATmega640, ATmega1280, ATmega1281, ATmega2560, ATmega2561, AT90CAN32, AT90CAN64 and AT90CAN128 - MCUdude/MegaCore

[https://mcudude.github.io/MegaCore/package\_MCUdude\_MegaCore\_index.json](https://mcudude.github.io/MegaCore/package_MCUdude_MegaCore_index.json)

Create a board.txt with url and add package, but then after requesting installation the following message appears

```auto
Installing Arduino dependencies... Error: package MegaCore not found 
Could not determine platform dependencies

`C:\Users\Cesar\AppData\Local\Programs\XOD IDE\resources\arduino-cli.exe 
--config-file=C:\Users\Cesar\AppData\Local\Temp\arduino-clikizXY7\.cli-config.yml 
core install MegaCore:avr` failed with code 4

```

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [October 29, 2018, 6:04pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/2 "2018-10-29T18:04:35Z")

</div>

Download and install the package manually, and after a few reboots when I thought it was not possible, there was 🤷‍♂️

Now to try

![atmega128%20(2)](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/8240a8e4bf7b4bb2584d2c08122b54d6f9623d44.png)

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [October 29, 2018, 8:35pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/3 "2018-10-29T20:35:46Z")

</div>

Wow! I did not know such boards exist… To be honest, I did not know about ATmega128 at all.

The URL you’ve mentioned should be put in `C:\Users\You\xod\ __packages__ \extra.txt`. Have you done it?

I’m not sure about the current status of your issue. I see you found the board in the Upload Dialog list. But have you succeeded with the upload itself?

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [October 29, 2018, 9:00pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/4 "2018-10-29T21:00:17Z")

</div>

> [@nkrkv](#):
>
> Wow! I did not know such boards exist… To be honest, I did not know about ATmega128 at all.

ATmega128 was the [Wiring](http://wiring.org.co), predecessor of Arduino.  
In reality I do not have the board, I have the chips alone and I wanted to use them.

I did not manage to download automatically, I had to create the folders manually and look for the link in the .json to download the latest version.

> [@nkrkv](#):
>
> The URL you’ve mentioned should be put in `C:\Users\You\xod\ __packages__ \extra.txt` . Have you done it?

**C:\Users\Cesar\AppData\Local\Programs\XOD IDE\resources\workspace\__packages_\_** I could not  
**C:\Users\Cesar\Documents\__packages_\_\packages\MegaCore** install here

 ![atmega128](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/c52129926acc611a94a6c9d25be3a92ffde2c914.png)

I have not tested yet, just that I have been duplicated and I could not eliminate, I will try to install XOD later

 ![atmega128](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/73315f52a1f198e9769b19720319b44b6c40f0b5.png)

---

<div class="post-metadata">

**Author:** ![nkrkv](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/nkrkv/32/8_2.png) [@nkrkv](https://forum.xod.io/u/nkrkv)\
**Post date:** [November 6, 2018, 8:13am UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/5 "2018-11-06T08:13:44Z")

</div>

Sorry for the late reply and thanks for the details. Something is messed up 😕

I cannot understanand the following statement:

> [@cesars](#):
>
> **C:\Users\Cesar\AppData\Local\Programs\XOD IDE\resources\workspace\_ _packages_ \_** I could not  
> **C:\Users\Cesar\Documents\_ _packages_ \_\packages\MegaCore** install here

Would you elaborate? What you did installed by hand and what’s was done automatically?

You should not touch `C:\Users\Cesar\AppData\Local\Programs\XOD IDE\...` since 0.25.0 because all packages now go directly to the current workspace which is usually `C:\Users\Cesar\xod` (but for some reason you have it pointing to `C:\Users\Cesar\Documents`).

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [November 6, 2018, 1:33pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/6 "2018-11-06T13:33:17Z")

</div>

something was wrong, i solved cleaning the installation and reinstalling.  
But I could not compile the file, it says not compatible 🤔

---

<div class="post-metadata">

**Author:** ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)\
**Post date:** [November 6, 2018, 2:10pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/7 "2018-11-06T14:10:12Z")

</div>

Hello, @cesars!  
Thanks for the report.

Could you describe a full step-by-step instruction how to reproduce the bug you get caught?

Also, please try to install this package “automatically” with XOD IDE.  
To avoid problems with broken workspace, try this on a new workspace or rename the ` __packages__ ` folder in your current workspace (or just delete it, but then you’ll have to reinstall packages).

Here are steps how to install additional packages within XOD IDE:

1. Open `YOUR_WORKSPACE/ __packages__ /extra.txt` file and put the link to the `package_*_index.json` file on the new line (one URL per line)
2. Open XOD IDE
3. Open Deploy dialog (Deploy -\> Upload to Arduino…)
4. Click “Update” button, next to the board select  
Then you’ll see new boards in the board list with a comment “(Not installed)”.
5. Choose one that you are interested in (“ATmega 128 (Not installed)”).
6. Click “Upload”  
You’ll see a snack bar message that package is missing with “Download & Install” button.
7. Click the “Download & Install” button and wait. You can watch the process in the “Deployment” pane in “Installer” tab.
8. After you see a message that package installed successfully, try to upload it as usual.

If something went wrong, please copy-paste errors that you get.  
Check out for errors here:

- Snack bar error message
- Errors in Deployment pane on “Compiler” or “Uploader” tabs
- Unhandled errors in the developers Inspector, “Console” tab (press “Ctrl+Shift+I” on Windows or “Cmd+Option+I” on MacOS)

---

<div class="post-metadata">

**Author:** ![brusher\_ru](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher_ru/32/12_2.png) [@brusher\_ru](https://forum.xod.io/u/brusher_ru)\
**Post date:** [November 6, 2018, 3:56pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/8 "2018-11-06T15:56:29Z")

</div>

By the way, I recommend to update XOD IDE to the latest 0.25.2 version before doing all this stuff 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [November 8, 2018, 3:56pm UTC](https://forum.xod.io/t/support-atmega128-megacore/1295/9 "2018-11-08T15:56:29Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
