Loading...
  Show Posts
Pages: 1 2 [3] 4 5
31  International / Italiano / Re: In AVRStudio 5.1 Error1bad -rpath option Risolto on: April 29, 2012, 04:11:16 am
Ho risolto rifacendo tutta la configurazione da zero quindi non so cosa era che non andava.Nel fratempo ho dovuto risolvere un problema che mi bloccava tutte le porte USB non riconoscendo nessun dispositivo sia in seven che un ubuntu 11.04.Tutto si e ripristinato togliendo un mouse senza fili "Pleomax".
32  International / Italiano / In AVRStudio 5.1 Error1bad -rpath option on: April 27, 2012, 11:34:21 am
Ho seguito la guida fatta da QuercusPetrea e penso di non aver fatto degli errori.Quando provo a fare "Bouild solution" mi dada l'errore "Error   1   bad -rpath option   " l' output completo è :
Code:
------ Build started: Project: DS18B20_example, Configuration: Debug AVR ------
Build started.
Project "DS18B20_example.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\AVR Studio 5.1\Vs\Compiler.targets" from project "D:\AvrStudio\Progetti\DS18B20_example\DS18B20_example\DS18B20_example.cppproj" (target "Build" depends on it):
Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\AVR Studio 5.1\Vs\Compiler.Task.dll".
Task "RunCompilerTask"
C:\Program Files (x86)\Atmel\AVR Studio 5.1\make\make.exe all
Building target: DS18B20_example.elf
Invoking: AVR8/GNU C++ Linker
"C:\Program Files (x86)\Atmel\AVR Studio 5.1\extensions\Atmel\AVRGCC\3.3.1.27\AVRToolchain\bin\avr-g++.exe" -o DS18B20_example.elf  DallasTemperature.o OneWire.o DS18B20_example.o   -Wl,-Map="DS18B20_example.map" -Wl,-lm  -Wl,-L"D:\ArduStudio\libcore-0023"  -Wl,--gc-sections -Wl,-icore  -mmcu=atmega328p 
D:\AvrStudio\Progetti\DS18B20_example\DS18B20_example\Debug(1,1):Ho seguito la guida fatta da QuercusPetrea e penso di non aver fatto degli errori.Quando provo a fare "Bouild solution" mi dada l'errore "Error 1 bad -rpath option " l' output completo è :
[code]
------ Build started: Project: DS18B20_example, Configuration: Debug AVR ------
Build started.
Project "DS18B20_example.cppproj" (default targets):
Target "PreBuildEvent" skipped, due to false condition; ('$(PreBuildEvent)'!='') was evaluated as (''!='').
Target "CoreBuild" in file "C:\Program Files (x86)\Atmel\AVR Studio 5.1\Vs\Compiler.targets" from project "D:\AvrStudio\Progetti\DS18B20_example\DS18B20_example\DS18B20_example.cppproj" (target "Build" depends on it):
Using "RunCompilerTask" task from assembly "C:\Program Files (x86)\Atmel\AVR Studio 5.1\Vs\Compiler.Task.dll".
Task "RunCompilerTask"
C:\Program Files (x86)\Atmel\AVR Studio 5.1\make\make.exe all
Building target: DS18B20_example.elf
Invoking: AVR8/GNU C++ Linker
"C:\Program Files (x86)\Atmel\AVR Studio 5.1\extensions\Atmel\AVRGCC\3.3.1.27\AVRToolchain\bin\avr-g++.exe" -o DS18B20_example.elf  DallasTemperature.o OneWire.o DS18B20_example.o   -Wl,-Map="DS18B20_example.map" -Wl,-lm  -Wl,-L"D:\ArduStudio\libcore-0023"  -Wl,--gc-sections -Wl,-icore  -mmcu=atmega328p 
D:\AvrStudio\Progetti\DS18B20_example\DS18B20_example\Debug(1,1): bad -rpath option
collect2: ld returned 1 exit status
make: *** [DS18B20_example.elf] Error 1
Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "DS18B20_example.cppproj" -- FAILED.
Done building project "DS18B20_example.cppproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

