Jump to content

Stripped-Down port of MIOS32 core on STM32F407 (HAL based)


marcos_ee
 Share

Recommended Posts

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!

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

  • 1 month later...

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