Author Topic: Help with firmware.  (Read 12816 times)

0 Members and 1 Guest are viewing this topic.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Help with firmware.
« on: Fri, 04 April 2014, 00:21:23 »
I am trying to build a firmware using TMK for a 3x3 matrix that is being used as a test bed.  Right now I am just trying to get 1 through 9 to work to prove the functionality of the PCB's, and for me to learn to write one in the first place.  I am making a new thread as I don't want to clog up the TMK thread this much. 

I am a programming newblet.  You have been warned.

When I tried to do the makefile with the terminal it got this

Code: [Select]
E:\Keyboard Stuffs\Firmware\My Firmware\3x3 test bed?make -fMakefile
Makefile:133: ../../protocol/lufa.mk: No such file or directory
Makefile:134 ../../common.mk: No such File or directory
makefile:135 ../../rules.mk: No such file or directory
make: *** No rule to make target '../../rules.mk'. Stop.

When I was going through Matt3o's guide found here I was saving the files to a different folder but without changing the names.

Pm me for link to the drop box files.

If someone could look at them and help me with some probably obvious mistakes that would be great.  I don't just want them changed because then I won't learn this.  And I am going to be using TMK's dual role keys in the future.  Right now I just want it to work with numbers.  I can move on to the more advanced stuff later.

When I moved these folders back to the orginal one and I ran the same thing I got some other stuff but didn't make a .hex file.  Just an empty folder.

Please help a programming noobie.

Edit:  Removed Drop box link and added Pm for link
« Last Edit: Fri, 04 April 2014, 01:02:36 by Melvang »
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline Findecanor

  • Posts: 5036
  • Location: Koriko
Re: Help with firmware.
« Reply #1 on: Fri, 04 April 2014, 01:35:58 »
I would suggest that you don't move anything around - that is usually a recipe for getting a mess that needs to be untangled. In the worse case, you will get errors without any indication of what happened.

If I were you, I would start over, create a new subdirectory in the keyboard directory with the name of your keyboard. That seems to be Hasu's intention. Make it a copy of an existing keyboard's subdirectory and modify the files within that.
To build the firmware, the current directory must be your keyboard's subdirectory. (check docs/build.md)
« Last Edit: Fri, 04 April 2014, 01:37:39 by Findecanor »

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #2 on: Fri, 04 April 2014, 09:03:24 »
I agree.  Just get all the firmware files off Git and keep them as is.  Unless you really know what you are doing you should only make changes in your keyboard directory.

That being said, I've spent some time digging around in the files and would be willing to look at your files.  It may be the case of the blind leading the blind, but I'm game if you don't mind.  PM sent in 5...4...3...

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #3 on: Fri, 04 April 2014, 19:22:45 »
Alright, guys I will try this and report back.  If it still doesn't work I will send out PM's with dropbox share links.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #4 on: Fri, 04 April 2014, 20:41:53 »
I know make better than tmk, but I can try to build if are still having issues.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #5 on: Fri, 04 April 2014, 20:54:11 »
I know make better than tmk, but I can try to build if are still having issues.

Thanks swill but I don't want someone to build it for me.  I want to learn it myself but I might just need a couple helping steps along the way.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #6 on: Fri, 04 April 2014, 21:04:11 »
I know make better than tmk, but I can try to build if are still having issues.

Thanks swill but I don't want someone to build it for me.  I want to learn it myself but I might just need a couple helping steps along the way.

Ya for sure. I meant that I would build it so I could help you build it. I was being too brief cause I'm on my phone. I have been meaning to pull tmk and build a couple layouts for my jd40.

Offline dorkvader

  • Posts: 6288
  • Location: Boston area
  • all about the "hack" in "geekhack"
Re: Help with firmware.
« Reply #7 on: Fri, 04 April 2014, 21:10:02 »
this is why I like soarer's firmware: you don't have to make the program from source. This saves me a lot of time hunting down libraries and things and checking to make sure my compiler is installed, etc.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #8 on: Fri, 04 April 2014, 21:26:10 »
I know make better than tmk, but I can try to build if are still having issues.

Thanks swill but I don't want someone to build it for me.  I want to learn it myself but I might just need a couple helping steps along the way.

Ya for sure. I meant that I would build it so I could help you build it. I was being too brief cause I'm on my phone. I have been meaning to pull tmk and build a couple layouts for my jd40.

Gotcha.  I am working on it right now and I believe I found a huge mistake that I did probably due to lack of sleep.  Now I just need to find out how to fix it.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #9 on: Fri, 04 April 2014, 21:27:01 »
this is why I like soarer's firmware: you don't have to make the program from source. This saves me a lot of time hunting down libraries and things and checking to make sure my compiler is installed, etc.