Spero che qualcuno mi possa dare una dritta
grazzie Tecnico

      collect2: ld returned 1 exit status
      make: *** [DS18B20_example.elf] Error 1
   Done executing task "RunCompilerTask" -- FAILED.
Done building target "CoreBuild" in project "DS18B20_example.cppproj" -- FAILED.
Done building project "DS18B20_example.cppproj" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

[/code]
Spero che qualcuno mi possa dare una dritta
grazzie Tecnico
33  International / Italiano / Re: Due info sul ambiente di sviluppo on: January 30, 2012, 03:56:26 pm
Quando vuoi compilare o upload  premi anche il tasto shift e nella finestra degli errori ti compaiono i comandi in modo verbose e puoi capire cosa succede.
Tecno
34  International / Italiano / Re: programmare arduino con netbeans on: January 07, 2012, 03:04:58 pm
@MauroTec ho fatto come tu mi hai suggerito ed ha funzionato a meraviglia.
se a qualcuno può interessare do il link che ho seguito per configurare netbeans
http://vpicot.fr/tutoriels/87-plugins-arduino-022-pour-netbeans-701
ringrazio tutti per il tempo dedicatomi quindi penso che la discussione può essere chiusa
35  International / Italiano / Re: programmare arduino con netbeans on: January 07, 2012, 01:31:44 pm
ho modifcato il makefile cosi:
Code:
TARGET = $(notdir $(CURDIR))
# Change this to match your arduino installation directory
INSTALL_DIR = /home/void/arduino-0022
PORT = /dev/ttyUSB0
UPLOAD_RATE = 57600
AVRDUDE_PROGRAMMER = arduino
MCU = atmega328p
F_CPU = 16000000

VERSION=22
ARDUINO = $(INSTALL_DIR)/hardware/arduino/cores/arduino
ARDUINO_LIB = $(INSTALL_DIR)/libraries
AVR_TOOLS_PATH = /usr/bin
AVRDUDE_PATH = /usr/bin


ma mi da il seguente risultato:
Code:
/usr/bin/avrdude -V -F -C /home/void/arduino-0022/hardware/tools/avrdude.conf -p atmega328p -P /dev/ttyUSB0 -c arduino -b 57600 -U flash:w:Tastiera.hex

avrdude: Can't find programmer id "arduino"

