MIDIFighter Source - Page 2
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 30
  1. #11

    Default

    So how sad is it I cant even get the original source to compile? Haha

    I followed the tutorial to the letter, I tried older versions of LUFA (The version that the makefile specifies), I reinstalled WinAvr, re-downloaded the Midifighter source, but everytime I try I get this:

    Code:
        
    -------- 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.
    
    make: *** No rules to make target 'midifighter.elf', needed by 'elf'. Stop.
    Any ideas?

    Thanks for your time,
    Ben

  2. #12
    Tech Convert
    Join Date
    Apr 2008
    Location
    Hangzhou
    Posts
    7

    Default

    Hello!
    I had the same problem, it seems that the makefile points and old library

    # Path to the LUFA library
    LUFA_PATH = ./LUFA091122
    i "think" because it is the first time i open a makefile hahaha

    i solve the problem downloading the version 091122.

    http://lufa-lib.googlecode.com/files/LUFA-091122.zip

    its important to delete the space between LUFA and the data otherwise doenst work for me. I tried to modify the makefile but give me a separator error, so decide to change the library instead hahaah

    Hope it works for you

  3. #13
    DJTT Super Moderator midifidler's Avatar
    Join Date
    Mar 2008
    Location
    San Francisco
    Posts
    1,902

    Default

    I had this problem and fixed it via editing the make file, there were a number of references which needed to be changed ...

  4. #14
    Tech Guru Fatlimey's Avatar
    Join Date
    Mar 2008
    Location
    Redmond, WA
    Posts
    1,169

    Default

    Oops, that's been there for a while. Better fix that in the Sourceforge stream.

    Yes, I renamed my LUFA directory for no good reason, mainly so I could have several in the same directory as I upgraded the source from one version of LUFA to another.

  5. #15
    Tech Convert
    Join Date
    Apr 2008
    Location
    Hangzhou
    Posts
    7

    Default

    Which software or IDE or whatever do you used to edit the code? notepad¿??¿!?!¿! maybe is an stupid question but i am curious...
    as far as i dont have to be tight to a special IDE maybe there is a good program to use easy, to keep tracked all the files and so on...
    can you recommend me one?

    Thank you

  6. #16

    Default

    I just wanted to update, I'm still working on this, but I'm taking some time to learn C, I kinda figured I need a better understanding if I really wanna pulll this off!

  7. #17

    Default

    Well, I just got my Teensy today, and I got it to connect as a USB device, my plan is to base my code of the LUFA MIDI demo, and add on, probably referencing the Midifighter source as I go.

  8. #18

    Default

    So I was just wondering about the function:
    Code:
    Endpoint_Write_Stream_LE
    In your code you have it as
    Code:
    Endpoint_Write_Stream_LE(&midi_event, sizeof(midi_event));
    but when I was writing mine, I found that the function had to have a callback. Is this just because of different versions of LUFA, or am I missing something?
    (Once I added a callback, just NULL, it worked fine, I was just wondering)


    Im still terribly terrible at programming, but Im getting more familiar with LUFA, and going back and forth between the demos and midifighter source has been helping a lot, thanks again for commenting it so well

    Thanks,
    Ben

    EDIT: Callback as the last argument, so its:
    Code:
    Endpoint_Write_Stream_LE(Buffer, Length, Callback);

  9. #19
    Tech Guru Fatlimey's Avatar
    Join Date
    Mar 2008
    Location
    Redmond, WA
    Posts
    1,169

    Default

    Quote Originally Posted by BenitoIsAwesomr View Post
    EDIT: Callback as the last argument, so its:
    Code:
    Endpoint_Write_Stream_LE(Buffer, Length, Callback);
    You can see the code for Endpoint_Write_Stream_LE() here in it's strange C-friendly "templated" form (essentially define some macros and include a source file that uses them!):

    http://code.google.com/p/lufa-lib/so...vel/Endpoint.c

    The prototype declaration for Endpoint_Write_Stream_LE() should have it's last argument have a "default value", e.g.

    void Endpoint_Write_Stream_LE(buffer, length, callback=NULL);

    but this is controlled in the latest LUFA libraries by a compile-time flag called "NO_STREAM_CALLBACKS". If this is defined anywhere in the makefile then the callbacks are not declared. The Midifighter doesn't use the stream callbacks so feel free to add that flag to the makefile.

    Another reason for me to update the source. *le sigh*

  10. #20

    Default

    As I suspected! I was worried I missed something, thanks for answering! I have very rudimentary midi out working (No buttons, just a loop) that stops when it gets midi in (It has an LED programmed to blink when it does receive midi in), I still have a long ways to go, and not much time to work with school starting up :|
    Anyways!

Page 2 of 3 FirstFirst 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •