Jump to content

Recommended Posts

Posted

The most recent version of the C wrapper is now available for a public beta test: http://www.ucapps.de/tmp/mios_c_wrapper_beta1.zip

This package also contains a binary of the release candidate for MIOS V1.8, which is required to get the wrapper properly working (there is only a small change: FSR0L and FSR0H will be saved on interrupts)

More informations about the C interface can be found here:

http://www.ucapps.de/mios_c.html

Note that the current sdcc has a bug which doesn't produce proper assembly code for the PIC18F. Please use following sdcc snapshot  instead:

http://www.midibox.org/sdcc_tmp/sdcc-snapshot-i586-mingw32msvc-20040716.zip

Best Regards, Thorsten.

  • 1 month later...
Posted

Good news!

SDCC has reached a good stability again, so that that the use of the "latest and greatest" build (>20050123) is highly recommented.

Because of some conceptional changes in the compiler a new wrapper is required:

http://www.ucapps.de/tmp/mios_c_wrapper_beta2.zip

You can migrate your existing C code by copying all files from the skeleton directory (and subdirectories) except for main.c into your project directoy.

The only change in main.c:

  void ENC_NotifyChange(unsigned char encoder, unsigned char incrementer)

has been changed to:

  void ENC_NotifyChange(unsigned char encoder, char incrementer)

Best Regards, Thorsten.

  • 2 weeks later...
Posted

Snapshot from 20050123 is no longer aviable from SDCC homepage, anyone have it zip'ed ?

Or Is it ok to use a newer snapshot or should i exepct some buggs ? Well, I'll try anyway....

best

/Wise

Posted

Hi Wise,

in the meantime it should be ok to use the "latest and greatest" version

Once I've finished the documentation of MIDIbox FM, I will continue with the C stuff. I'm planning a C testsuite (some kind of reliability test) which ensures that the most important C constructs are working, and that all MIOS functions can be accessed

Best Regards, Thorsten.

  • 3 months later...
Posted

hi

have just build my first midibox and MBHP_BURNER_V1

have trouble to use midi-ox but have managed to use mios studio upload version 1.7 of mios

but i want to program in c and i can only finde a syx file of mios v 1,8 rc1

can you post or send me an hex file of mios 1.8 so i can program in c

and another question  is it okey to use sdcc version 2.5.0

Thanks

Martin

Posted

Hi Martin,

yes, SDCC 2.5.0 is ok

I'm just working with the C wrapper and found a major problem in conjunction with MPLAB (first time I'm writing a more complex application with it)

The details can be found here: http://sourceforge.net/tracker/index.php?func=detail&aid=1203088&group_id=599&atid=100599

However, in the meantime I'm using gpasm which is also available for Win32 - it works perfectly.

I will write down the details once the C based MIDIbox MM application is finished and once I'm sure that there is no other issue

.hex file: you will get it via email

Best Regards, Thorsten.

Posted

The low/high byte order has been changed (again) in SDCC 2.5.0, this means that all MIOS functions which are using 16bit words (like some AIN and BANKSTICK/FLASH/EEPROM functions) don't work anymore.

However, I will release a new wrapper soon

Best Regards, Thorsten.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...