Jump to content

avockley

Members
  • Posts

    36
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by avockley

  1. I am having a lot of trouble compiling my program. I think I have everything set up right. The code files are in a directory with all the mios directories (bin, etc, lib, ...). I have copied the makefile from the C template. The first set of errors told me that the MIOS_PATH variable hadn't been set, so I set that in the makefile. Now I'm getting an error saying that MIOS_BIN_PATH isn't set, but it is clearly set in the makefile. The makefile I'm using is below.

    MIOS_PATH = .
    
    MIOS_BIN_PATH = ./bin
    
    
    # define the processor, linker file and project name
    
    PROCESSOR = 18f4685
    
    LKR_FILE  = $(MIOS_PATH)/etc/lkr/p$(PROCESSOR).lkr
    
    PROJECT   = project
    
    
    # list of objects that should be created and linked
    
    OBJS = mios_wrapper.o app_lcd.o main.o debug_msg.o
    
    
    # include pathes (more will be added by .mk files)
    
    GPASM_INCLUDE = 
    
    SDCC_INCLUDE  = 
    
    
    # optional defines that should be passed to GPASM/SDCC
    
    GPASM_DEFINES = -DDEBUG_MODE=0
    
    SDCC_DEFINES  = -DDEBUG_MODE=0
    
    
    # pass parameters to MIOS wrapper
    
    MIOS_WRAPPER_DEFINES = -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f
    
    
    # directories and files that should be part of the distribution (release) package
    
    # more will be added by *.mk files
    
    DIST = ./
    
    
    # include the common.mk file
    
    include $(MIOS_PATH)/include/makefile/common.mk
    
    
    # include debug message module
    
    include $(MIOS_PATH)/modules/debug_msg/debug_msg.mk
    
    
    # include application specific driver (select app_lcd/dummy if MIOS internal driver used)
    
    include $(MIOS_PATH)/modules/app_lcd/dummy/app_lcd.mk
    This is the error I'm getting.
    new-host-3:Software aaron$ make
    
    rm -rf _output/*
    
    rm -rf _output
    
    rm -rf *.cod *.map *.lst
    
    rm -rf *.hex
    
    mkdir -p _output
    
    sh ./bin/mios-gpasm -c -p p18f4685 -I./src -I ./include/asm -I ./include/share -I ./modules/debug_msg -I ./modules/app_lcd/dummy -DDEBUG_MODE=0  -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I ./modules/mios_wrapper modules/mios_wrapper/mios_wrapper.asm  -o _output/mios_wrapper.o
    
    sh ./bin/mios-gpasm -c -p p18f4685 -I./src -I ./include/asm -I ./include/share -I ./modules/debug_msg -I ./modules/app_lcd/dummy -DDEBUG_MODE=0   modules/app_lcd/dummy/app_lcd.asm -o _output/app_lcd.o
    
    sh ./bin/mios-sdcc -c -mpic16 -p18f4685 --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2  -I./src -I ./include/c -I ./include/share -I ./modules/debug_msg -DDEBUG_MODE=0  main.c -o _output/main.o
    
    ERROR ./bin/mios-sdcc: MIOS_BIN_PATH variable not set!
    
    make: *** [_output/main.o] Error 1

    I really have no idea what I'm doing here. Any help would be greatly appreciated.

  2. I am designing my own circuit board with an entire MB SID on one broad, so that will not work. I just want to make the section of the power supply that outputs 14v output 9v instead. I'm pretty sure the only thing I have to do is remove the one wire and connect it to ground, but I want to make sure I don't fry my SIDs.

  3. Like the title says, I'm planning on using the C64 power brick to power my MidiBox with 8 SID6582s. The schematic given here shows a 14v output for the SID power rail. The 6582s want 9v, instead of 14v. I think the only change that I need to make is removing the wire between pin 2 of the 7809 and the 5v rail. Is this correct? Should pin 2 of the 7809 then be connected to the GND rail? Thanks in advance for any help.

  4. It appears that I copied too much of the terminal output. I actually fixed that problem and the current problem starts further down.

    new-host-6:Software aaron$ make

    rm -rf _output/*

    rm -rf _output

    rm -rf *.cod *.map *.lst

    rm -rf *.hex

    mkdir -p _output

    sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-gpasm -c -p p18f452 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper /Users/aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper/mios_wrapper.asm -o _output/mios_wrapper.o

    Usage: gpasm [options] file

    Options: [defaults in brackets after descriptions]

    -a FMT, --hex-format FMT Select hex file format. [inhx32]

    -c, --object Output relocatable object.

    -C, --new-coff Use new Microchip format.

    -d, --debug Output debug messages.

    -D SYM=VAL, --define SYM=VAL Define SYM with value VAL.

    -e [ON|OFF], --expand [ON|OFF] Macro expansion.

    -g, --debug-info Use debug directives for COFF.

    -h, --help Show this usage message.

    -i, --ignore-case Case insensitive.

    -I DIR, --include DIR Specify include directory.

    -l, --list-chips List supported processors.

    -L, --force-list Ignore nolist directives.

    -m, --dump Memory dump.

    -M, --deps Output dependency file.

    -n, --dos Use DOS newlines in hex file.

    -o FILE, --output FILE Alternate name of output file.

    -p PROC, --processor PROC Select processor.

    -q, --quiet Quiet.

    -r RADIX, --radix RADIX Select radix. [hex]

    -u, --absolute Use absolute pathes.

    -v, --version Show version.

    -w [0|1|2], --warning [0|1|2] Set message level. [0]

    -y, --extended Enable 18xx extended mode.

    Default header file path /usr/local/share/gputils/header

    Report bugs to:

    <URL:http://gputils.sourceforge.net/>

    sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-gpasm -c -p p18f452 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 /Users/aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy/app_lcd.asm -o _output/app_lcd.o

    Usage: gpasm [options] file

    Options: [defaults in brackets after descriptions]

    -a FMT, --hex-format FMT Select hex file format. [inhx32]

    -c, --object Output relocatable object.

    -C, --new-coff Use new Microchip format.

    -d, --debug Output debug messages.

    -D SYM=VAL, --define SYM=VAL Define SYM with value VAL.

    -e [ON|OFF], --expand [ON|OFF] Macro expansion.

    -g, --debug-info Use debug directives for COFF.

    -h, --help Show this usage message.

    -i, --ignore-case Case insensitive.

    -I DIR, --include DIR Specify include directory.

    -l, --list-chips List supported processors.

    -L, --force-list Ignore nolist directives.

    -m, --dump Memory dump.

    -M, --deps Output dependency file.

    -n, --dos Use DOS newlines in hex file.

    -o FILE, --output FILE Alternate name of output file.

    -p PROC, --processor PROC Select processor.

    -q, --quiet Quiet.

    -r RADIX, --radix RADIX Select radix. [hex]

    -u, --absolute Use absolute pathes.

    -v, --version Show version.

    -w [0|1|2], --warning [0|1|2] Set message level. [0]

    -y, --extended Enable 18xx extended mode.

    Default header file path /usr/local/share/gputils/header

    Report bugs to:

    <URL:http://gputils.sourceforge.net/>

    sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-sdcc -c -mpic16 -p18f452 --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/c -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -DDEBUG_MODE=0 main.c -o _output/main.o

    at 1: error 131: cannot generate code for target 'pic16'

    make: *** [_output/main.o] Error 1

    new-host-6:Software aaron$

  5. I am trying to compile my own software for MIOS8, and am having some trouble. I am doing this on OS X and have installed all the necessary software on my computer to do so. No matter what I do, I have the same problem when I run "make". The following is the terminal output while running make.

    new-host-6:Software aaron$ make

    rm -rf _output/*

    rm -rf _output

    rm -rf *.cod *.map *.lst

    rm -rf *.hex

    mkdir -p _output

    sh /mios-gpasm -c -p p18f452 -I./src -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I /Users/Aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper /Users/Aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper/mios_wrapper.asm -o _output/mios_wrapper.o

    sh: /mios-gpasm: No such file or directory

    make: *** [_output/mios_wrapper.o] Error 127

    new-host-6:Software aaron$ Make -version

    GNU Make 3.81

    Copyright © 2006 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.

    This program built for i386-apple-darwin11.0

    new-host-6:Software aaron$ nano Makefile

    new-host-6:Software aaron$ export MIOS_PATH=/Users/aaron/Do

    Documents/ Downloads/

    new-host-6:Software aaron$ export MIOS_PATH=/Users/aaron/Documents/Projects/Analog\ Synth/S

    Software/ Spec.rtf

    new-host-6:Software aaron$ export MIOS_PATH=/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/

    new-host-6:Software aaron$ export MIOS_BIN_PATH=/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin

    new-host-6:Software aaron$ export MIOS_PATH=/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1

    new-host-6:Software aaron$ make

    Makefile:29: /Users/aaron/Documents/Projects/Analog: No such file or directory

    Makefile:29: Synth/Software/Resources/mios_base_v1_1/include/makefile/common.mk: No such file or directory

    Makefile:32: /Users/aaron/Documents/Projects/Analog: No such file or directory

    Makefile:32: Synth/Software/Resources/mios_base_v1_1/modules/debug_msg/debug_msg.mk: No such file or directory

    Makefile:35: /Users/aaron/Documents/Projects/Analog: No such file or directory

    Makefile:35: Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy/app_lcd.mk: No such file or directory

    make: *** No rule to make target `Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy/app_lcd.mk'. Stop.

    new-host-6:Software aaron$ export MIOS_PATH="/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1"

    new-host-6:Software aaron$ export MIOS_BIN_PATH="/Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin"

    new-host-6:Software aaron$ make

    rm -rf _output/*

    rm -rf _output

    rm -rf *.cod *.map *.lst

    rm -rf *.hex

    mkdir -p _output

    sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-gpasm -c -p p18f452 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 -DSTACK_HEAD=0x37f -DSTACK_IRQ_HEAD=0x33f -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper /Users/aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/mios_wrapper/mios_wrapper.asm -o _output/mios_wrapper.o

    Usage: gpasm [options] file

    Options: [defaults in brackets after descriptions]

    -a FMT, --hex-format FMT Select hex file format. [inhx32]

    -c, --object Output relocatable object.

    -C, --new-coff Use new Microchip format.

    -d, --debug Output debug messages.

    -D SYM=VAL, --define SYM=VAL Define SYM with value VAL.

    -e [ON|OFF], --expand [ON|OFF] Macro expansion.

    -g, --debug-info Use debug directives for COFF.

    -h, --help Show this usage message.

    -i, --ignore-case Case insensitive.

    -I DIR, --include DIR Specify include directory.

    -l, --list-chips List supported processors.

    -L, --force-list Ignore nolist directives.

    -m, --dump Memory dump.

    -M, --deps Output dependency file.

    -n, --dos Use DOS newlines in hex file.

    -o FILE, --output FILE Alternate name of output file.

    -p PROC, --processor PROC Select processor.

    -q, --quiet Quiet.

    -r RADIX, --radix RADIX Select radix. [hex]

    -u, --absolute Use absolute pathes.

    -v, --version Show version.

    -w [0|1|2], --warning [0|1|2] Set message level. [0]

    -y, --extended Enable 18xx extended mode.

    Default header file path /usr/local/share/gputils/header

    Report bugs to:

    <URL:http://gputils.sourceforge.net/>

    sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-gpasm -c -p p18f452 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/asm -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy -DDEBUG_MODE=0 /Users/aaron/Documents/Projects/Analog Synth/Software/Resources/mios_base_v1_1/modules/app_lcd/dummy/app_lcd.asm -o _output/app_lcd.o

    Usage: gpasm [options] file

    Options: [defaults in brackets after descriptions]

    -a FMT, --hex-format FMT Select hex file format. [inhx32]

    -c, --object Output relocatable object.

    -C, --new-coff Use new Microchip format.

    -d, --debug Output debug messages.

    -D SYM=VAL, --define SYM=VAL Define SYM with value VAL.

    -e [ON|OFF], --expand [ON|OFF] Macro expansion.

    -g, --debug-info Use debug directives for COFF.

    -h, --help Show this usage message.

    -i, --ignore-case Case insensitive.

    -I DIR, --include DIR Specify include directory.

    -l, --list-chips List supported processors.

    -L, --force-list Ignore nolist directives.

    -m, --dump Memory dump.

    -M, --deps Output dependency file.

    -n, --dos Use DOS newlines in hex file.

    -o FILE, --output FILE Alternate name of output file.

    -p PROC, --processor PROC Select processor.

    -q, --quiet Quiet.

    -r RADIX, --radix RADIX Select radix. [hex]

    -u, --absolute Use absolute pathes.

    -v, --version Show version.

    -w [0|1|2], --warning [0|1|2] Set message level. [0]

    -y, --extended Enable 18xx extended mode.

    Default header file path /usr/local/share/gputils/header

    Report bugs to:

    <URL:http://gputils.sourceforge.net/>

    sh /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/bin/mios-sdcc -c -mpic16 -p18f452 --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -I./src -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/c -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/include/share -I /Users/aaron/Documents/Projects/Analog\ Synth/Software/Resources/mios_base_v1_1/modules/debug_msg -DDEBUG_MODE=0 main.c -o _output/main.o

    at 1: error 131: cannot generate code for target 'pic16'

    make: *** [_output/main.o] Error 1

    new-host-6:Software aaron$

    Any ideas?

  6. I am using the example blm-scalar app for mios32 and am trying to convert it in to a organ

    midifier. I am having the following 2 problems:

    1) In the application, the DIN_BLM_NotifyToggle() function gives pin and pin value. What exactly is the

    pin number? Is it the switches counted left-to-right and the top-to-bottom in the matrix?

    Also, does the pin value return 1 or 0 when a button is pushed?

    2) In the example app, there are 3 values to set which led is turned on or off, led_mod_ix,

    led_row_ix, and led_column_ix. What is led_mod_ix? Are row and column counted from 1 or 0?

  7. I have a 16x16 matrix that I need to control. I am using this to add a midi output to an old organ. It

    has one magnetic reed switch at each point.

    I believe the inputs work with 2 DOUTs and 2 DINs. For the sake of this post, I will assume the DOUTs

    are on the side and the DINs are on the bottom. In return for a button press in the matrix, you get a

    pin number and a value. Is the pin number counted left-to-right and then top-to-bottom in the matrix.

    Also, does the value return 1 for pushed and 0 for released or 0 for pushed and 1 for released?

    Finally, how do I specify what part of the matrix is connected to what DOUT or DIN

    Is any of this even close to correct, or am I way off base?

  8. Thanks for the help. This is exactly what I was looking for. I have just a few more issues.

    1) How do I set which DIN and DOUT shift registers are used by the matrix?

    2) Is the circuit design for the example program the same as the one used by Wilba for his MIDIbox SID,

    and do the switches send the inputs low or high when pushed.

    3) Are the buttons in the matrix counted from 0 or 1?

    4) How do I specify the DIN pins to use for rotary encoders? Am i correct in assuming that in the tutorial

    code for relative rotary encoders, enc_config.cfg.sr is the shift register the encoder is attached to, and

    that enc_config.cfg.pos is the pin on that register the encoder is attached to?

  9. This is a long shot, but I'm going to ask anyway. Is it possible to control 1 character LCD from 2 Core32 units?

    I am trying to add a midi I/O to an old Hammond organ. I need 2 Core32 units because there are too many

    keys/buttons/switches to be controlled from one core (a total of about 200). I am using a display to show the

    midi channel the manual/pedals/stops are set to and if anything is being transposed. The problem is, I really

    don't want 2 displays. Here is the layout of the displays so you can get an idea of what I have and what I want.

    What I have: 1st display

    ----Upper Manual----

    Chan: 1 Trans: 0

    ----Lower Manual----

    Chan: 2 Trans: 0

    2nd display

    -------Pedals-------

    Chan: 3 Trans: 0

    -------Stops--------

    Chan: 4

    What I want:

    Upper Manual: Chan: 1 Trans: 0

    Lower Manual: Chan: 2 Trans: 0

    Pedals: Chan: 3 Trans: 0

    Stops: Chan: 4

    Is this at all possible? Thanks in advance for any help.

×
×
  • Create New...