Valid programmers are:
  dasa3    = serial port banging, reset=!dtr sck=rts mosi=txd miso=cts [/home/void/arduino-0022/hardware/tools/avrdude.conf:776]
  dasa     = serial port banging, reset=rts sck=dtr mosi=txd miso=cts [/home/void/arduino-0022/hardware/tools/avrdude.conf:763]
  siprog   = Lancos SI-Prog <http://www.lancos.com/siprogsch.html> [/home/void/arduino-0022/hardware/tools/avrdude.conf:750]
  ponyser  = design ponyprog serial, reset=!txd sck=rts mosi=dtr miso=cts [/home/void/arduino-0022/hardware/tools/avrdude.conf:737]
  frank-stk200 = Frank STK200                   [/home/void/arduino-0022/hardware/tools/avrdude.conf:702]
  blaster  = Altera ByteBlaster             [/home/void/arduino-0022/hardware/tools/avrdude.conf:689]
  ere-isp-avr = ERE ISP-AVR <http://www.ere.co.th/download/sch050713.pdf> [/home/void/arduino-0022/hardware/tools/avrdude.conf:679]
  atisp    = AT-ISP V1.1 programming cable for AVR-SDK1 from <http://micro-research.co.th/>  [/home/void/arduino-0022/hardware/tools/avrdude.conf:669]
  dapa     = Direct AVR Parallel Access cable [/home/void/arduino-0022/hardware/tools/avrdude.conf:658]
  xil      = Xilinx JTAG cable              [/home/void/arduino-0022/hardware/tools/avrdude.conf:645]
  futurlec = Futurlec.com programming cable. [/home/void/arduino-0022/hardware/tools/avrdude.conf:628]
  abcmini  = ABCmini Board, aka Dick Smith HOTCHIP [/home/void/arduino-0022/hardware/tools/avrdude.conf:618]
  picoweb  = Picoweb Programming Cable, http://www.picoweb.net/ [/home/void/arduino-0022/hardware/tools/avrdude.conf:608]
  sp12     = Steve Bolt's Programmer        [/home/void/arduino-0022/hardware/tools/avrdude.conf:597]
  alf      = Nightshade ALF-PgmAVR, http://nightshade.homeip.net/ [/home/void/arduino-0022/hardware/tools/avrdude.conf:581]
  bascom   = Bascom SAMPLE programming cable [/home/void/arduino-0022/hardware/tools/avrdude.conf:571]
  dt006    = Dontronics DT006               [/home/void/arduino-0022/hardware/tools/avrdude.conf:561]
  pony-stk200 = Pony Prog STK200               [/home/void/arduino-0022/hardware/tools/avrdude.conf:549]
  stk200   = STK200                         [/home/void/arduino-0022/hardware/tools/avrdude.conf:533]
  bsd      = Brian Dean's Programmer, http://www.bsdhome.com/avrdude/ [/home/void/arduino-0022/hardware/tools/avrdude.conf:522]
  pavr     = Jason Kyle's pAVR Serial Programmer [/home/void/arduino-0022/hardware/tools/avrdude.conf:514]
  dragon_dw = Atmel AVR Dragon in debugWire mode [/home/void/arduino-0022/hardware/tools/avrdude.conf:507]
  dragon_hvsp = Atmel AVR Dragon in HVSP mode  [/home/void/arduino-0022/hardware/tools/avrdude.conf:499]
  dragon_pp = Atmel AVR Dragon in PP mode    [/home/void/arduino-0022/hardware/tools/avrdude.conf:491]
  dragon_isp = Atmel AVR Dragon in ISP mode   [/home/void/arduino-0022/hardware/tools/avrdude.conf:483]
  dragon_jtag = Atmel AVR Dragon in JTAG mode  [/home/void/arduino-0022/hardware/tools/avrdude.conf:475]
  jtag2dw  = Atmel JTAG ICE mkII in debugWire mode [/home/void/arduino-0022/hardware/tools/avrdude.conf:467]
  jtag2isp = Atmel JTAG ICE mkII in ISP mode [/home/void/arduino-0022/hardware/tools/avrdude.conf:459]
  jtag2    = Atmel JTAG ICE mkII   
   [/home/void/arduino-0022/hardware/tools/avrdude.conf:451]
  jtag2fast = Atmel JTAG ICE mkII       [/home/void/arduino-0022/hardware/tools/avrdude.conf:443]
  jtag2slow = Atmel JTAG ICE mkII     [/home/void/arduino-0022/hardware/tools/avrdude.conf:435]
  jtagmkII = Atmel JTAG ICE mkII        [/home/void/arduino-0022/hardware/tools/avrdude.conf:427]
  jtag1slow = Atmel JTAG ICE (mkI)    [/home/void/arduino-0022/hardware/tools/avrdude.conf:420]
  jtag1    = Atmel JTAG ICE (mkI)        [/home/void/arduino-0022/hardware/tools/avrdude.conf:412]
  jtagmkI  = Atmel JTAG ICE (mkI)    [/home/void/arduino-0022/hardware/tools/avrdude.conf:404]
  avr911   = Atmel AppNote AVR911 AVROSP    [/home/void/arduino-0022/hardware/tools/avrdude.conf:398]
  avr109   = Atmel AppNote AVR109 Boot Loader [/home/void/arduino-0022/hardware/tools/avrdude.conf:392]
  butterfly = Atmel Butterfly Development Board [/home/void/arduino-0022/hardware/tools/avrdude.conf:386]
  usbtiny  = USBtiny simple USB programmer  [/home/void/arduino-0022/hardware/tools/avrdude.conf:380]
  usbasp   = USBasp, http://www.fischl.de/usbasp/ [/home/void/arduino-0022/hardware/tools/avrdude.conf:374]
  avr910   = Atmel Low Cost Serial Programmer [/home/void/arduino-0022/hardware/tools/avrdude.conf:368]
  stk500hvsp = Atmel STK500 V2 in high-voltage serial programming mode [/home/void/arduino-0022/hardware/tools/avrdude.conf:362]
  stk500pp = Atmel STK500 V2 in parallel programming mode [/home/void/arduino-0022/hardware/tools/avrdude.conf:356]
  stk500v2 = Atmel STK500 Version 2.x firmware [/home/void/arduino-0022/hardware/tools/avrdude.conf:350]
  stk500v1 = Atmel STK500 Version 1.x firmware [/home/void/arduino-0022/hardware/tools/avrdude.conf:344]
  stk500   = Atmel STK500                   [/home/void/arduino-0022/hardware/tools/avrdude.conf:338]
  avrisp2  = Atmel AVR ISP mkII             [/home/void/arduino-0022/hardware/tools/avrdude.conf:328]
  avrispmkII = Atmel AVR ISP mkII             [/home/void/arduino-0022/hardware/tools/avrdude.conf:322]
  avrispv2 = Atmel AVR ISP V2               [/home/void/arduino-0022/hardware/tools/avrdude.conf:316]
  avrisp   = Atmel AVR ISP                  [/home/void/arduino-0022/hardware/tools/avrdude.conf:310]

