Giter Site home page Giter Site logo

Comments (4)

pat1 avatar pat1 commented on September 18, 2024

GRRR!!!
giorni di lavoro per un hardware fallato !

from rmap.

pat1 avatar pat1 commented on September 18, 2024

รจ probabile un problema della RAM, ma come fare i check ?

http://www.avrfreaks.net/forum/c-function-test-internal-sram-needed

from rmap.

pat1 avatar pat1 commented on September 18, 2024

un programma grossolano per fare il test della memoria, da compilare con .O0
ino build --cflags="-O0" -m 644pa16m

#define SIZE 2000
uint8_t mem[SIZE];
int i;

void setup() {
Serial.begin(9600); // connect to the serial port
Serial.println("Start");

for (i=0; i<SIZE; i++){
mem[i]=0xFF;
if (mem[i] != 0xFF){
Serial.print("error: ");
Serial.print(mem[i]);
Serial.print(" : ");
Serial.println(i);
}
}

for (i=0; i<SIZE; i++){
mem[i]=0x00;
if (mem[i] != 0x00){
Serial.print("error: ");
Serial.print(mem[i]);
Serial.print(" : ");
Serial.println(i);
}
}

Serial.println("OK 1");

}

void loop() {
uint8_t memm[SIZE];

for (i=0; i<SIZE; i++){
memm[i]=0xFF;
if (memm[i] != 0xFF){
Serial.print("error: ");
Serial.print(memm[i]);
Serial.print(" : ");
Serial.println(i);
}
}

for (i=0; i<SIZE; i++){
memm[i]=0x00;
if (memm[i] != 0x00){
Serial.print("error: ");
Serial.print(memm[i]);
Serial.print(" : ");
Serial.println(i);
}
}

Serial.println("OK 2");
delay(3000);
}

from rmap.

pat1 avatar pat1 commented on September 18, 2024

prendere una board funzionante:
/usr/bin/avrdude -C /etc/avrdude/avrdude.conf -p atmega644p -P /dev/ttyUSB0 -c arduino -b 115200 -U eeprom:r:eeprom.bin:r

prendere la board da testare:
/usr/bin/avrdude -C /etc/avrdude/avrdude.conf -p atmega644p -P /dev/ttyUSB0 -c arduino -b 115200 -U eeprom:w:eeprom.bin:r

ed ecco il problema:
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e960a
avrdude: reading input file "eeprom.bin"
avrdude: writing eeprom (2048 bytes):

Writing | ################################################## | 100% 2.82s

avrdude: 2048 bytes of eeprom written
avrdude: verifying eeprom memory against eeprom.bin:
avrdude: load data eeprom data from input file eeprom.bin:
avrdude: input file eeprom.bin contains 2048 bytes
avrdude: reading on-chip eeprom data:

Reading | ################################################## | 100% 0.79s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0000
0x0c != 0x00
avrdude: verification error; content mismatch

avrdude: safemode: Fuses OK

avrdude done. Thank you.

from rmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.