Show Posts
Pages: [1] 2
1  Development / Other Software Development / [Solved] Re: avrdude or bootloader problem with MEGA and binary > 32KB on: February 11, 2013, 02:46:48 pm
Hi All,

I solved my problem !

In the project Properties/C C++Build/Setting/AVR C Linker:
   Command line patern:
I replaced :
Code:
${COMMAND} ${FLAGS} -Wl,-u,vfprintf ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}
by
Code:
${COMMAND} --cref -s -Os ${OUTPUT_FLAG}${OUTPUT_PREFIX}${OUTPUT} ${INPUTS} -Wl,-u,vfprintf ${FLAGS}

But impossimple to upload again.

I the project Properties/C C++Build/Setting/AVR Compiler/Optimization/
   Other optimisation Flags: -ffunction-sections -fdata-sections

Same problem...

I the project Properties/C C++Build/Setting/AVR Compiler/Optimization/
Disabled :
[  ] Pack structs
[  ] Pack Short enums

I can to upload my program !

I do not understand exactly what's going on, but now it works

I found  this configuration here : http://playground.arduino.cc/Code/Eclipse

Thank for your attentions !

Nassarane.
2  Development / Other Software Development / Re: avrdude or bootloader problem with MEGA and binary > 32KB on: February 11, 2013, 10:28:58 am

Code:
[...]
avrdude.exe: Recv:
avrdude.exe: Send: . [1b] . [04] . [00] . [02] . [0e] . [03] . [92] . [82]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
             Hardware Version: 15
             Firmware Version: 2.10
avrdude.exe: Send: . [1b] . [05] . [00] . [02] . [0e] . [03] . [94] . [85]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
             Vtarget         : 0.0 V
avrdude.exe: Send: . [1b] . [06] . [00] . [02] . [0e] . [03] . [98] . [8a]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
             SCK period      : 0.1 us

avrdude.exe: Send: . [1b] . [07] . [00] . [0c] . [0e] . [10] . [c8] d [64] . [19]   [20] . [00] S [53] . [03] . [ac] S [53] ( [28] . [00] . [1c]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | avrdude.exe: Send: . [1b] . [08] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] 0 [30] . [00] . [00] . [00] 8 [38]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: Send: . [1b] . [09] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] 0 [30] . [00] . [01] . [00] 8 [38]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
################avrdude.exe: Send: . [1b] . [0a] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] 0 [30] . [00] . [02] . [00] 8 [38]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
################################## | 100% 0.01s

avrdude.exe: Device signature = 0x1e9801
avrdude.exe: Send: . [1b] . [0b] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] . [a0] . [0f] . [fc] . [00] X [58]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: Send: . [1b] . [0c] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] . [a0] . [0f] . [fd] . [00] ^ [5e]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: Send: . [1b] . [0d] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] . [a0] . [0f] . [fe] . [00] \ [5c]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: Send: . [1b] . [0e] . [00] . [08] . [0e] . [1d] . [04] . [04] . [00] . [a0] . [0f] . [ff] . [00] ^ [5e]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: reading input file "C:\ArduinoMega\MyProgram\Release\MyProgram.hex"
avrdude.exe: writing flash (32898 bytes):