make: *** [upload] Errore 1

tutto questo netbeans perche dal ide arduino tutto funziona correttamente
36  International / Italiano / Re: programmare arduino con netbeans on: January 07, 2012, 12:45:01 pm
ho sbagliato a premere un pulsante volevo fare preview.
ho cercato di allegare il file makefile ma inserisco una porzione
Code:

TARGET = $(notdir $(CURDIR))
# Change this to match your arduino installation directory
INSTALL_DIR = /home/void/arduino-0022
PORT = /dev/ttyUSB0
UPLOAD_RATE = 57600
AVRDUDE_PROGRAMMER = stk500
MCU = atmega328p
F_CPU = 16000000

VERSION=22
ARDUINO = $(INSTALL_DIR)/hardware/arduino/cores/arduino
ARDUINO_LIB = $(INSTALL_DIR)/libraries
AVR_TOOLS_PATH = /usr/bin
AVRDUDE_PATH = $(INSTALL_DIR)/hardware/tools

per far vedere il debug di arduino basta shift insieme upload e nella finestra si vedono tutti i comandi.
Avrdude ho installato la versione avrdude version 5.10 nella directory /usr/bin
ho provato a prendere il seguente comando e modificandolo per il file blink.hex che altro non è il file hex di blink generato da netbeans
37  International / Italiano / Re: programmare arduino con netbeans on: January 07, 2012, 12:05:06 pm
@ Leo ho gia messo più volte arduino come programmatore.
Io sto cercando di programmare la board 2009 con avrdue tramite il seguente makefile:
Code:

38  International / Italiano / Re: programmare arduino con netbeans on: January 07, 2012, 11:50:18 am
@ MauroTec
il sistema è linux ubuntu 11.0 , arduino 2009 e ide che uso è la 0022 perchè è quella con cui è stato fatto il pluing di netbeans.
La programmazione di arduino tramite l'Ide 0022 funziona perfettamente,dal file boards.txt ho ricavato questi dati:
 programmer stk500
 mcu=atmega328p
 f_cpu=16000000L
 upload.speed=57600

@ la prova di impostare come programmatore arduino ma mi ha dato programmatore sconosciuto
 
