marcos_ee Posted February 3 Report Share Posted February 3 Hello guys, I've been working on this for almost two months. I have read plenty of documentations, referred to almost all tutorials/examples inside the repository to understand how MIOS32 works so I can derive a stripped-down version with only functions needed in my project. I'm trying to make a Midi file player and a simple sequencer. I just don't need most of the stuff for USB<>MIDI, I2C, SPI, LCD, and many others. MIOS32 is a great project and a huge contribution from Thorsten. I know there's no equivalent initiative available for public in this regards. However, I just find the code highly dependent on several modules, old Std. Peripheral libs, and extremely difficult to port. Juce is not an option at the moment. Any advice is highly appreciated! Thank you! Quote Link to comment Share on other sites More sharing options...
marcos_ee Posted February 3 Author Report Share Posted February 3 Wow. Just realized that I have posted similar question months ago and still no response yet! Quote Link to comment Share on other sites More sharing options...
Phatline Posted February 4 Report Share Posted February 4 go in mios32_config.h (a file in the root of your project) and deactivate all you dont need with: #define MIOS32_DONT_USE_SYS #define MIOS32_DONT_USE_IRQ #define MIOS32_DONT_USE_SPI #define MIOS32_DONT_USE_SPI0 #define MIOS32_DONT_USE_SPI1 #define MIOS32_DONT_USE_SPI2 #define MIOS32_DONT_USE_SRIO #define MIOS32_DONT_USE_DIN #define MIOS32_DONT_USE_DOUT #define MIOS32_DONT_USE_ENC #define MIOS32_DONT_USE_AIN #define MIOS32_DONT_USE_MF #define MIOS32_DONT_USE_LCD #define MIOS32_DONT_USE_MIDI #define MIOS32_DONT_USE_OSC #define MIOS32_DONT_USE_COM #define MIOS32_DONT_USE_USB #define MIOS32_DONT_USE_USB_MIDI #define MIOS32_USE_USB_COM #define MIOS32_DONT_USE_UART #define MIOS32_DONT_USE_UART_MIDI #define MIOS32_DONT_USE_IIC #define MIOS32_DONT_USE_IIC_MIDI #define MIOS32_USE_I2S #define MIOS32_DONT_USE_BOARD #define MIOS32_DONT_USE_TIMER #define MIOS32_DONT_USE_STOPWATCH #define MIOS32_DONT_USE_DELAY #define MIOS32_DONT_USE_SDCARD #define MIOS32_DONT_USE_ENC28J60 then strip down all you dont need in your app.c.... if you have to include stuff from mios, copy it into your project directory, and include it with "display.h" instead of <display.h>, strip that file down (remove all stuff that is for other microcontrollers like the lpc, or other things you dont need) and maybe you got an glue, whats going on.... cant say more, but would really like see mios on a better faster bigger microcontroller then the stm32f407vgt6, since my project itself is already limited by the ram and flash capabillitys...hopefully someday somone comes that have the will and knowledge to port that... i dont have the knowledge (so forget me) Quote Link to comment Share on other sites More sharing options...
marcos_ee Posted March 17 Author Report Share Posted March 17 I just found your reply by coincidence. I was waiting for months and didn't expect to hear back from anyone. I have posted a new question regarding the programming model of MIOS and would love to get some feedback. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.