Loading...
  Show Posts
Pages: [1] 2 3 ... 10
1  Using Arduino / Programming Questions / Re: Assembler Blink example on: April 10, 2013, 04:37:15 am
yes, capital extension "S" did it smiley
Quote
avr-gcc -mmcu=atmega328p -nostartfiles ./blink2.S
ld: warning: -z relro ignored.
>

thanks a lot
wally
2  Using Arduino / Programming Questions / Re: Assembler Blink example on: April 10, 2013, 04:00:34 am
Thank you very much for the explaination.

Still have problems, but i think it's a simple path problem:
Code:
> avr-gcc -mmcu=atmega328p -nostartfiles ./blink2.s
./blink2.s: Assembler messages:
./blink2.s:9: Error: constant value required
./blink2.s:13: Error: constant value required
./blink2.s:16: Error: constant value required
>
3  Using Arduino / Programming Questions / Assembler Blink example on: April 10, 2013, 01:06:07 am
Hello,

is there an assembler example (e.g. blink.s) with command line build and
upload instructions available for Duemilanove ?
I found the following code example, but do not really know how to use it.
Got errors when try to compile
> avr-as ./blink.s
and i do not have "delay_n_ms.h" 


 
Code:
; Assembly Code:

.include   "m328Pdef.inc"

start:     

         SBI      DDRB,5


blink:              LDI      r20,250
         CALL       delay_n_ms
         SBI      PORTB,5
         LDI      r20,250
         CALL       delay_n_ms
         CBI      PORTB,5
         JMP       blink

.include   "delay_n_ms.h"

thanks wally
4  International / Deutsch / Wie verwende ich simavr ? on: March 06, 2013, 02:03:05 am
Hallo,

ich versuche eine hex-datei mit simavr zu simulieren.
Wäre jemand so nett mir zu zeigen wie ich das machen soll.
In der IDE habe ich das Beispileproject /Examples/Bssic/Blink kompiliert
und die DAteien aus dem /tmp/ Ordner genommen.

Versucht habe ich  mit Hex-file aus den examples
Code:
> ./simavr/run_avr -m atmega328p -f 16000000 ./Blink.cpp.hex
Loaded 1 section of ihex
Load HEX flash 00000000, 1084
Starting atmega328 - flashend 7fff ramend 08ff e2end 03ff
atmega328 init

und dem zugehörigen Elf-file
Code:
./simavr/run_avr -m atmega328p -f 16000000 ./Blink.cpp.elf
Loaded 1082 .text
Loaded 2 .data
Starting atmega328 - flashend 7fff ramend 08ff e2end 03ff
atmega328 init


... aber wie geht es nun weiter ?

Eine Beispielsession mit simavr würde mir wohl weiterhelfen.
Sinn der ganzen Sache ist: Ich benötige ein timing-diagramm für gtkwave.
In diesem Beispiel also das high/low Verhalten an Pin 13 (LED)

wally

5  Products / Arduino Due / DUE JTAG connector size on: March 04, 2013, 02:02:57 am
Hello,

the DUE JTAG connector is smaller as the usual 2x5 connector.
Where to get a suitable female connector and/or what is correct
naming for this size of connectors ?

thanks wally
6  Topics / Device Hacking / gtkwave input-file from hex-file on: March 04, 2013, 01:58:06 am
Hello,

i have a hexfile for atmega328p (Arduino Duemilanove), no source and i know this code changes PORTD. Is there a way to load this hexfile into a simulator and get an gtkwave inputfile ?
I need a timing diagramm for 2 bits of PORTD.

thanks wally
7  Development / Suggestions for the Arduino Project / Re: feature request hex upload on: February 13, 2013, 09:20:43 am
johnwasser

thank you for reply;

I know how to use it, i do every day. I requested for convenience only.
I think a IDE is for this convenience done. You can also compile and link
using avr-gcc commandline.

wally
8  Development / Suggestions for the Arduino Project / feature request hex upload on: February 13, 2013, 06:19:36 am
Hello,

not sure this is of general interest, but for my daily work it would be helpful.

A possibility to select an external hex-file and upload it through the Arduino IDE.
Should not be a big deal for developers (?).

thank you
wally

9  Using Arduino / Interfacing w/ Software on the Computer / Re: Cowascript - AVRDUDE HEX uploader etc for MacOS & Linux on: January 09, 2013, 01:42:04 pm
OK,
1 step ahead:

changed line 77-87 to:
Code:
cd $DIR
sport=$(ls /dev/)
i=0
for j in $sport
do
  if [[ "$j" == ttyUSB* ]] ; then
    i=$(( i + 1 ))
    echo "$i. $j"
    port[i]=$j
  fi
done

now i get :

Code:
....
HEX file installation script

Writing - Blink.cpp.hex
to port - ttyUSB0
IC      - atmega328p

Are you sure (yes/no)

yes
./Cowascript_mod: line 209: bin/avrdude: cannot execute binary file
>


10  Using Arduino / Interfacing w/ Software on the Computer / Re: Cowascript - AVRDUDE HEX uploader etc for MacOS & Linux on: January 09, 2013, 01:22:49 pm
Hello,

i tried the script on OpenSuse 12.2 with a Duemillanove connected on ttyUSB0.
I can us the Arduino IDE for upload without any problem.


Code:
> ./Cowascript

Cowasaki's

AVRDUDE / Atmel chip utilty script.

What would you like to do:

1. Program new HEX file
2. Read chip into files
3. Verify chip
4. Erase chip
5. Multi program mode

Choose menu option

1

##############################################################################

The following is a list of the available serial ports:

ls: cannot access /dev/*.*: No such file or directory

No relevant port

>

Changing lin 78 :
sport=$(ls /dev/*.*)
to
sport=$(ls /dev/*)
does not fix it

any idea ?

wally
 

11  International / Deutsch / Re: Bezugsquelle Arduino Micro ? on: December 14, 2012, 02:10:46 pm
Guter Tipp !  thx
12  International / Deutsch / Re: Bezugsquelle Arduino Micro ? on: December 14, 2012, 01:13:27 pm
Ja, es geht um die Baugrösse. Mit den geringeren features des Tiny kame ich gerade noch zurecht. Vielen Dank für die Hinweise smiley
13  International / Deutsch / Re: Bezugsquelle Arduino Micro ? on: December 14, 2012, 06:24:45 am
danke für die Antworten.

Habe mich wohl etwas verguckt. Beim 'googeln' von "arduino micro"
bekam ich untenstehendes Ergebnis.
http://www.gizmag.com/digispark-micro-controller-arduino/23763/

Dies ist aber wohl nicht der "Arduino Micro", sorry.

Eine deutsche Bezugsquelle für dieses Ding wäre aber dennoch interessant.

Gruß wally
14  International / Deutsch / Bezugsquelle Arduino Micro ? on: December 14, 2012, 05:53:09 am
Hallo,

weiss jemand, wo man den Arduino Micro in DE kaufen kann ?

Gruß
wally
15  Using Arduino / Sensors / Re: AD654 Voltage-to-Frequency Converter ? on: November 04, 2012, 02:20:31 am
johnwasser,

thank you for the link and your suggestion.

Quote
Why not just measure the voltage directly?

Because the AD654 exists in my partbox smiley

Quote
...measure the voltage directly
You mean by using Arduinos internal 10bit ADC ?

wally
Pages: [1] 2 3 ... 10