Author Topic: pro micro flashing strangeness  (Read 1108 times)

0 Members and 1 Guest are viewing this topic.

Offline pmcquay

  • Thread Starter
  • Posts: 2
pro micro flashing strangeness
« on: Fri, 12 November 2021, 09:57:35 »
Hello,

I've been having issues flashing a custom keyboard I made recently. It is a Victor Lucachi Void Ergo S that I printed all of the parts for and handwired. The board works great so far. The problem I'm having is that sometimes when I change the keymap, the QMK MSYS cli reports that everything compiled and avrdude reports that flashing and verifying worked perfectly, but the keymap does not update. If I leave the board overnight and just try a recompile and reflash in the morning it works one time (I've done this three times now, and it seems like a pattern.) but after that it goes back to not working.

Things I've tried so far:

1. double tap resetting the board, does nothing, I dont think these particular micros need it.
2. holding reset while plugging in the board, no difference.
3. comparing the old hex file generated to the latest one, this is a little hazy, I think the hex file is changed all the time, but the overnight one is changed a lot more. I'm really not sure what to make of this.
4. flashing a blink sketch. This worked, but when I went back to my qmk firmware nothing changed.
5. restarting qmk msys, no response
6. restarting my pc, no response there either
7. several people have told me to flash both boards, which I have been doing, but it is not the solution to this, and from what I've read it's not required

here is the firmware I'm using: https://github.com/patrickmcquay/qmk_firmware/tree/dev_void/keyboards/handwired/void_ergo, the slim version, and the pmcquay keymap.

I've dumped the hex contents of the controller after a successful flash, and then again after an unsuccessful flash, in which I changed some of the keymap. There is a change to the files, and it could be enough to be the changes to the keymap, yet it is still using the old map. The only change in the hex is attached.

I'm thinking I'm missing something here and am hoping that someone here knows where to point me. I am a programmer by trade, just not an embedded one.

Offline pmcquay

  • Thread Starter
  • Posts: 2
Re: pro micro flashing strangeness
« Reply #1 on: Sun, 14 November 2021, 07:57:27 »
Alright, finally found the right place to ask about this. Turns out in VIA enabled builds (of which this is apparently one, and I had no idea) it stores the keymap in eeprom, and only changes it if the compiled in magic number changes. It changes every day, explaining the strange update frequency issue. I needed to hold either space and b or the top left key while plugging in, and that erases eeprom and puts it in boooader mode. Posting this so that anyone else that finds this sees an answer.