GrazerComputerClub / Blog

GC2 Blog (Deutsch)
3 stars 0 forks source link

ATmega328P Programmierung #58

Open utterances-bot opened 1 month ago

utterances-bot commented 1 month ago

ATmega328P Programmierung

Blog des Grazer Computer Club - GC2

https://blog.gc2.at/post/atmega-328p/

JPT77 commented 1 month ago

Hi, this seems to be deprecated

avrdude -P /dev/spidev0.0

my version 7.1 wants something like

avrdude -P /dev/spidev0.0:/dev/gpiochip0:25

but it still does not work for me. can you confirm this is correct?

the same with

programmer
  id = "linuxspi";
  desc = "Use Linux SPI device in /dev/spidev*";
  type = "linuxspi";
  reset = 25;
  baudrate=200000;
;

baudrate is not accepted. you should use the -B parameter. do you know anything about that?

thanks

JPT77 commented 1 month ago

Ach so, ich hätte es auch auf deutsch schreiben können. Macht der Gewohnheit. Kann es leider nicht mehr editieren. Lösch halt den ein oder anderen Kommentar bitte.

Halllo, dieses Syntax scheitn veraltet zu sein

avrdude -P /dev/spidev0.0

meine version 7.1 will sowas:

avrdude -P /dev/spidev0.0:/dev/gpiochip0:25

Aber trotzdem funktioniert es bei mir nicht. Kannst du bestätigen, dass die Syntax so korrekt ist?

Ähnlich ist das mit dem Konfigfile:

programmer
  id = "linuxspi";
  desc = "Use Linux SPI device in /dev/spidev*";
  type = "linuxspi";
  reset = 25;
  baudrate=200000;
;

baudrate akzeptiert er nicht, man soll den -B parameter benutzen. Weisst du irgendwas darüber? also beispielsweise müsste es ein neues config file format geben.

dankschön