I believe the chip is proprerly connected, i guess its a code problem, but if isnt, then its the chip... Could you guys help me?
This is the log from terminal:
sudo flashrom -p serprog:dev=/dev/ttyACM0:115200,spispeed=100k -w BIOS.FI [sudo] senha para wizogales: flashrom v0.9.9-r1954 on Linux 4.9.0-9-amd64 (x86_64) flashrom is free software, get the source code at https://flashrom.org
Calibrating delay loop... OK. serprog: Programmer name is "frser-duino" serprog: requested mapping AT45CS1282 is incompatible: 0x1080000 bytes at 0x00000000fef80000. Found Macronix flash chip "MX25L4005(A/C)/MX25L4006E" (512 kB, SPI) on serprog. Reading old flash chip contents... done. Erasing and writing flash chip... FAILED at 0x0000fffd! Expected=0xff, Found=0xfc, failed byte count from 0x0000f000-0x0000ffff: 0x3 ERASE FAILED! Reading current flash chip contents... done. Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0000ffff: 0x5c0c ERASE FAILED! Reading current flash chip contents... done. Looking for another erase function. FAILED at 0x0000fff4! Expected=0xff, Found=0xfe, failed byte count from 0x00000000-0x0000ffff: 0xc ERASE FAILED! Reading current flash chip contents... done. Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0xa0, failed byte count from 0x00000000-0x0007ffff: 0x7659a ERASE FAILED! Reading current flash chip contents... done. Looking for another erase function. FAILED at 0x00000000! Expected=0xff, Found=0x00, failed byte count from 0x00000000-0x0007ffff: 0x765b5 ERASE FAILED! Looking for another erase function. No usable erase functions left. FAILED! Uh oh. Erase/write failed. Checking if anything has changed. Reading current flash chip contents... done. Apparently at least some data has changed. Your flash chip is in an unknown state. Please report this on IRC at chat.freenode.net (channel #flashrom) or mail flashrom@flashrom.org, thanks!