Importing Arduino Sketch to Atmel studio built on MiniCore - ATmega328PB

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

 

I'm trying to use Atmel Studio 7.0.1931 to import an Arduino sketch that I built using the MiniCore project on an ATmega328PB

 

The project builds and compiles properly in the Arduino IDE.

 

When I try to import the project to Atmel Studio, I get an error stating that the project "contains a device " which is not supported by Atmel Studio."  See video:

 

[Trying to import ATmega328PB MiniCore Arduino project into Atmel Studio](https://youtu.be/GzcRKkcIa-c)

 

I have tried simply selecting "Arduino Uno" and selecting 328P as the import MCU.  That works fine.  I then replaced all of the files in the "Arduino Core" folder structure that Atmel Studio creates within the project with the core files from the ATmega328PB MiniCore source files.  This causes problems however, I think due to the toolchain/compiler settings that Atmel Studios configures for the original Arduino Uno target.  See video:

 

[Trying to import ATmega328PB MiniCore Arduino project into Atmel Studio](https://youtu.be/GzcRKkcIa-c)

 

I love the smell of burning silicon in the morning

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sounds like you are trying to do something that the AS7 import system was never designed to achieve.

 

BTW I do wonder why you'd want to import it anyway - is this just about getting access to an ICE debugger?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A few other reasons other than debugging:

 

Goto Implementation functionality for jumping to source/header files in both Arduino core and avrlibc

- GUI for programming memories, fuse bits, and creating production firmware files (i.e. EEPROM, bootloader, fuse bits, and app for manufacturing production line)

- Auto-completion of register names and register bits

 

I opened a ticket for this issue in the MiniCore project:

 

https://github.com/MCUdude/MiniC...

 

From Hans from that issue:

 

Anyways I'm pretty sure Atmel studio don't support MiniCore. Personally I'm using Visual Micro when using MiniCore with Atmel Studio.

Anyone else have any experience using Visual Micro and MiniCore on Atmel studio?  What are the "gotchas" to be aware of here?

I love the smell of burning silicon in the morning

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Be warned Visual Micro is very pernicious. It put the "nag" into "nagware" !

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

1) Can you share the screenshot of the Import dialog (where you select the board and device) from Atmel Studio? 

2) Also share the boards.txt file for the board package that you have installed in Arduino? 

 

Regards,

Charles

Last Edited: Wed. Jul 18, 2018 - 09:50 AM