I have never tried his. I will have to find it and check it out. I am currently using metalicqaz's (sp) firmware. It is pretty good, but I want to try others. 

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #10 on: Fri, 04 April 2014, 23:19:59 »
Well that didn't work.  Time to start over from scratch including a deletion of all firmware files and a redownload of original stuff.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #11 on: Sat, 05 April 2014, 00:44:58 »
Alright I tried again and didn't work I got the same issue as the first time.  I extracted the entire TMK zip file and then copied the GH60 folder so I didn't muck up the originals.  Here is the code I currently have in order of what working on it following Matt3o's guide.  I think where I am getting stuck is the last or second to last one where you are actually doing the keymap.  Though I could be way off base.

This is the Makefile file that is the starting point.
More
Code: [Select]
#----------------------------------------------------------------------------
# On command line:
#
# make all = Make software.
#
# make clean = Clean out built project files.
#
# make coff = Convert ELF to AVR COFF.
#
# make extcoff = Convert ELF to AVR Extended COFF.
#
# make program = Download the hex file to the device.
#                Please customize your programmer settings(PROGRAM_CMD)
#
# make teensy = Download the hex file to the device, using teensy_loader_cli.
#               (must have teensy_loader_cli installed).
#
# make dfu = Download the hex file to the device, using dfu-programmer (must
#            have dfu-programmer installed).
#
# make flip = Download the hex file to the device, using Atmel FLIP (must
#             have Atmel FLIP installed).
#
# make dfu-ee = Download the eeprom file to the device, using dfu-programmer
#               (must have dfu-programmer installed).
#
# make flip-ee = Download the eeprom file to the device, using Atmel FLIP
#                (must have Atmel FLIP installed).
#
# make debug = Start either simulavr or avarice as specified for debugging,
#              with avr-gdb or avr-insight as the front end for debugging.
#
# make filename.s = Just compile filename.c into the assembler code only.
#
# make filename.i = Create a preprocessed source file for use in submitting
#                   bug reports to the GCC project.
#
# To rebuild project do "make clean" then "make all".
#----------------------------------------------------------------------------

# Target file name (without extension).
TARGET = gh60_lufa

# Directory common source filess exist
TOP_DIR = ../..

# Directory keyboard dependent files exist
TARGET_DIR = .

# project specific files
SRC = keymap_common.c \
matrix.c \
led.c

ifdef KEYMAP
    SRC := keymap_$(KEYMAP).c $(SRC)
else
    SRC := keymap_poker.c $(SRC)
endif

CONFIG_H = config.h


# MCU name
#MCU = at90usb1287
MCU = atmega32u4

# Processor frequency.
#     This will define a symbol, F_CPU, in all source code files equal to the
#     processor frequency in Hz. You can then use this symbol in your source code to
#     calculate timings. Do NOT tack on a 'UL' at the end, this will be done
#     automatically to create a 32-bit value in your source code.
#
#     This will be an integer division of F_USB below, as it is sourced by
#     F_USB after it has run through any CPU prescalers. Note that this value
#     does not *change* the processor frequency - it should merely be updated to
#     reflect the processor speed set externally so that the code can use accurate
#     software delays.
F_CPU = 16000000


#
# LUFA specific
#
# Target architecture (see library "Board Types" documentation).
ARCH = AVR8

# Input clock frequency.
#     This will define a symbol, F_USB, in all source code files equal to the
#     input clock frequency (before any prescaling is performed) in Hz. This value may
#     differ from F_CPU if prescaling is used on the latter, and is required as the
#     raw input clock is fed directly to the PLL sections of the AVR for high speed
#     clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL'
#     at the end, this will be done automatically to create a 32-bit value in your
#     source code.
#
#     If no clock division is performed on the input clock inside the AVR (via the
#     CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU.
F_USB = $(F_CPU)

# Interrupt driven control endpoint task(+60)
OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT


# Boot Section Size in *bytes*
#   Teensy halfKay   512
#   Teensy++ halfKay 1024
#   Atmel DFU loader 4096
#   LUFA bootloader  4096
#   USBaspLoader     2048
OPT_DEFS += -DBOOTLOADER_SIZE=4096


# Build Options
#   comment out to disable the options.
#
BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
CONSOLE_ENABLE = yes # Console for debug(+400)
COMMAND_ENABLE = yes    # Commands for debug and configuration
#SLEEP_LED_ENABLE = yes  # Breathing sleep LED during USB suspend
#NKRO_ENABLE = yes # USB Nkey Rollover - not yet supported in LUFA


# Optimize size but this may cause error "relocation truncated to fit"
#EXTRALDFLAGS = -Wl,--relax

# Search Path
VPATH += $(TARGET_DIR)
VPATH += $(TOP_DIR)

include $(TOP_DIR)/protocol/lufa.mk
include $(TOP_DIR)/common.mk
include $(TOP_DIR)/rules.mk

This is config.h