con questo comando dato in Terminale mi da il seguente risultato
Code:
void@AMD2:/$ /home/void/arduino-0022/hardware/tools/avrdude -V -F -C /home/void/arduino-0022/hardware/tools/avrdude.conf -p atmega328p -P /dev/ttyUSB0 -c stk500  -b 57600 -U flash:w:Tastiera.hex

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
avrdude: stk500_2_ReceiveMessage(): timeout
^C
void@AMD2:/$

la stessa cosa succede se dal ide netbeans do il comando make target/upload
39  International / Italiano / Re: programmare arduino con netbeans on: January 06, 2012, 07:00:32 pm
Ciao ti ringrazio per il tempo dedicatomi.
40  International / Italiano / Re: programmare arduino con netbeans on: January 06, 2012, 06:50:39 pm
Il pulsante di di reset funziona perche quando lo premo il programma in memoria si riavvia.Ho provato accendere arduino con il pulsante premuto e dopo avviare il upload ma non è cambiato niente.Ciao tecno
41  International / Italiano / Re: programmare arduino con netbeans on: January 06, 2012, 06:39:14 pm
usando l'Ide di arduino funziona correttamente e con netbeans che non va per questo che cercato di vedere la configurazione  dell'Ide come sistema uso ubuntu 11.04
42  International / Italiano / Re: programmare arduino con netbeans on: January 06, 2012, 06:27:28 pm
usando arduino ho provocato un errore scegliendo un porta sblagiata mi ha dato questo errore:
avrdude: stk500_recv(): programmer is not responding.Da terminale ho inserito stk500 come programmatore nel comando /home/void/arduino-0022/hardware/tools/avrdude -V -F -C /home/void/arduino-0022/hardware/tools/avrdude.conf -p atmega328p -P /dev/ttyUSB0 -c stk500 //stk500v2 sstk500v1 -b 57600 -U flash:w:Tastiera.hex e mi ha dato il seguente errore :
avrdude: stk500_recv(): programmer is not responding
43  International / Italiano / Re: programmare arduino con netbeans on: January 06, 2012, 05:34:21 pm
ho provato a inserire isp come programmatore ma mi dice:Can't find programmer id "isp" e poi mi da un elenco di programmatori conosciuti tra cui :
stk500pp = Atmel STK500 V2 in parallel programming mode [/home/void/arduino-0022/hardware/tools/avrdude.conf:356]
  stk500v2 = Atmel STK500 Version 2.x firmware [/home/void/arduino-0022/hardware/tools/avrdude.conf:350]
  stk500v1 = Atmel STK500 Version 1.x firmware [/home/void/arduino-0022/hardware/tools/avrdude.conf:344]
  stk500   = Atmel STK500                   [/home/void/arduino-0022/hardware/tools/avrdude.conf:338]
  avrisp2  = Atmel AVR ISP mkII             [/home/void/arduino-0022/hardware/tools/avrdude.conf:328], quelli che mi danno timeout sono stk500v2 e stk500v2
44  International / Italiano / Re: programmare arduino con netbeans on: January 06, 2012, 05:08:02 pm
ho provato da terminale dando il seguente comando:
Code:
/home/void/arduino-0022/hardware/tools/avrdude -V -F -C /home/void/arduino-0022/hardware/tools/avrdude.conf -p atmega328p -P /dev/ttyUSB1 -c stk500v2 -b 19200 -U flash:w:Tastiera.hex
con lo stesso risultato
45  International / Italiano / Re: programmare arduino con netbeans on: January 06, 2012, 04:51:18 pm
ho provato a fare come mi hai detto cioè con upload.speed 19200 ed a eseguire il comando da consol ed il risultato è stato uguale se ti può essere di aiuto ti posso inviare il makefile,fancendo una prova con la velocità a 115200 vedevo che il led collegato al pin 13 lampeggia.
Pages: 1 2 [3] 4 5