Jump to content

MIOS C Wrapper Beta


TK.
 Share

Recommended Posts

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.

Link to comment
Share on other sites

  • 1 month later...

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.

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

  • 3 months later...

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...