More
Code: [Select]
/*
Copyright 2012 Jun Wako <wakojun@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef CONFIG_H
#define CONFIG_H


/* USB Device descriptor parameter */
#define VENDOR_ID       0xFEED
#define PRODUCT_ID      0x6060
#define DEVICE_VER      0x0001
#define MANUFACTURER    geekhack
#define PRODUCT         GH60
#define DESCRIPTION     t.m.k. keyboard firmware for GH60

/* key matrix size */
#define MATRIX_ROWS 3
#define MATRIX_COLS 3

/* define if matrix has ghost */
//#define MATRIX_HAS_GHOST

/* Set 0 if debouncing isn't needed */
#define DEBOUNCE    5

/* Mechanical locking support. Use KC_LCAP, KC_LNUM or KC_LSCR instead in keymap */
#define LOCKING_SUPPORT_ENABLE
/* Locking resynchronize hack */
#define LOCKING_RESYNC_ENABLE

/* key combination for command */
#define IS_COMMAND() ( \
    keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \
)



/*
 * Feature disable options
 *  These options are also useful to firmware size reduction.
 */

/* disable debug print */
//#define NO_DEBUG

/* disable print */
//#define NO_PRINT

/* disable action features */
//#define NO_ACTION_LAYER
//#define NO_ACTION_TAPPING
//#define NO_ACTION_ONESHOT
//#define NO_ACTION_MACRO
//#define NO_ACTION_FUNCTION

#endif

This is matrix.c

More
Code: [Select]
/*
Copyright 2012 Jun Wako <wakojun@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

/*
 * scan matrix
 */
#include <stdint.h>
#include <stdbool.h>
#include <avr/io.h>
#include <util/delay.h>
#include "print.h"
#include "debug.h"
#include "util.h"
#include "matrix.h"


#ifndef DEBOUNCE
#   define DEBOUNCE 5
#endif
static uint8_t debouncing = DEBOUNCE;

/* matrix state(1:on, 0:off) */
static matrix_row_t matrix[MATRIX_ROWS];
static matrix_row_t matrix_debouncing[MATRIX_ROWS];

static matrix_row_t read_cols(void);
static void init_cols(void);
static void unselect_rows(void);
static void select_row(uint8_t row);


inline
uint8_t matrix_rows(void)
{
    return MATRIX_ROWS;
}

inline
uint8_t matrix_cols(void)
{
    return MATRIX_COLS;
}

void matrix_init(void)
{
    // initialize row and col
    unselect_rows();
    init_cols();

    // initialize matrix state: all keys off
    for (uint8_t i=0; i < MATRIX_ROWS; i++) {
        matrix[i] = 0;
        matrix_debouncing[i] = 0;
    }
}

uint8_t matrix_scan(void)
{
    for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
        select_row(i);
        _delay_us(30);  // without this wait read unstable value.
        matrix_row_t cols = read_cols();
        if (matrix_debouncing[i] != cols) {
            matrix_debouncing[i] = cols;
            if (debouncing) {
                debug("bounce!: "); debug_hex(debouncing); debug("\n");
            }
            debouncing = DEBOUNCE;
        }
        unselect_rows();
    }

    if (debouncing) {
        if (--debouncing) {
            _delay_ms(1);
        } else {
            for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
                matrix[i] = matrix_debouncing[i];
            }
        }
    }

    return 1;
}

bool matrix_is_modified(void)
{
    if (debouncing) return false;
    return true;
}

inline
bool matrix_is_on(uint8_t row, uint8_t col)
{
    return (matrix[row] & ((matrix_row_t)1<<col));
}

inline
matrix_row_t matrix_get_row(uint8_t row)
{
    return matrix[row];
}

void matrix_print(void)
{
    print("\nr/c 0123456789ABCDEF\n");
    for (uint8_t row = 0; row < MATRIX_ROWS; row++) {
        phex(row); print(": ");
        pbin_reverse16(matrix_get_row(row));
        print("\n");
    }
}

uint8_t matrix_key_count(void)
{
    uint8_t count = 0;
    for (uint8_t i = 0; i < MATRIX_ROWS; i++) {
        count += bitpop16(matrix[i]);
    }
    return count;
}

/* Column pin configuration
 * col: 0   1   2
 * pin: B5  B6  F7
 */
static void  init_cols(void)
{
    // Input with pull-up(DDR:0, PORT:1)
    DDRB  &= ~(1<<6 | 1<<5);
    PORTB |=  (1<<6 | 1<<5);
    DDRF  &= ~(1<<7);
    PORTF |=  (1<<7);
}

static matrix_row_t read_cols(void)
{
    return (PINB&(1<<5) ? 0 : (1<<0)) |
           (PINB&(1<<6) ? 0 : (1<<1)) |
           (PINF&(1<<7) ? 0 : (1<<2)) ;
}

/* Row pin configuration
 * row: 0   1   2
 * pin: D0  D1  D2
 */
static void unselect_rows(void)
{
    // Hi-Z(DDR:0, PORT:0) to unselect
    DDRD  &= ~0b00000111;
    PORTD &= ~0b00000111;
}

