Olimex Support Forum

Others => TERES DIY Laptop => Topic started by: baffo32 on June 24, 2020, 11:27:23 pm

Title: Programming Keyboard
Post by: baffo32 on June 24, 2020, 11:27:23 pm
Hi,

My keyboard is misbehaving and I wanted to make sure the firmware was intact.  I ordered a replacement keyboard and the IVR-ISP500-TINY, and I thought I'd look into practicing with the replacement, maybe see if there was a way to dump the factory image.  But I don't see anywhere to connect the programmer to the keyboard.

Could you advise me how to do this, or where to learn?  I'm worried I could break the keyboard opening it.
Title: Re: Programming Keyboard
Post by: LubOlimex on July 06, 2020, 01:56:42 pm
It is the ICSP0 pads (if you purchased TERES-PCB5-KEYBOARD). You attach a connector temporarily the connector should be male-male 2 rows x 3 pins at 0.1" step.

Also read here about the software: https://github.com/OLIMEX/DIY-LAPTOP/tree/rel3/SOFTWARE/A64-TERES/TERES-KBD-RELEASE
Title: Re: Programming Keyboard
Post by: baffo32 on July 07, 2020, 01:42:39 am
Thanks so much.  I forgot about the separate keyboard controller board.  I've affixed a 2x3 header to my programmer.

Your link: I'm guessing it's for updating the firmware from the same Teres system, not via a programmer?  It looks like it uses an "hid_bootloader_cli" binary to do the upload.  Do you know where the source for this binary is?  EDIT: I found that this binary is from lufa and the source is in lufa =)

Thanks so much.
Title: Re: Programming Keyboard
Post by: LubOlimex on July 07, 2020, 08:33:37 am
The hex binary and the command to use can be found here:

https://github.com/OLIMEX/DIY-LAPTOP/tree/rel3/SOFTWARE/A64-TERES/TERES-KBD-RELEASE/Keyboard_firmware
Title: Re: Programming Keyboard
Post by: baffo32 on July 08, 2020, 03:35:18 am
Thanks again.  I reflashed my chip successfully.  It looks like the system needs to be powered on when flashing or you get an obscure avrdude error that appears related to low current.  I submitted a PR adding more information from my experience to that subfolder.

It's great to be able to verify the firmware in my keyboard.  I cut a hole through the bottom of the system to access the pins more easily in the future.  I've noticed the firmware changes some of its content when running.  I haven't looked at the source yet.

Thank you again.