eBlocks MIDI Board :-{

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

Post Reply
Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Has thanked: 30 times
Been thanked: 19 times

eBlocks MIDI Board :-{

Post 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 :-{

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: eBlocks MIDI Board :-{

Post 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.
Attachments
EB021 Factory test routine.zip
(9.72 KiB) Downloaded 252 times

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Has thanked: 30 times
Been thanked: 19 times

Re: eBlocks MIDI Board :-{

Post by Sparkoids »

Ben you never let me down!

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


James :-}

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Has thanked: 30 times
Been thanked: 19 times

Re: eBlocks MIDI Board :-{

Post 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:

>>>>

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: eBlocks MIDI Board :-{

Post 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.

Sparkoids
Posts: 267
Joined: Mon Sep 14, 2009 10:34 am
Has thanked: 30 times
Been thanked: 19 times

Re: eBlocks MIDI Board :-{

Post 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 :-}

Post Reply