static void select_row(uint8_t row)
{
    // Output low(DDR:1, PORT:0) to select
    switch (row) {
        case 0:
            DDRD  |= (1<<0);
            PORTD &= ~(1<<0);
            break;
        case 1:
            DDRD  |= (1<<1);
            PORTD &= ~(1<<1);
            break;
        case 2:
            DDRD  |= (1<<2);
            PORTD &= ~(1<<2);
            break;
    }
}

Here is keymap_common.h

More
Code: [Select]
/*
Copyright 2012,2013 Jun Wako <wakojun@gmail.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef KEYMAP_COMMON_H
#define KEYMAP_COMMON_H

#include <stdint.h>
#include <stdbool.h>
#include <avr/pgmspace.h>
#include "keycode.h"
#include "action.h"
#include "action_macro.h"
#include "report.h"
#include "host.h"
#include "print.h"
#include "debug.h"
#include "keymap.h"


extern const uint8_t keymaps[][MATRIX_ROWS][MATRIX_COLS];
extern const uint16_t fn_actions[];


/* GH60 keymap definition macro
 * K2C, K31 and  K3C are extra keys for ISO
 */
#define KEYMAP( \
    K00, K01, K02, \
    K10, K11, K12, \
    K20, K21, K22, \
) { \
    { KC_##K00, KC_##K01, KC_##K02, \
    { KC_##K10, KC_##K11, KC_##K12, \
    { KC_##K20, KC_##K21, KC_##K22, \
}

/* ANSI valiant. No extra keys for ISO */
#define KEYMAP_ANSI( \
    K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
    K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
    K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B,      K2D, \
    K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B,           K3D, \
    K40, K41, K42,           K45,                     K4A, K4B, K4C, K4D  \
) KEYMAP( \
    K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
    K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
    K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, NO,  K2D, \
    K30, NO,  K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, NO,  K3D, \
    K40, K41, K42,           K45,                NO,  K4A, K4B, K4C, K4D  \
)


#define KEYMAP_HHKB( \
    K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, K49,\
    K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
    K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B,      K2D, \
    K30, K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B,      K3D, K3C, \
    K40, K41, K42,           K45,                     K4A, K4B, K4C, K4D  \
) KEYMAP( \
    K00, K01, K02, K03, K04, K05, K06, K07, K08, K09, K0A, K0B, K0C, K0D, \
    K10, K11, K12, K13, K14, K15, K16, K17, K18, K19, K1A, K1B, K1C, K1D, \
    K20, K21, K22, K23, K24, K25, K26, K27, K28, K29, K2A, K2B, NO,  K2D, \
    K30, NO,  K32, K33, K34, K35, K36, K37, K38, K39, K3A, K3B, K3C, K3D, \
    K40, K41, K42,           K45,                K49, K4A, K4B, K4C, K4D  \
)

#endif

and finally this is keymap_poker.c

More
Code: [Select]
#include "keymap_common.h"

const uint8_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
     /* 0: qwerty */
     KEYMAP(\
         1, 2, 3, \
         4, 5, 6, \
         7, 8, 9, \

};

const uint16_t PROGMEM fn_actions[] = {

};

Again I apologize if this is a very simple mistake but please bear with me I will learn this.  I will be ok with not knowing the PCB design side but I want to do be able to do everything else aside from the laser cutting but that is only due to not having the multiple thousand dollar machine to do it.

This is what I get when I attempt to make it.
60003-0

I moved this stuff back to the stock directory and tried again and this is what I get.
60005-1

Edit:  Got rid of the WALL of code.
Edit:  Adding pic of the issue with I attempt to make the firmware.
« Last Edit: Sat, 05 April 2014, 01:15:06 by Melvang »
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #12 on: Sat, 05 April 2014, 07:00:41 »
I have only read over this quickly and I have not tried to build this yet, but I see at least one problem.

In keymap_common.h you have a couple syntax errors. In #define KEYMAP() you are not closing you rows with curly brackets. I will just write out one cause I am on my phone.

{ KC_##K00, KC_##K01, KC_##K02 }, \

If you are still having issues I will try and figure it out on my putter. 

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #13 on: Sat, 05 April 2014, 08:47:48 »
I have only read over this quickly and I have not tried to build this yet, but I see at least one problem.

In keymap_common.h you have a couple syntax errors. In #define KEYMAP() you are not closing you rows with curly brackets. I will just write out one cause I am on my phone.

{ KC_##K00, KC_##K01, KC_##K02 }, \

If you are still having issues I will try and figure it out on my putter.

Thanks I will check it out when I get home from work.  Got another 12 should today.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #14 on: Sat, 05 April 2014, 18:56:52 »
I see another syntax error in the keymap_poker.c file.

KEYMAP(KEY,KEY,KEY,\
             KEY,KEY,KEY,\
             KEY,KEY,KEY),

Note the close parenthesis in the final line.



Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #15 on: Sat, 05 April 2014, 22:21:23 »
Alright guys I make those changes. 

I opened up Makefile in programmer's Notepad and then clicked on "Make All" under the Tools menu.  It then puked out this.

More

Code: [Select]
> "make.exe" all
      0 [main] sh 31896 sync_with_child: child 23888(0x150) died before initialization with status code 0xC0000142
  22525 [main] sh 31896 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable
      0 [main] sh 17412 sync_with_child: child 14776(0x150) died before initialization with status code 0xC0000142
  36615 [main] sh 17412 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable

-------- begin --------
avr-gcc (WinAVR 20100110) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

      0 [main] sh 31072 sync_with_child: child 32248(0x148) died before initialization with status code 0xC0000142
  12170 [main] sh 31072 sync_with_child: *** child state waiting for longjmp
/usr/bin/sh: fork: Resource temporarily unavailable

mkdir -p obj_gh60_lufa
Compiling C: keymap_poker.c
avr-gcc -c -mmcu=atmega32u4 -gdwarf-2 -DF_CPU=16000000UL -DINTERRUPT_CONTROL_ENDPOINT -DBOOTLOADER_SIZE=4096 -DF_USB=16000000UL -DARCH=ARCH_AVR8 -D USB_DEVICE_ONLY -D USE_FLASH_DESCRIPTORS -D USE_STATIC_OPTIONS="(USB_DEVICE_OPT_FULLSPEED | USB_OPT_REG_ENABLED | USB_OPT_AUTO_PLL)" -DPROTOCOL_LUFA -DBOOTMAGIC_ENABLE -DMOUSEKEY_ENABLE -DMOUSE_ENABLE -DEXTRAKEY_ENABLE -DCONSOLE_ENABLE -DCOMMAND_ENABLE -DVERSION= -Os -funsigned-char -funsigned-bitfields -ffunction-sections -fno-inline-small-functions -fpack-struct -fshort-enums -fno-strict-aliasing -Wall -Wstrict-prototypes -Wa,-adhlns=obj_gh60_lufa/keymap_poker.lst -I. -I../.. -I../../protocol/lufa -I../../protocol/lufa/LUFA-120730 -I../../common -std=gnu99 -include config.h -MMD -MP -MF .dep/obj_gh60_lufa_keymap_poker.o.d  keymap_poker.c -o obj_gh60_lufa/keymap_poker.o
make.exe: *** [obj_gh60_lufa/keymap_poker.o] Error -1073741502


This is in addition to an error message pop up that says the following

Title bar says "avr-gcc.exe - Application Error"

Body of the message says "The application was unable to start correctly (0xc0000142). Click OK to close the application."


Clicking OK then adds the following lines to the output window where the previous code was displayed.

>Process Exit Code: 2
>Time taken: 01:27

Any ideas on this one?
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #16 on: Sun, 06 April 2014, 00:59:06 »
Have you tried compiling one of the keyboard examples as is, without making any edits? It's good just to know that your compiler etc are working as they should.  Since you are using the GH60 as a template I would start with that...the original.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #17 on: Sun, 06 April 2014, 01:01:47 »
Tried that and I get the same issue's and errors with an empty folder called gh60_lufa.  I am installing ubuntu in virtualbox right now as per mkawa.  Apparently winavr is known to have issues with windoze 8.1, which I have.

This might prove interesting as I have never done any programming and have never touched anything linux based before know. 
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #18 on: Sun, 06 April 2014, 01:09:33 »
What a coincidence! I just recently decided to teach myself how to use Linux...I had an old laptop, so I loaded it with the latest Ubuntu distro.  Coming from a long time Windows user I must say it's a bit of an adjustment.

On programming, just follow the compiler instructions on the PJRC teensy tutorial.  They have pretty good instructions for setting up your tool chain on Ubuntu.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #19 on: Sun, 06 April 2014, 01:14:14 »
Cool thanks sean.  I am currently running this in virtualbox but if I like it I might just dual boot it.  That would be another first for me. 

This is getting scary.

First I try programming my own firmware (read modifying existing one).
Second, installed Ubuntu 64 bit in virtual box.
Third, thinking of possibly dualbooting a version of Linux on intel hardware.

Off topic quick question.  How does Linux OS performance compare between Intel, Mac, and AMD hardware?
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #20 on: Sun, 06 April 2014, 01:16:50 »
Just realized you are planning on using a virtualbox.  I have to say, it was really easy to setup ubuntu to run from a usb drive.  This can be nice because you can use it as a fully functional backup OS.  I made a "trial" LiveCD.  It had an "install Ubuntu" option.  It will let you install to a usb and even include the boot loader on the usb.  Let me know if you have any problems.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #21 on: Sun, 06 April 2014, 01:21:26 »
Just realized you are planning on using a virtualbox.  I have to say, it was really easy to setup ubuntu to run from a usb drive.  This can be nice because you can use it as a fully functional backup OS.  I made a "trial" LiveCD.  It had an "install Ubuntu" option.  It will let you install to a usb and even include the boot loader on the usb.  Let me know if you have any problems.

Well "ubuntu" just finished loading after the install not time to look around.  Does software installation go roughly the same with a virtual box?

Download the correct files on Host OS then install from the Guest OS correct?
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #22 on: Sun, 06 April 2014, 01:30:22 »
The rabbit hole is deep!  I'm in the same boat as you.  Every time I figure something out it just leads me to something new.  All of a sudden I'm soldering SMD, I know what diodes and transistors are, and I'm beginning to see how programs and integrated circuit chips work...

Regarding Linux, I'm not sure what to say.  I've only been using it a few weeks.  The hardest thing for me to get used to it's using the command line.  It gives me crazy flashbacks to middle school using MSDOS.  It's not strictly necessary, but it is very powerful if you know what the commands are.  For performance, I've had crazy fast boot and shutdown times.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #23 on: Sun, 06 April 2014, 01:35:15 »
cool thanks I think I am going to call it a night and see about getting a hold of the required tools tomorrow.

If someone could post a link or two for these for Ubuntu that would be great.  I plan on compiling the firmware in Ubuntu via virtualbox and then actually flashing the firmware to the teensy in windoze.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline Grendel

  • Posts: 462
  • Location: OR, USA
    • Firmware for Costar Replacement Controllers
Re: Help with firmware.
« Reply #24 on: Sun, 06 April 2014, 12:33:53 »
Hm, did you try a newer version of avr-gcc/make ? The current WinAVR release is getting a bit long in the tooth, there are known problems w/ almost everything in that package. Different builds of make are reported as been problematic under W8.1. I'm using currently this one (avr-gcc 4.7.0, avrlibc 1.8 ) w/ W7x64, another set to check out would be Atmel's toolchain (pretty much up to date compiler/libc).
Currently using: RK-9000WH/GR, CMS QFXT w/ Ghost Squid
- I'm game !

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #25 on: Mon, 07 April 2014, 11:17:44 »
Alright I currently have ubuntu running in virtualbox.  I managed to get the firmware files/folder moved over to a location where it can be seen.  I navigated to the proper folder in the terminal and did make -f Makefile.  It gives me about the same error message with no targets. 

No idea what is going on here.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #26 on: Mon, 07 April 2014, 14:45:47 »
Alright I think I might be done with this.  Would someone be willing to compile this just so I can see if it is me or not?  This is mostly to see if it is an issue with my OS/software while trying to compile or if it is an issue with the files I am trying to compile.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #27 on: Mon, 07 April 2014, 15:17:49 »
Sure thing.  How do you want to send the files?

Offline christkind

  • Posts: 23
  • Location: Austria
Re: Help with firmware.
« Reply #28 on: Mon, 07 April 2014, 15:21:54 »
Alright I think I might be done with this.  Would someone be willing to compile this just so I can see if it is me or not?  This is mostly to see if it is an issue with my OS/software while trying to compile or if it is an issue with the files I am trying to compile.

Downloaded newest version of hasu firmware, added your code from post #11 to the specified files. I get a few syntax errors, but not the same error you got. See the screenshot attached.

I think what you are getting might me a permission problem of your drive. Try running as admin or see if the folder has the correct rights for you to create new files from command line (or trying running cmd as admin)

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #29 on: Mon, 07 April 2014, 16:29:43 »
Sure thing.  How do you want to send the files?

PM sent.

Alright I think I might be done with this.  Would someone be willing to compile this just so I can see if it is me or not?  This is mostly to see if it is an issue with my OS/software while trying to compile or if it is an issue with the files I am trying to compile.

Downloaded newest version of hasu firmware, added your code from post #11 to the specified files. I get a few syntax errors, but not the same error you got. See the screenshot attached.

I think what you are getting might me a permission problem of your drive. Try running as admin or see if the folder has the correct rights for you to create new files from command line (or trying running cmd as admin)


I got the same thing when running CMD as admin.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #30 on: Mon, 07 April 2014, 17:59:47 »
Ok...I think your tmk common and/or protocol files are messed up somehow.  When I tried to compile using the file set you sent me I got a bunch of strange errors.  I copied over those two folders with mine (just the common and protocol folders) and things looked much better.

Like christkind says, there are still syntax errors, but at least they tell you which file and which line is at fault.  I agree, try downloading the latest firmware files.  Or, if you want I can send you the file set I am working with.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #31 on: Mon, 07 April 2014, 18:05:35 »
Ok...I think your tmk common and/or protocol files are messed up somehow.  When I tried to compile using the file set you sent me I got a bunch of strange errors.  I copied over those two folders with mine (just the common and protocol folders) and things looked much better.

Like christkind says, there are still syntax errors, but at least they tell you which file and which line is at fault.  I agree, try downloading the latest firmware files.  Or, if you want I can send you the file set I am working with.

Alright.  I will try and download a new batch and try compiling a stock batch later tonight.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline sean4star

  • Posts: 59
  • Location: Arlington, TX
Re: Help with firmware.
« Reply #32 on: Mon, 07 April 2014, 18:12:39 »
To clarify, you can keep the work you have done so far in the GH60 folder.  Once you have the latest tmk firmware just copy your version of the GH60 folder back into the keyboard directory.  I would actually just rename it to something that is meaningful to you, so the original GH60 will still be there for reverence later.  Changing the name of the folder won't hurt anything.

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #33 on: Mon, 07 April 2014, 18:46:51 »
Quote from: Melvang
[code
>
/usr/bin/sh: fork: Resource temporarily unavailable
[/code]

You have had this in all of your errors (I think). It does appear that you are missing some libs in your path.

I will try to compile it tonight if I have a chance. If I get it working I will send you a virtual box image of the env with your code on it.

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #34 on: Mon, 07 April 2014, 22:18:58 »
wow, getting all of the dependencies together on a Ubuntu box to get tmk to compile is retarded.  wish the readme actually explained the steps rather than just pointing to a bunch of links without really explaining how to actually setup the dependencies.  :(

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #35 on: Tue, 08 April 2014, 00:12:51 »
SUCCESS!!

Had a friend of mine (and wife's co-worker) help me out.  Looks like I am going to be digging up my windows 7 disc for dual boot for the compiling.

either that or figuring out how to get it compiled on ubuntu and moved back over to the windows side
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline dorkvader

  • Posts: 6288
  • Location: Boston area
  • all about the "hack" in "geekhack"
Re: Help with firmware.
« Reply #36 on: Tue, 08 April 2014, 00:14:21 »
SUCCESS!!

Had a friend of mine (and wife's co-worker) help me out.  Looks like I am going to be digging up my windows 7 disc for dual boot for the compiling.

either that or figuring out how to get it compiled on ubuntu and moved back over to the windows side


Excellent! If I may ask, what were you missing/ what did you learn that solved things? I am somewhat of a newbie with respect to this sort of thing as well, so I'd like to know so that I can learn from it.

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #37 on: Tue, 08 April 2014, 00:15:34 »
I haven't learned anything yet aside from Winavr doesn't like windows 8.1.  I still have to look over the actual files and see what he did to them.

Edit:  Well it kind of works but it isn't a software/firmware issue.  I have the teensy soldered to the wrong side of the diodes.  Shorting the wires on the columns and the wire past the last diode on the row makes the correct number.  It is just programed to do 1-9 right now for simplicity.
« Last Edit: Tue, 08 April 2014, 00:21:58 by Melvang »
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #38 on: Tue, 08 April 2014, 20:21:27 »
I finally got a clean setup of Ubuntu installed with everything required for compiling (and flashing I think, tbtested).  I know you now have everything compiling, so it may not be needed.  Let me know if you would like the image anyway.

I set this up as a VirtualBox VM so it can easily be exported and re-imported.  I initially struggled with the install of all the dependencies because I was trying to compile all the dependencies from scratch.  I found this reference which was VERY helpful for getting everything setup, so I started over and built a clean image.

Here is what is on the image:
Code: (bash) [Select]
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gcc build-essential
$ sudo apt-get install gcc-avr gdb-avr binutils-avr avr-libc avrdude
$ sudo apt-get install git
$ git clone https://github.com/tmk/tmk_keyboard.git

I also installed the Sublime Text 3 editor so there was a nice editor installed.

Thats pretty much it.  I can make the VirtualBox VM image available if anyone wants it...

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #39 on: Tue, 08 April 2014, 20:46:15 »
I finally got a clean setup of Ubuntu installed with everything required for compiling (and flashing I think, tbtested).  I know you now have everything compiling, so it may not be needed.  Let me know if you would like the image anyway.

I set this up as a VirtualBox VM so it can easily be exported and re-imported.  I initially struggled with the install of all the dependencies because I was trying to compile all the dependencies from scratch.  I found this reference which was VERY helpful for getting everything setup, so I started over and built a clean image.

Here is what is on the image:
Code: (bash) [Select]
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gcc build-essential
$ sudo apt-get install gcc-avr gdb-avr binutils-avr avr-libc avrdude
$ sudo apt-get install git
$ git clone https://github.com/tmk/tmk_keyboard.git

I also installed the Sublime Text 3 editor so there was a nice editor installed.

Thats pretty much it.  I can make the VirtualBox VM image available if anyone wants it...

That would be awesome.  Right now for me to get a compiled firmware I have been doing the editing on my pc and then moving everything to the wifes computer to actually compile as I don't get the app load error that I guess is associated with winavr and 8.1.  Her pc is running win 7 right now.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #40 on: Tue, 08 April 2014, 20:58:17 »
I finally got a clean setup of Ubuntu installed with everything required for compiling (and flashing I think, tbtested).  I know you now have everything compiling, so it may not be needed.  Let me know if you would like the image anyway.

I set this up as a VirtualBox VM so it can easily be exported and re-imported.  I initially struggled with the install of all the dependencies because I was trying to compile all the dependencies from scratch.  I found this reference which was VERY helpful for getting everything setup, so I started over and built a clean image.

Here is what is on the image:
Code: (bash) [Select]
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gcc build-essential
$ sudo apt-get install gcc-avr gdb-avr binutils-avr avr-libc avrdude
$ sudo apt-get install git
$ git clone https://github.com/tmk/tmk_keyboard.git

I also installed the Sublime Text 3 editor so there was a nice editor installed.

Thats pretty much it.  I can make the VirtualBox VM image available if anyone wants it...

That would be awesome.  Right now for me to get a compiled firmware I have been doing the editing on my pc and then moving everything to the wifes computer to actually compile as I don't get the app load error that I guess is associated with winavr and 8.1.  Her pc is running win 7 right now.

Ok, I will export it and put it on Dropbox for you.  I have not synced my Dropbox in a couple weeks, so it may take a few minutes for me to get it online.

Also, I have added two additional keyboards to the TMK firmware that I pulled down.  I added the JD40 firmware and made sure it compiled.  I also have a folder in there called 'swill40' which is currently the un-compiled version of exactly what is in the JD40 directory.  I will be creating a few additional 40% layouts in there when I have a chance...

I will post the link to the image here once it is ready in case other people want to grab it... 

Offline Melvang

  • Exquisite Lord of Bumfluff
  • * Maker
  • Thread Starter
  • Posts: 4398
  • Location: Waterloo, IA
  • Melvang's Desktop Customs
Re: Help with firmware.
« Reply #41 on: Tue, 08 April 2014, 21:00:29 »
I finally got a clean setup of Ubuntu installed with everything required for compiling (and flashing I think, tbtested).  I know you now have everything compiling, so it may not be needed.  Let me know if you would like the image anyway.

I set this up as a VirtualBox VM so it can easily be exported and re-imported.  I initially struggled with the install of all the dependencies because I was trying to compile all the dependencies from scratch.  I found this reference which was VERY helpful for getting everything setup, so I started over and built a clean image.

Here is what is on the image:
Code: (bash) [Select]
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gcc build-essential
$ sudo apt-get install gcc-avr gdb-avr binutils-avr avr-libc avrdude
$ sudo apt-get install git
$ git clone https://github.com/tmk/tmk_keyboard.git

I also installed the Sublime Text 3 editor so there was a nice editor installed.

Thats pretty much it.  I can make the VirtualBox VM image available if anyone wants it...

That would be awesome.  Right now for me to get a compiled firmware I have been doing the editing on my pc and then moving everything to the wifes computer to actually compile as I don't get the app load error that I guess is associated with winavr and 8.1.  Her pc is running win 7 right now.

Ok, I will export it and put it on Dropbox for you.  I have not synced my Dropbox in a couple weeks, so it may take a few minutes for me to get it online.

Also, I have added two additional keyboards to the TMK firmware that I pulled down.  I added the JD40 firmware and made sure it compiled.  I also have a folder in there called 'swill40' which is currently the un-compiled version of exactly what is in the JD40 directory.  I will be creating a few additional 40% layouts in there when I have a chance...

I will post the link to the image here once it is ready in case other people want to grab it...

Awesome thanks.  Don't worry about getting it up and going right away.  I need to do some reconstructive soldering anyway.  Found the issue with my test bed.  The diodes are in backwards.
OG Kishsaver, Razer Orbweaver clears and reds with blue LEDs, and Razer Naga Epic.   "Great minds crawl in the same sewer"  Uncle Rich

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #42 on: Tue, 08 April 2014, 22:19:53 »
Alright.  Here is the VirtualBox image.  Since it is an OVA, it should work with VMware Fusion as well.

Download the OVA image
username: onepcb
password: password

To launch Sublime Text from the command line use 'subl'.  I also added an icon to the left menu for Sublime Text.

Let me know if you have questions or if I missed passing along any info.

Cheers...

Edit: TMK is at ~/tmk_keyboard/
« Last Edit: Tue, 08 April 2014, 22:42:22 by swill »

Offline swill

  • * Elevated Elder
  • Posts: 3365
  • Location: Canada eh
  • builder & enabler
    • swillkb.com
Re: Help with firmware.
« Reply #43 on: Sat, 12 April 2014, 10:21:30 »
Alright.  Here is the VirtualBox image.  Since it is an OVA, it should work with VMware Fusion as well.

Download the OVA image
username: onepcb
password: password

To launch Sublime Text from the command line use 'subl'.  I also added an icon to the left menu for Sublime Text.

Let me know if you have questions or if I missed passing along any info.

Cheers...

Edit: TMK is at ~/tmk_keyboard/

Was this helpful? Or have you had a chance to try it yet?