Jump to content

avockley

Members
  • Posts

    36
  • Joined

  • Last visited

  • Days Won

    1

Everything 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. I get gpasm-0.14.1 (Dec 27 2011) Edit: I just tried removing 0.14.1 and installing 0.13.6, and the same errors are still occurring.
  5. It appears that I copied too much of the terminal output. I actually fixed that problem and the current problem starts further down.
  6. 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. Any ideas?
  7. 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?
  8. 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?
  9. 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?
  10. Could you suggest a way to approach using a matrix, possibly a tutorial or completed program I can use as a starting point?
  11. 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...