Help Does import Arduino Sketch feature work for Arduino DUE in Atmel Studio 7!

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

I have spent days on this and am at my wits end.

 

I want to learn how to program a SAM3X8E processor (Arduino Due Board) with a little more control than the Arduino environment allows.

 

But I can't get the Atmel studio 7 to successfully build a sketch (even a blank sketch)

 

It seems like my Atmel Studio 7 will only build code that was targeted for the ATMEGA328P even though the Due is on the list of acceptable boards

 

I have tried using various combinations of arduino environments and versions of atmel Studio

 

It seems like there is some kind of path problem during the build. I got error messages about not being able to find chip.h. When I replaced these references with an absolute path these errors went away.

 

But I still have the following error messages

 

Severity    Code    Description    Project    File    Line
Error        cannot open linker script file flash_without_bootloader.ld: No such file or directory    blank165        1

 

Severity    Code    Description    Project    File    Line
Error        recipe for target 'blank165.elf' failed    blank165    c:\users\hessa59\Documents\Atmel Studio\7.0\blank165\blank165\blank165\Debug\Makefile    114

 

Severity    Code    Description    Project    File    Line
Error        ld returned 1 exit status    blank165    collect2.exe    0

 

Blank165 is the name of the original arduino file

 

 

 

I did a search of my system and I can't find the file flash_without_bootloader.ld

 

I have attached the makefile.

 

If anyone out there is successfully imported Arduino Due code to ATMEL Studio 7 please let me know what version of the Arduino environment you used.

 

 

 

 

 

 

Attachment(s): 

It is better to light a candle than curse the darkness.

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

Use sam3x8e_flash.ld instead of flash_without_bootloader.ld. Modify project settings Toolchain-ARM/GNU Linker-Miscelaneous-Linker Flags:-Tsam3x8e_flash.ld. If you have not this files, create dummy AtmelStudio project for ATSAM3x8E processor and copy all .ld files from project-cmis-linkerScripts to your project.