Page 1 of 1

eBlocks MIDI Board :-{

Posted: Mon Aug 20, 2012 3:58 pm
by Sparkoids
I have taken delivery of a spanking new eBlock to do MIDI on but the test files do not work again on FC5.4 and I (once again!) removed FC4...

snip>>>>>

Midi_tx_JD.c
Starting preprocessor: C:\PROGRA~2\Flowcode\v5\Tools\boostc\pp.exe Midi_tx_JD.c -i C:\PROGRA~2\Flowcode\v5\Tools\boostc\include -d _PIC18F4455 -la -c2 -o Midi_tx_JD.pp -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX

Midi_tx_JD.c(191): Unable to open include file: MIDI.h
Midi_tx_JD.c(198): Unable to open include file: MIDI.c

2 errors detected
Error: preprocessing error

failure
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:


If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.


FINISHED

snip>>>>>


Any ideas of what's wrong and why it keeps happening to me? :-{


Best regards,


James Dexter :-{

Re: eBlocks MIDI Board :-{

Posted: Mon Aug 20, 2012 5:36 pm
by Benj
Hi James,

Here are versions of the MIDI test files which are written in v5.4 using the MIDI component.

The files Master and Slave show how to transmit and receive MIDI messages.

The files Master_HW and Slave_HW do exactly the same thing but I have switched the standard software UART for a more reliable hardware UART by slightly modifying the code in the defines macro for the MIDI component.

Let me know how you get on.

Re: eBlocks MIDI Board :-{

Posted: Tue Aug 21, 2012 8:13 am
by Sparkoids
Ben you never let me down!

I'll let you know how they go...


James :-}

Re: eBlocks MIDI Board :-{

Posted: Tue Aug 21, 2012 8:21 am
by Sparkoids
Hi Ben,

Still not working - it can't find midi.c file...

>>>>Starting preprocessor: C:\PROGRA~2\Flowcode\v5\Tools\boostc\pp.exe Master_HW.c -i C:\PROGRA~2\Flowcode\v5\Tools\boostc\include -d _PIC18F4455 -la -c2 -o Master_HW.pp -v -d _BOOSTC -d _PIC18 -d _CHAR_INDEX

Master_HW.c(837): Unable to open include file: MIDI.C

1 errors detected
Error: preprocessing error

failure
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:

>>>>

Re: eBlocks MIDI Board :-{

Posted: Tue Aug 21, 2012 9:27 am
by Benj
Sorry about that there must still be a reference in the files to the include file which is present on my machine which explains why it was working for me.

If you go into Build -> Project options and untick the "Use supplementary code" then the reference to the external file should be removed and allow you to compile.

Re: eBlocks MIDI Board :-{

Posted: Wed Aug 22, 2012 4:24 pm
by Sparkoids
Hi Ben,

Thank you very much for that. It is showing an Error on the LCD but it does compile now and transfer correctly so I can keep going from here....

Have a good one and give yourself a pat on the back...

Best regards,


James :-}