$ /home/tux/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino/bossac --port=ttyACM0 --info -e -w -v -b Project1.bin -R
Atmel SMART device 0x285e0a60 found
Device : ATSAM3X8
Chip ID : 285e0a60
Version : v1.1 Dec 15 2010 19:25:04
Address : 524288
Pages : 2048
Page Size : 256 bytes
Total Size : 512KB
Planes : 2
Lock Regions : 32
Locked : none
Security : false
Boot Flash : false
Erase flash
done in 0.033 seconds
Write 980 bytes to flash (4 pages)
Gleitkomma-Ausnahme (Speicherabzug geschrieben)
try 0x00080000, looks like a promising start for experiments....
-WpATSAM3X8E
-k-Ttext=0x00080000
Unfortunately, nothing has changed.$ /home/tux/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino/bossac --port=ttyACM0 --info -e -w -v -b test.hex -R
Atmel SMART device 0x285e0a60 found
Device : ATSAM3X8
Chip ID : 285e0a60
Version : v1.1 Dec 15 2010 19:25:04
Address : 524288
Pages : 2048
Page Size : 256 bytes
Total Size : 512KB
Planes : 2
Lock Regions : 32
Locked : none
Security : false
Boot Flash : false
Erase flash
done in 0.033 seconds
Write 2893 bytes to flash (12 pages)
[==============================] 100% (12/12 pages)
done in 0.573 seconds
Verify 2893 bytes of flash
[==============================] 100% (12/12 pages)
Verify successful
done in 0.545 seconds
Set boot flash true
CPU reset.
Nothing happens there, except that I have to reset the Com-Port, who I upload from the Arduino IDE.Part of the problem may be that bossac (I think) only supports bin files, when I write a hey file the flash memory looks like it is filled with the ascii chars of the hex file.Funnily enough, he even uploads a Project.pas %)
From the looks of it, a DUE is a pretty annoying part.
./bossash
Press Ctrl-D or enter "exit" to end session.
Enter "help" to display a command list.
bossa> connect /dev/cu.usbmodem14401
Connected to device on /dev/cu.usbmodem14401
bossa> dump 0x80000 0x8
0 1 2 3 4 5 6 7 8 9 a b c d e f
00080000 | ff ff ff ff ff ff ff ff | ��������
bossa> write Project1.bin
Write 541 bytes to flash (3 pages)
[==============================] 100% (3/3 pages)
Write successful
bossa> dump 0x80000 0x10
0 1 2 3 4 5 6 7 8 9 a b c d e f
00080000 | 00 00 01 20 91 01 08 00 8d 01 08 00 00 00 00 00 | ... ............
bossa> bootf true
Boot to flash flag set to true
bossa> options
bossa> reset
st-flash write stm32Blink.bin 0x8000000
When I look at the following file in the FPC sources, line 1024, the DUO also has a flasbase value.$ /home/tux/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino/bossac --port=ttyACM0 -U false -e -w -v -b /tmp/arduino_build_309523/Blink.ino.bin -R
Atmel SMART device 0x285e0a60 found
Erase flash
done in 0.037 seconds
Write 11864 bytes to flash (47 pages)
[==============================] 100% (47/47 pages)
done in 2.294 seconds
Verify 11864 bytes of flash
[==============================] 100% (47/47 pages)
Verify successful
done in 2.122 seconds
Set boot flash true
CPU reset.
Project.bin:/n4800/DATEN/Programmierung/Lazarus/Tutorials/Embedded/ARM/Arduino_DUE/von_MIR$ /home/tux/.arduino15/packages/arduino/tools/bossac/1.6.1-arduino/bossac --port=ttyACM0 -U false -e -w -v -b /n4800/DATEN/Programmierung/Lazarus/Tutorials/Embedded/ARM/Arduino_DUE/von_MIR/Project1.bin -R
Atmel SMART device 0x285e0a60 found
Erase flash
done in 0.037 seconds
Write 552 bytes to flash (3 pages)
Gleitkomma-Ausnahme (Speicherabzug geschrieben)
xxx/BOSSA-1.7.0/bin/bossac -e -w -v -b Project1.bin -R
Version 1.7 has the disadvantage that there is no precompiled x64 version for Mac available.I have tested the 1.8, only an uninclusive error message.
So if you you look for doing something that benefits everybody then 1.8 is the minimum version.
$ /n4800/DATEN/Programmierung/Lazarus/Tutorials/Embedded/bossac/BOSSA-1.8.0/bin/bossac --port=ttyACM0 -i
SAM-BA operation failed
With the 1.7, the information from the CPU comes here.I also observed something. I wrote yesterday. That with the current removal of the DUE, the program no longer starts.
But when I switched on the PC earlier, the LED was blinking.
Let's see if it will be the same next time.
[quote]What is also strange, if I try to upload the "am" from Arduino with bossac 1.9.1, it doesn't work either.[/quote]
With the 1.9.1 it also works halfway. You simply have to press the reset button after each upload.
Unfortunately, you also have to do this if you disconnect the DUE from the power supply and reconnect it. Which of course is stupid, you want the program to start immediately if there is a power failure.
By the way, my Linux Mint comes with bossac 1.9.1 by default, you just have to install it as follows:
[codel]sudo apt-get install bossac
/bin/bossac -e -b -s -R -v -w Project1.bin