Programming SODAQ One with Atmel Studio, how?

I’m trying to upload sketches to the Sodaq one using Atmel Studio (via USB). Has anyone managed to get this to work?

I already configured an external tool inside Atmel Studio to upload sketches to the board using this command:
C:\Users\smithuan\AppData\Local\Arduino15\packages\arduino\tools\bossac\1.7.0\bossac.exe

with arguments:
-i -d --port=COM5 -U true -i -e -w -v $(TargetDir)$(TargetName).bin -R

From what I can see, it produces the same output as from the Arduino IDE when uploading sketches. However, the Sodaq One doesn’t seem to respond anymore after I uploaded a simple blink sketch (LED’s don’t blink, can’t tell what the board is doing otherwise).I can upload again using the Arduino IDE with no problems there, so I haven’t wiped the bootloader or anything by mistake :stuck_out_tongue:

I do need to manually put the sodaq board in bootloader mode to open up COM5 (the port used to program the board). Something I didn’t need to do with the Arduino IDE since it resets the COM port its connected to before uploading, opening up COM5.

Does someone got any idea’s where I might be doing something wrong?

Many thanks!

EDIT:
I figured it has nothing to do with uploading a sketch but is rather the compiling of the solution where stuff goes wrong. When I change my command to point to the bin file the Arduino IDE compiles, it uploads without any problem. So therefore it must be Atmel Studio isn’t compiling the sketch correctly.

Does someone have any experience compiling sketches using Atmel Studio?

Again, many thanks!

1 Like

Andres Smithuis

I have just got me first SODAQ ExpLoRer board today noon.

I spent many hours getting the Arduino IDE 1.8.4 to work.
Don’t like this IDE myself.

Time for all developers to move to Atmel Studio 7.

I will try myself to use it this week and give feedback if I have any luck.

I think it is strange that a key component for IoT uses this IDE as default.
Arduino IDE is not really the best in CLASS. It’s fine for starting but really poor for more advanced programming needs.

SODAQ engineers you all using Atmel IDE?
If YES, WHY?

All the best

Mark

Hey @Mark_Edgar,

You can use Visual Studio with Visual Micro or eclipse.

1 Like

Thanks, this is what I was going to try today.

Regards

Mark

Hi Mark,

I’ve managed to get Atmel Studio working with the SodaQ One board (both compiling and uploading). But it has been a series of hotfixes here and there. You can start a project with or without the Arduino Core, both need different steps. Fair warning though: A lot of SodaQ software is written on top of the Arduino Core, so if you want to get rid of Arduino entirely, you need to rewrite a lot of software.

Let me know if I can help you with something!

1 Like

Many thanks, this is what I get from the SoDaQ engineers.

Someone has to port the code. :sunglasses:

Would have been better for me, if they did it.
I am not funded so all my work is for FREE for the IoT community, including my A96 project.

It seems to me this company target audience is novice IoT, I guess they have picked the easy option.

Very strange for people to take the easy route.

I think we should be the BEST in CLASS for IoT as the IT industry has let us all down with very poor security.

Opinion only. $0.02 worth

I use Atom with PlatformIO. They have board support for all Sodaqs.
I’ve been having great success with it, and it also includes a debugger if you have the Atmel ICE or Segger JLink module.

1 Like

I succeed by modifying the file:
src\ASF\sam0\utils\linker_scripts\samd21\gcc\samd21j18a_flash.ld
changing the memories :slight_smile:

MEMORY
{
rom (rx) : ORIGIN = 0x00000000+0x2000, LENGTH = 0x00040000-0x2000
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000
}