ellisgl / FreeExpression

GNU General Public License v2.0
5 stars 0 forks source link

Cannot get to work #4

Open dolfelt opened 2 months ago

dolfelt commented 2 months ago

I have built the hex file (with a few modifications to how the m2u8 library builds) and I can upload it successfully through an arduino board using the stk500v1 programmer. When I plug it in and turn it on, it homes the motors and shows the FreeExpression text on the LCD, but none of the buttons work and I can't get it to do anything when I try to send it InkScape commands.

@ellisgl Do you have any idea on what could be the issue or how I could debug what the issue may be. Are there any ways I can look at the startup logs using the arduino? I'm hesitant to plug the arduino into my computer while also feeding AC power to the device.

Any thoughts would be helpful! Thank you!

avrdude: Version 7.3
         Copyright the AVRDUDE authors;
         see https://github.com/avrdudes/avrdude/blob/main/AUTHORS

         System wide configuration file is /opt/homebrew/etc/avrdude.conf
         User configuration file does not exist or is not a regular file, skipping

         Using port            : /dev/cu.usbmodem101
         Using programmer      : stk500v1
         Setting baud rate     : 19200
         AVR Part              : ATmega1281
         Programming modes     : ISP, HVPP, JTAG, SPM

         Memory         Size  Pg size
         ----------------------------
         eeprom         4096        8
         flash        131072      256
         efuse             1        1
         hfuse             1        1
         lfuse             1        1
         lock              1        1
         signature         3        1
         calibration       1        1
         io              480        1
         sram           8192        1

         Variants          Package  F max   T range        V range
         ----------------------------------------------------------------
         ATmega1281        N/A      16 MHz  [N/A,    N/A]  [4.5 V, 5.5 V]
         ATmega1281-16AU   TQFP64   16 MHz  [-40 C, 85 C]  [2.7 V, 5.5 V]
         ATmega1281-16AUR  TQFP64   16 MHz  [N/A,    N/A]  [2.7 V, 5.5 V]
         ATmega1281-16MU   QFN64    16 MHz  [-40 C, 85 C]  [2.7 V, 5.5 V]
         ATmega1281-16MUR  QFN64    16 MHz  [-40 C, 85 C]  [2.7 V, 5.5 V]
         ATmega1281V-8AU   TQFP64   8 MHz   [-40 C, 85 C]  [1.8 V, 5.5 V]
         ATmega1281V-8AUR  QFN64    8 MHz   [-40 C, 85 C]  [1.8 V, 5.5 V]
         ATmega1281V-8MU   MLF64    8 MHz   [-40 C, 85 C]  [1.8 V, 5.5 V]
         ATmega1281V-8MUR  MLF64    8 MHz   [N/A,    N/A]  [1.8 V, 5.5 V]

         Programmer Type       : STK500
         Description           : Atmel STK500 version 1.x firmware
         HW Version            : 2
         FW Version            : 1.18
         Topcard               : Unknown
         Vtarget               : 0.0 V
         Varef                 : 0.0 V
         Oscillator            : Off
         SCK period            : 0.0 us
         XTAL frequency        : 7.372800 MHz
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03 s
avrdude: device signature = 0x1e9704 (probably m1281)
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: processing -U flash:w:FreeExpression.hex:i
avrdude: reading input file FreeExpression.hex for flash
         with 28826 bytes in 1 section within [0, 0x7099]
         using 113 pages and 102 pad bytes
avrdude: writing 28826 bytes flash ...
Writing |                                                    | 0% 0.00 s
avrdude: padding flash [0x7000, 0x70ff]
Writing | ################################################## | 100% 27.50 s
avrdude: 28826 bytes of flash written

avrdude done.  Thank you.
ellisgl commented 2 months ago

Man - it's been a while. I'll have to dig it out long with my programer and all that to test it out. I could have sworn I had it working the last time I touched this code. hmm..