gcormier / megadesk

Open-source IKEA Bekant controller board

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flashed my megadesk but now it just do 3 sounds at startup nothing works... help please :)

sebastienvermeille opened this issue · comments

Hi guys,

I finally received all the material to flash the firmware and install v2022.09-t841-serial.hex.

Board version: v8

My flash.sh script:

avrdude -C /etc/avrdude.conf -c usbtiny -p t841 -U lfuse:w:0xe2:m
avrdude -C /etc/avrdude.conf -c usbtiny -p t841 -U hfuse:w:0xd6:m
avrdude -C /etc/avrdude.conf -c usbtiny -p t841 -U efuse:w:0xfe:m
avrdude -C /etc/avrdude.conf -v -pattiny841 -cusbtiny -Uflash:w:megadesk-v2022.09-t841-serial.hex:i

Flash logs:

avrdude: Version 7.0
         Copyright (c) Brian Dean, http://www.bdmicro.com/
         Copyright (c) Joerg Wunsch

         System wide configuration file is "/etc/avrdude.conf"
         User configuration file is "/home/me/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : usb
         Using Programmer              : usbtiny
avrdude: usbdev_open(): Found USBtinyISP, bus:device: 001:033
         AVR Part                      : ATtiny841
         Chip Erase delay              : 4500 us
         RESET disposition             : possible i/o
         RETRY pulse                   : SCK
         Serial program mode           : yes
         Parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                           Block Poll               Page                       Polled
           Memory Type Alias    Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- -------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom                 65     6     4    0 no        512    4      0  4000  4500 0xff 0xff
           signature               0     0     0    0 no          3    1      0     0     0 0x00 0x00
           lock                    0     0     0    0 no          1    1      0  9000  9000 0x00 0x00
           lfuse                   0     0     0    0 no          1    1      0  9000  9000 0x00 0x00
           hfuse                   0     0     0    0 no          1    1      0  9000  9000 0x00 0x00
           calibration             0     0     0    0 no          1    1      0     0     0 0x00 0x00
           flash                  65     6    16    0 yes      8192   16    512  4500  4500 0xff 0xff
           efuse                   0     0     0    0 no          1    1      0  9000  9000 0x00 0x00

         Programmer Type : USBtiny
         Description     : USBtiny simple USB programmer, https://learn.adafruit.com/usbtinyisp
avrdude: programmer operation not supported

avrdude: Using SCK period of 10 usec
avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e9315 (probably t841)
avrdude: NOTE: "flash" memory has been specified, an erase cycle will be performed
         To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: Using SCK period of 10 usec
avrdude: reading input file "megadesk-v2022.09-t841-serial.hex"
avrdude: writing flash (7378 bytes):

Writing | ################################################## | 100% 12.50s

avrdude: 7378 bytes of flash written
avrdude: verifying flash memory against megadesk-v2022.09-t841-serial.hex:

Reading | ################################################## | 100% 6.88s

avrdude: 7378 bytes of flash verified

avrdude done.  Thank you.

The problem:

When powered, the megadesk just play 3 sounds: ding-ding-ding (in loop)

What did I do ? Can you help me ? I try to have serial commands available.

Thank you in advance

If you are getting a loop of the 3 ascending-tone beeps, this is indicative that it's having problems with the LIN protocol and establishing communications with the motors. (Yellow wire on the harness is LIN bus)

I'll flash some this weekend using that same file just to confirm no hiccups happened in the firmware. I might make the next batch with serial enabled by default.

I've just flashed a v8 board with megadesk-v2022.09-t1624-serial.hex and it's working as intended.

Do you get different results if you flash the non-serial version? Can you post a video of the tone you are receiving? Did the unit work as-received before flashing?

Yes flashed both versions same issue.

The unit worked before being flashed yes.

IMG-8006.MOV

Ok I inverted the blue and white cable that was the cause! thank you very much