Show Posts
Pages: 1 [2] 3 4 ... 10
16  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

17  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
18  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
19  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
20  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

21  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
>


22  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
 

23  International / Deutsch / Re: Bezugsquelle Arduino Micro ? on: December 14, 2012, 02:10:46 pm
Guter Tipp !  thx
24  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
25  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
26  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
27  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
28  Using Arduino / Sensors / AD654 Voltage-to-Frequency Converter ? on: November 03, 2012, 12:10:17 am
Hello,

I'm searching for code example to run Voltage-to-Frequency Converter
"AD654" on Arduino.

thx
wally
29  Using Arduino / Networking, Protocols, and Devices / Re: Interfacing ADS1244 on: October 26, 2012, 09:47:48 am
some fine tuning to make it human readable:
thanks a smart solution from "dhenry"

Code:
/*
  ADS1244
 
*/

int DATA = 4;
int SCLK = 5;

void setup() {
 
  pinMode(DATA, INPUT);
  pinMode(SCLK, OUTPUT);
 
  Serial.begin(115200);
 
  // generate a 2.4MHz clock signal on pin 3
  pinMode(3, OUTPUT);      //CLK
 
  // 17.11 Register Description
  TCCR2A = 0x33;  // 0011 0011 
  TCCR2B = 0x09;  // 0000 1001
  OCR2A  = 0x06;  // 0000 0110
  OCR2B  = 0x03;  // 0000 0011
 
  Serial.print("ADS1244\n");    // output 'AADS1244' (?) additional 'A' in front
  delay(100);
}

void loop() {
 
  // Code for reading the data:
     
  int32_t value = 0;
 
  //digitalWrite(SCLK, HIGH);  //enter slleep mode
  delay(300);
  digitalWrite(SCLK, LOW);  // wake up ADC
 
     
  // wait for data ready, stay in while-loop until LOW
  while (digitalRead(DATA) == HIGH);     

  value = shiftIn(DATA, SCLK, MSBFIRST);
  value <<= 8;
  value |= shiftIn(DATA, SCLK, MSBFIRST);
  value <<= 8;
  value |= shiftIn(DATA, SCLK, MSBFIRST);

  digitalWrite(SCLK, HIGH);  // enter sleep mode
  //digitalWrite(SCLK, LOW); // 25th pulse to keep DATA high till next data ready
   
  // process as int24_t (two's compliment 24bit) 
  value = ((signed long) (value << 8)) >> 8;   
   
   
  Serial.println(value, DEC);
  Serial.flush();

}


30  Using Arduino / Programming Questions / Re: 3Byte Two's Compliment on: October 26, 2012, 09:04:36 am
dhenry,


this is exactly what i meant by "smart"  :)

Thank you very much
wally
Pages: 1 [2] 3 4 ... 10