Writing | avrdude.exe: Send: . [1b] . [0f] . [00] . [05] . [0e] . [06] . [80] . [00] . [00] . [00] . [99]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: Send: . [1b] . [10] . [01] . [0a] . [0e] . [13] . [01] . [00] . [c1] . [0a] @ [40] L [4c]   [20] . [00] . [00] . [0c] . [94] . [f4] . [0b] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] . [0c] . [94] . [15] . [0c] % [25] . [0c] + [2b] . [0c] 1 [31] . [0c] 7 [37] . [0c] = [3d] . [0c] C [43] . [0c] I [49] . [0c] S [53] . [0c] ] [5d] . [0c] g [67] . [0c] s [73] . [0c] y [79] . [0c] . [7f] . [0c] . [85] . [0c] : [3a]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: Send: . [1b] . [11] . [01] . [0a] . [0e] . [13] . [01] . [00] . [c1] . [0a] @ [40] L [4c]   [20] . [00] . [00] . [8b] . [0c] . [91] . [0c] . [97] . [0c] . [9d] . [0c] . [a3] . [0c] . [a9] . [0c] . [af] . [0c] . [b5] . [0c] . [ca] . [0c] . [cc] . [0c] . [ce] . [0c] . [d0] . [0c] . [d2] . [0c] . [d4] . [0c] . [d6] . [0c] . [d9] . [0c] . [e2] . [0c] . [e5] . [0c] . [e8] . [0c] . [ea] . [0c] . [ec] . [0c] . [ee] . [0c] . [f0] . [0c] . [f5] . [0c] . [fd] . [0c] . [05] . [0d] . [07] . [0d] . [0f] . [0d] . [16] . [0d] . [1c] . [0d] - [2d] . [0d] 3 [33] . [0d] 9 [39] . [0d] ? [3f] . [0d] E [45] . [0d] K [4b] . [0d] Q [51] . [0d] [ [5b] . [0d] e [65] . [0d] o [6f] . [0d] { [7b] . [0d] . [81] . [0d] . [87] . [0d] . [8d] . [0d] . [93] . [0d] . [99] . [0d] . [9f] . [0d] . [a5] . [0d] . [ab] . [0d] . [b1] . [0d] . [b7] . [0d] . [bd] . [0d] . [fb] . [1a] . [08] . [1b] Q [51] . [1a] . [1a] . [1f] . [f8] . [1a] . [19] . [1b] . [1c] . [1b] . [1f] . [1b] " [22] . [1b] % [25] . [1b] ( [28] . [1b] + [2b] . [1b] . [2e] . [1b] 1 [31] . [1b] 4 [34] . [1b] 7 [37] . [1b] : [3a] . [1b] = [3d] . [1b] @ [40] . [1b] C [43] . [1b] F [46] . [1b] I [49] . [1b] L [4c] . [1b] O [4f] . [1b] R [52] . [1b] U [55] . [1b] X [58] . [1b] [ [5b] . [1b] ^ [5e] . [1b] a [61] . [1b] d [64] . [1b] g [67] . [1b] j [6a] . [1b] m [6d] . [1b] p [70] . [1b] } [7d] . [1b] . [8a] . [1b] . [97] . [1b] . [9a] . [1b] . [9d] . [1b] . [a0] . [1b] . [a3] . [1b] . [a6] . [1b] . [1d] . [1f] . [a9] . [1b] . [a9] . [1b] . [a9] . [1b] . [b1] . [1b] . [c2] . [1b] . [1d] . [1f] . [11] ! [21] . [11] ! [21] . [11] ! [21] . [11] ! [21] . [f2] ! [21] . [9a] # [23] . [be] ! [21] . [9a] # [23] . [be] ! [21] . [9a] # [23] . [be] ! [21] . [9a] # [23] . [be] ! [21] . [9a] # [23] . [be] ! [21] ! [21] ! [21] ) [29] ! [21] 1 [31] ! [21] 9 [39] ! [21] X [58] ! [21] ` [60] ! [21] h [68] ! [21] v [76] ! [21] . [84] ! [21] . [9a] # [23] . [be] ! [21] . [9c]
avrdude.exe: Recv:
[...]
3  Development / Other Software Development / Re: avrdude or bootloader problem with MEGA and binary > 32KB on: February 11, 2013, 10:27:43 am

When I add -v -v -v -v option in avrdude command line :


Code:
avrdude.exe: Version 5.4-arduino, compiled on Oct 11 2007 at 19:12:32
             Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/

             System wide configuration file is "C:\AVR\arduino-0023\hardware\tools\avr\etc\avrdude.conf"

             Using Port            : \\.\COM6
             Using Programmer      : stk500v2
             Overriding Baud Rate  : 115200
avrdude.exe: ser_open(): setting dtr
avrdude.exe: Send: . [1b] . [01] . [00] . [01] . [0e] . [01] . [14]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: stk500v2_getsync(): found AVRISP programmer
             AVR Part              : ATMEGA2560
             Chip Erase delay      : 9000 us
             PAGEL                 : PD7
             BS2                   : PA0
             RESET disposition     : dedicated
             RETRY pulse           : SCK
             serial program mode   : yes
             parallel program mode : yes
             Timeout               : 200
             StabDelay             : 100
             CmdexeDelay           : 25
             SyncLoops             : 32
             ByteDelay             : 0
             PollIndex             : 3
             PollValue             : 0x53
             Memory Detail         :

                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               eeprom        65    10     8    0 no       4096    8      0  9000  9000 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               flash         65    10   256    0 yes    262144  256   1024  4500  4500 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               lfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               hfuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               efuse          0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               lock           0     0     0    0 no          1    0      0  9000  9000 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
                                      Block Poll               Page                       Polled
               Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
               ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
               signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

             Programmer Type : STK500V2
             Description     : Atmel STK500 Version 2.x firmware
             Programmer Model: AVRISP
avrdude.exe: Send: . [1b] . [02] . [00] . [02] . [0e] . [03] . [90] . [86]
avrdude.exe: Recv:
[...]
avrdude.exe: Recv:
avrdude.exe: Send: . [1b] . [03] . [00] . [02] . [0e] . [03] . [91] . [86]
avrdude.exe: Recv:

The following of this log in the next post...
4  Development / Other Software Development / avrdude or bootloader problem with MEGA and binary > 32KB on: February 11, 2013, 10:24:38 am
Hi,

I have a problem with my board avrdude and Arduino MEGA 2560.
Since my binary is supperior to 32000 bytes avrdude displays the following message:

Code:
avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude.exe: Device signature = 0x1e9801
avrdude.exe: reading input file "C:\ArduinoMega\MyProgram\Release\MyProgram.hex"
avrdude.exe: writing flash (32898 bytes):

Writing | avrdude.exe: stk500_2_ReceiveMessage(): timeout
avrdude.exe: stk500_2_ReceiveMessage(): timeout
avrdude.exe: stk500_2_ReceiveMessage(): timeout
avrdude.exe: stk500_2_ReceiveMessage(): timeout
...

I use eclipse JUNO and WINAVR tool chain.
My command line to upload this MyProgram is :
Code:
C:\arduino-0023\hardware\tools\avr\bin\avrdude.exe -CC:\arduino-0023\hardware\tools\avr\etc\avrdude.conf -patmega2560 -cstk500v2 -P\\.\COM6 -b115200 -D -Uflash:w:${workspace_loc}\${project_name}\Release\${project_name}.hex:i

But if I try to upload a small binary with the same avrdude command line, no problem to upload !

Anyone knows this problem ?

Thank.

Nassarane.
5  Products / Arduino Due / Re: No device found on COM5 with Bossac on Winwdows 7 on: January 10, 2013, 04:44:41 pm

Not necessary to set your com port with this sript :

Code:
@mode %2:1200
@sleep 1
@C:\arduino-1.5.1r2\hardware\tools\bossac.exe %*

Nassa.
6  Products / Arduino Due / Re: [Q]: Tailoring the Due to Eclipse.. on: January 10, 2013, 04:43:59 pm

Not necessary to set your com port with this script :

Code:
@mode %2:1200
@sleep 1
@C:\arduino-1.5.1r2\hardware\tools\bossac.exe %*

Nassa.
7  Products / Arduino Due / Re: [Q]: Tailoring the Due to Eclipse.. on: January 10, 2013, 04:18:37 pm

Oops : you can use this simplified command line :
Code:
@mode com5:1200
@sleep 1
@C:\arduino-1.5.1r2\hardware\tools\bossac.exe %*

Nassa.
8  Products / Arduino Due / Re: No device found on COM5 with Bossac on Winwdows 7 on: January 10, 2013, 04:15:40 pm

Oops : you can use this simplified command line :
Code:
@mode com5:1200
@sleep 1
@C:\arduino-1.5.1r2\hardware\tools\bossac.exe %*

Nassa.
9  Products / Arduino Due / Re: No device found on COM5 with Bossac on Winwdows 7 on: January 10, 2013, 04:13:01 pm
Hi,

Here's a script for Windows to send erase flash request and upload program :
Code:
@mode com5:1200,n,8,1
@sleep 1
@C:\arduino-1.5.1r2\hardware\tools\bossac.exe %*

Copy this MS-DOS script in the "upload.bat" file and replace bossac.exe by upload.bat in your Eclipse External Tools.
(Here, it is the com5 is used, change the value and the bossac path if necessary)

Nassa.
10  Products / Arduino Due / Re: [Q]: Tailoring the Due to Eclipse.. on: January 10, 2013, 03:26:40 pm
Hi Zad,

It is not necessary to use a JAVA program to request the flash erasing.

Here's a batch for Windows to send erase flash request and upload program :
Code:
@mode com5:1200,n,8,1
@sleep 1
@C:\arduino-1.5.1r2\hardware\tools\bossac.exe %*

Copy this MS-DOS program in the "upload.bat" file and replace bossac.exe by upload.bat in your Eclipse External Tools.
(Here, it is the com5 is used, change the value and the bossac path if necessary)

You can find the equivalent for OSX / Linux.

Nassa.
11  Products / Arduino Due / Re: [Q]: Tailoring the Due to Eclipse.. on: January 09, 2013, 05:28:33 pm


The sketch compilation is :
Code:
C:\ARM\arduino-1.5.1r2\hardware\tools\g++_arm_none_eabi\bin\arm-none-eabi-g++
-c -g -Os -w
-ffunction-sections
-fdata-sections
-nostdlib
--param max-inline-insns-single=500
-fno-rtti
-fno-exceptions
-Dprintf=iprintf
-mcpu=cortex-m3
-DF_CPU=84000000L
-DARDUINO=151
-D__SAM3X8E__
-mthumb
-DUSB_PID=0x003e
-DUSB_VID=0x2341
-DUSBCON
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/libsam
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/CMSIS/CMSIS/Include/
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/CMSIS/Device/ATMEL/
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\cores\arduino
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\variants\arduino_due_x Blink.cpp -o Blink.cpp.o

The Arduino core compilation for C file
Code:
command:C:\ARM\arduino-1.5.1r2\hardware\tools\g++_arm_none_eabi\bin\arm-none-eabi-gcc
-c -g -Os -w
-ffunction-sections
-fdata-sections
-nostdlib
--param max-inline-insns-single=500
-Dprintf=iprintf
-mcpu=cortex-m3
-DF_CPU=84000000L
-DARDUINO=151
-D__SAM3X8E__
-mthumb
-DUSB_PID=0x003e
-DUSB_VID=0x2341
-DUSBCON
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/libsam
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/CMSIS/CMSIS/Include/
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/CMSIS/Device/ATMEL/
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\cores\arduino
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\variants\arduino_due_x
C:\ARM\arduino-1.5.1r2\hardware\arduino\sam\cores\arduino\cortex_handlers.c -o cortex_handlers.c.o

The Arduino core compilation for C++ file :
Code:
command:C:\ARM\arduino-1.5.1r2\hardware\tools\g++_arm_none_eabi\bin\arm-none-eabi-g++
-c -g -Os -w
-ffunction-sections
-fdata-sections
-nostdlib
--param max-inline-insns-single=500
-fno-rtti
-fno-exceptions
-Dprintf=iprintf
-mcpu=cortex-m3
-DF_CPU=84000000L
-DARDUINO=151
-D__SAM3X8E__
-mthumb
-DUSB_PID=0x003e                                                                             
-DUSB_VID=0x2341
-DUSBCON
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/libsam
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/CMSIS/CMSIS/Include/
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\system/CMSIS/Device/ATMEL/
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\cores\arduino
-IC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\variants\arduino_due_x
C:\ARM\arduino-1.5.1r2\hardware\arduino\sam\cores\arduino\cxxabi-compat.cpp -o cxxabi-compat.cpp.o

Lib building :
Code:
command:C:\ARM\arduino-1.5.1r2\hardware\tools\g++_arm_none_eabi\bin\arm-none-eabi-ar
rcs
C:\Users\XXX\AppData\Local\Temp\build3490308093235427635.tmp/core.a
cortex_handlers.c.o

Link :
Code:
command:C:\ARM\arduino-1.5.1r2\hardware\tools\g++_arm_none_eabi\bin\arm-none-eabi-g++
-Os
-Wl,--gc-sections
-mcpu=cortex-m3
-TC:\ARM\arduino-1.5.1r2\hardware\arduino\sam\variants\arduino_due_x/linker_scripts/gcc/flash.ld
-Wl,-Map,C:\Users\XXX\AppData\Local\Temp\build3490308093235427635.tmp/Blink.cpp.map
-o C:\Users\XXX\AppData\Local\Temp\build3490308093235427635.tmp/Blink.cpp.elf
-LC:\Users\XXX\AppData\Local\Temp\build3490308093235427635.tmp
-lm
-lgcc
-mthumb
-Wl,--cref
-Wl,--check-sections
-Wl,--gc-sections
-Wl,--entry=Reset_Handler
-Wl,--unresolved-symbols=report-all
-Wl,--warn-common
-Wl,--warn-section-align
-Wl,--warn-unresolved-symbols
-Wl,--start-group
C:\Users\XXX\AppData\Local\Temp\build3490308093235427635.tmp/syscalls_sam3.c.o
Blink.cpp.o
C:\ARM\arduino-1.5.1r2\hardware\arduino\sam\variants\arduino_due_x/libsam_sam3x8e_gcc_rel.a
C:\Users\XXX\AppData\Local\Temp\build3490308093235427635.tmp/core.a -Wl,--end-group

Binary file :
Code:
command:C:\ARM\arduino-1.5.1r2\hardware\tools\g++_arm_none_eabi\bin\arm-none-eabi-objcopy
-O binary
C:\Users\XXX\AppData\Local\Temp\build3490308093235427635.tmp/Blink.cpp.elf
C:\Users\XXX\AppData\Local\Temp\build3490308093235427635.tmp/Blink.cpp.bin

This is a command line used by ArduinoDue IDE.

Nassa.
12  Products / Arduino Due / Re: [Q]: Tailoring the Due to Eclipse.. on: January 09, 2013, 05:11:31 pm
Very good Job Zad,

I was just doing the same job ...

13  Products / Arduino Due / Re: [Q]: Tailoring the Due to Eclipse.. on: January 09, 2013, 02:41:44 pm
Hi Zad,

What file .h .c .cpp the ARDUINO define is it used, I don't found it ?

I resolved my Bossac problem last night in this topic : http://arduino.cc/forum/index.php/topic,141628.0.html

I used the terminal to erase the memory of the MCU :
 - I open the terminal from eclipse.
 - I close the terminal from eslipse.
 - I launch the Bossac command line from eclipse.

The software upload running...

Thanks very much Zad.

Nassa.

14  Products / Arduino Due / Re: No device found on COM5 with Bossac on Winwdows 7 on: January 08, 2013, 07:04:45 pm
Thanks very much Palliser,

I found the interesting information on the Arduino Due web page :

http://arduino.cc/en/Main/ArduinoBoardDue

Quote
+ Programming port: To use this port, select "Arduino Due (Programming Port)" as your board in the Arduino IDE. Connect the Due's programming port (the one closest to the DC power jack) to your computer. The programming port uses the 16U2 as a USB-to-serial chip connected to the first UART of the SAM3X (RX0 and TX0). The 16U2 has two pins connected to the Reset and Erase pins of the SAM3X. Opening and closing the Programming port connected at 1200bps triggers a “hard erase” procedure of the SAM3X chip, activating the Erase and Reset pins on the SAM3X before communicating with the UART. This is the recommended port for programming the Due. It is more reliable than the "soft erase" that occurs on the Native port, and it should work even if the main MCU has crashed.

Thanks.

Nassa.

15  Products / Arduino Due / Re: No device found on COM5 with Bossac on Winwdows 7 on: January 08, 2013, 05:34:44 pm
Palliser, thanks very much for your help !

I erased and reset your my board and I relaunch my commad line.
The messages displayed are :
Code:
Erase flash
Write 9748 bytes to flash
[==============================] 100% (39/39 pages)
Verify 9748 bytes of flash
[==============================] 100% (39/39 pages)
Verify successful
Set boot flash true
CPU reset.

The program uploaded is running correctly ! Yes !

But if I try to relaunch my command line, It doesn't work !!!
I must erase and reset my board before upload my program...

But, I don't understand why the message displayed is different of Arduino IDE:
Code:
Erase flash
Write 9748 bytes to flash

[                              ] 0% (0/39 pages)
[=======                       ] 25% (10/39 pages)
[===============               ] 51% (20/39 pages)
[=======================       ] 76% (30/39 pages)
[==============================] 100% (39/39 pages)
Verify 9748 bytes of flash

[                              ] 0% (0/39 pages)
[=======                       ] 25% (10/39 pages)
[===============               ] 51% (20/39 pages)
[=======================       ] 76% (30/39 pages)
[==============================] 100% (39/39 pages)
Verify successful
Set boot flash true
CPU reset.

And why I must erase and reset my board each time I want to upload a program ?

Thanks.

Nassa.
Pages: [1] 2