Closed harshitgoel96 closed 2 years ago
:production
creates a fully "ISP" ready hex, that contains both the QMK firmware and QMK DFU bootloader. IIRC.
If you don't have the QMK_ options defined, it will error out, as these are necessary.
I know production adds Bootloader to the hex file. PS2AVRGB boards use BOOTLOADERHID. I wanted to have it in my Hex. Can you please help me with the options required for this? I could not find it in Documentation.
Sent from Yahoo Mail on Android
On Mon, 26 Mar 2018 at 10:32 PM, Drashna Jaelrenotifications@github.com wrote:
:production creates a fully "ISP" ready hex, that contains both the QMK firmware and QMK DFU bootloader. IIRC.
If you don't have the QMK_ options defined, it will error out, as these are necessary.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Docs about it here: https://docs.qmk.fm/flashing.html
And you can see what it's looking for when compiling: https://github.com/qmk/qmk_firmware/blob/master/tmk_core/avr.mk#L255-L260
You can see this in the Planck https://github.com/qmk/qmk_firmware/blob/master/keyboards/planck/config.h#L39-L42
Also, it will still error out, as @jackhumbert may have missed something in the build script. A normal hex isn't made, but it is looked for in the size check: https://github.com/qmk/qmk_firmware/blob/master/tmk_core/avr.mk#L270 (i'd change this, but I'm not sure how ... other than to remove the first target
I tried setting up the QMK_* options, still getting same error. I think this is due to custom led driver.
Yeah, it probably is, because I'm not seeing the issue on my viterbi.
I think since bootloaderhid is not supported for :production param, can someone add check for it instead ?
Tested this out, works for me. Check your code, you probably have an extra character somewhere, or a missing char.
Caveat here, the QMK DFU bootloader only works for atmega32u4 chips, at the moment.
This looks like it was resolved, but I think it's something we need to document for clarification.
For future reference: :bootloader
and :production
will build the QMK-DFU bootloader, but this will only work for MCUs supported by LUFA, as that's where the code is from: https://github.com/qmk/lufa/tree/master/Bootloaders/DFU
So at present there is no way to compile QMK-DFU for the ATmega32A, 328P, or any ARM chip. The first two have no native USB support (thus they use V-USB which does it all in software), and ARM is a completely different architecture. Most of the STM32 chips have a DFU bootloader in ROM anyway.
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug
, in progress
, on hold
, discussion
or to do
to prevent the issue from being re-flagged.
Closing due to inactivity.
I am working on YMD96 and getting following error while making the keyboard with :production param. this is also true when making jj40.