Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Teensy LC Ez-maker Direct Pin will not flash (HEX PARSE ERROR LINE 3) #16986

Closed
Xecuted-Toast opened this issue May 2, 2022 · 23 comments
Closed

Comments

@Xecuted-Toast
Copy link

I cannot get QMK Configurator to make a hex file (it creates a .bin). I am unable to open and review the .bin file.
When trying to flash the Teensy LC with the .bin file i get from compile. I get this error. "HEX PARSE ERROR LINE 3"

Screen Shot 2022-05-01 at 9.30.06 PM.pdf

Any help is greatly appreciated!

System Information

handwired TarTarus pro RAzer with choc switches
IMG_1106.pdf

@fauxpark
Copy link
Member

fauxpark commented May 2, 2022

This would be partially fixed by #14420 - it sets FIRMWARE_FORMAT = hex for all of the ARM Teensys. However you will still not be able to flash it in the Toolbox as it only has MCU values for AVR parts.

For now, you will have to manually add the above line to your rules.mk, and use the Teensy Loader GUI to flash. teensy_loader_cli, at least in MSYS2, appears to have trouble flashing the 3.5, but it may work for the LC, so you could try running qmk flash instead of qmk compile.

@Xecuted-Toast
Copy link
Author

When I open teensyduino I am unable to bring the .bin file into it. Is the teenysduino the Teensy Loader GUI? When attempting with the traditional teensy loader the program key is greyed out when the .bin file is selected. Is there a video tutorial that could assist me? I am feeling like a bit of a noob with the software end of things. I still feel a bit lost?

@fauxpark
Copy link
Member

fauxpark commented May 2, 2022

No, you need a .hex file.

@Xecuted-Toast
Copy link
Author

so I added the line 108 to 111 on the builddefs/bootloader.mk to make the LC teensy changes
"# Teensy LC, 3.0, 3.1/2, 3.5, 3.6
ifneq (,$(filter $(MCU_ORIG), MKL26Z64 MK20DX128 MK20DX256 MK64FX512 MK66FX1M0))
FIRMWARE_FORMAT = hex
endif"
but how do I get a hex file, I have no way to alter the way QMK configurator runs and makes a .bin; sorry I am still a bit lost?

@fauxpark
Copy link
Member

fauxpark commented May 2, 2022

You won't be able to do this in the Configurator; you need to compile it yourself.

@Xecuted-Toast
Copy link
Author

when picking a layout to compile for .hex with MSYS2 can I use a .Json made with configurator? And I do not attempt to flash with qmk toolbox, but need to try teensy flasher or qmk flash directly with MSYS2?

@Xecuted-Toast
Copy link
Author

photo error
So now I am getting : <qmk.exe compile: error: argument -kb/--keyboard: invalid keyboard_folder value: 'ez_maker/directpins/teensy_lc'>

I am not sure why this is happening in MSYS264bit?

@fauxpark
Copy link
Member

fauxpark commented May 5, 2022

Does that folder exist?

@Xecuted-Toast
Copy link
Author

yes qmk_firmware/keyboards/ez_maker/directpins/teensy_lc

@fauxpark
Copy link
Member

fauxpark commented May 5, 2022

Have you modified it in some way? What's the output of git status from your qmk_firmware folder?

@Xecuted-Toast
Copy link
Author

do I need to set up git to get it to work? I have not forked yet

@Xecuted-Toast
Copy link
Author

no modifications yet

@fauxpark
Copy link
Member

fauxpark commented May 5, 2022

Did you download the zip file from Github then? That's not going to work. You need to follow the newbs guide in the docs.

@Xecuted-Toast
Copy link
Author

I downloaded zip from github and changed rules.mk like we talked about for .hex within the teensy_lc folder. I went through newbs section

@fauxpark
Copy link
Member

fauxpark commented May 5, 2022

I did not tell you to download the zip.

@Xecuted-Toast
Copy link
Author

Yes I am pretty terrible at this and following directions. I deleted everything, forked with git. Then updated folder and still get the same qmk.exe compile error?

@Xecuted-Toast
Copy link
Author

Untitled

@fauxpark
Copy link
Member

fauxpark commented May 5, 2022

Please post the output of qmk doctor.

@Xecuted-Toast
Copy link
Author

Untitled
Thank you for all your help! I am learning but still having trouble when I hit a bump

@fauxpark
Copy link
Member

fauxpark commented May 6, 2022

So that's claiming there are modifications, what is the output of git status as well?

@Xecuted-Toast
Copy link
Author

Untitled

//So I did add the line "FIRMWARE_FORMAT = hex "
//"rules.mk":

MCU name

USE_CHIBIOS_CONTRIB = yes
FIRMWARE_FORMAT = hex

Enter lower-power sleep mode when on the ChibiOS idle thread

OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE

@Xecuted-Toast
Copy link
Author

it appears to have compiled hex! will give update tomorrow :)

@Xecuted-Toast
Copy link
Author

IT WORKS! You helped me sooo much! Thank you !!!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants