BEBDigitalAudio Posted August 23, 2016 Report Share Posted August 23, 2016 (edited) Hello all, I noticed that the MIDIBox DokuWiki is a little bit outdated (still based on XP screenshots) and not necessarily easy to understand for true beginners. I have written the small guide here to describe step by step as best as possible the installation and configuration of Eclipse for MIOS32 projects. All comments are welcome of course (and if somebody wants to try to make sure that nothing is missing or is wrong, he/she is welcome ) Benoit (EDIT : due to an update, the first version of the file has been deleted from this message to avoid any mismatch. Please see below for the updated version) Edited August 24, 2016 by BEBDigitalAudio Quote Link to comment Share on other sites More sharing options...
latigid on Posted August 23, 2016 Report Share Posted August 23, 2016 Nice job! I managed to do it the old fashioned way the other evening, just setting environment variables by hand and invoking "make" from the project directory. But this looks easy enough for anyone to try :). With Eclipse are you able to set different "presets" for distinct build environments? I know you can run into trouble with multiple toolchains etc. Quote Link to comment Share on other sites More sharing options...
Psykhaze Posted August 23, 2016 Report Share Posted August 23, 2016 Wow great Work @BEBDigitalAudio ! I will give it a deep review / test / I will try to make a similar Tutorial with Code:blocks . If you have no wiki account i will be pleased to create the following content, just pm me =) Bests, Jerome Quote Link to comment Share on other sites More sharing options...
BEBDigitalAudio Posted August 24, 2016 Author Report Share Posted August 24, 2016 (edited) 8 hours ago, latigid on said: Nice job! I managed to do it the old fashioned way the other evening, just setting environment variables by hand and invoking "make" from the project directory. But this looks easy enough for anyone to try :). With Eclipse are you able to set different "presets" for distinct build environments? I know you can run into trouble with multiple toolchains etc. Hi Latigid, thank you for your comment. About the "presets": they are already included. On this PC, I have different toolchain installed (one for Intel Galileo, one for MIOS32, one for XMOS, etc...), they all run under Eclipse and they do not conflict each other. The reason is simple : every instance of Eclipse saves its own settings in a separate directory. Eclipse does not know the concept of Windows registry (not portable), so there is no common place where configurations would conflict between each others. However, you have to take within Eclipse about paths, because this may lead Eclipse to scan the wrong directory when it executes the makefile. That's why I never declare paths to toolchains directly in system's path environment variables, but directly within Eclipse Benoit Edited August 24, 2016 by BEBDigitalAudio Quote Link to comment Share on other sites More sharing options...
BEBDigitalAudio Posted August 24, 2016 Author Report Share Posted August 24, 2016 8 hours ago, Psykhaze said: Wow great Work @BEBDigitalAudio ! I will give it a deep review / test / I will try to make a similar Tutorial with Code:blocks . If you have no wiki account i will be pleased to create the following content, just pm me =) Bests, Jerome Hi Jerome (tiens un autre Français ) I sent you a PM about the Wiki Benoit Quote Link to comment Share on other sites More sharing options...
BEBDigitalAudio Posted August 24, 2016 Author Report Share Posted August 24, 2016 And here is already a first update... (Sorry, I realized that an important step was missing in the first version of the document) MIOS32 Eclipse installation on Windows 10.pdf Quote Link to comment Share on other sites More sharing options...
BEBDigitalAudio Posted August 25, 2016 Author Report Share Posted August 25, 2016 On 23/08/2016 at 10:04 PM, latigid on said: Nice job! I managed to do it the old fashioned way the other evening, just setting environment variables by hand and invoking "make" from the project directory. But this looks easy enough for anyone to try :). With Eclipse are you able to set different "presets" for distinct build environments? I know you can run into trouble with multiple toolchains etc. Hey Latigid By the way, I just forgot to tell you : you can create as many "presets" as you want, with different toolchain configuration, just by creating as many workspaces as you want. For example, on this computer, I have one MIOS32 configuration for the "pure" MIDIBox projects (the projects presented on the website), and I have another one, located in a different directory, with its own SVN image for my HorusDSP projects (since there is a MIDIBox version of it). Each workspace has its own build environment configuration, defined in the Preferences. When you switch from one workspace to another, Eclipse takes care to point to correct source code folder and toolchain folders. If you need more help with this setup, just tell me, I can explain more in details Quote Link to comment Share on other sites More sharing options...
prusaga Posted February 1, 2020 Report Share Posted February 1, 2020 Hello everyone, I am new to midibox and a beginner at embedded programming. I have followed the instructions but am unable to build the project. It says the make files are not to be found but when I check project in the project explorer the files are very much present. Any help would be appreciated. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Antichambre Posted February 1, 2020 Report Share Posted February 1, 2020 (edited) Hi, Check or add the correct path in environment: Page 14 in the pdf Best Bruno Edited February 1, 2020 by Antichambre 1 Quote Link to comment Share on other sites More sharing options...
prusaga Posted February 1, 2020 Report Share Posted February 1, 2020 Hello, Thank you for the quick reply. I had renamed the folder as there was a space. Still the problem persists in a different way. I am using Windows 10 and Eclipse Luna as stated in the given steps. I feel I am missing a basic step. Quote Link to comment Share on other sites More sharing options...
Antichambre Posted February 1, 2020 Report Share Posted February 1, 2020 (edited) Still page 14 -> "Note the special syntax to enter the MIOS32_PATH. The value “/c/mios32/trunk” means “c:\mios32\trunk” for Eclipse. " Edited February 1, 2020 by Antichambre Quote Link to comment Share on other sites More sharing options...
prusaga Posted February 1, 2020 Report Share Posted February 1, 2020 Hello Bruno, Thank you for the quick reply and support. I have followed your instructions and it works perfectly well. I My bad for mot following the instructions perfectly. Quote Link to comment Share on other sites More sharing options...
Antichambre Posted February 2, 2020 Report Share Posted February 2, 2020 You're welcome! Have fun ;) Quote Link to comment Share on other sites More sharing options...
m.str Posted June 10, 2020 Report Share Posted June 10, 2020 (edited) This might be a dumb question, because it seems so obvious to everyone, but where do you get the "trunk" folder? I can't find it on GitHub. In the repository that I've been directed to by this https://github.com/midibox/mios32 The only place I found a folder called trunk was in the folder for the FM Synthesizer module.. I guess there is a major misunderstanding going on here.. EDIT: So i just looked up that a trunk folder is something like a master branch in Git. I guess that as an environment variable for the MIOS32_PATH i just need to select the location that exactly depicts the folder-layer shown when clicking on the link above.. Edited June 10, 2020 by m.str Newfound knowledge Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted June 10, 2020 Report Share Posted June 10, 2020 1 hour ago, m.str said: EDIT: So i just looked up that a trunk folder is something like a master branch in Git. I guess that as an environment variable for the MIOS32_PATH i just need to select the location that exactly depicts the folder-layer shown when clicking on the link above.. Welcome to the MIDIbox forums! :-) Yes, that is correct. At some point in time, TK. moved away from using subversion as a code revisioning system and moved on to git, which is a bit more modern. During this process, "trunk" was removed, so if you find any old documentation or file paths referencing to it, you can just remove this part of the directory tree. Have fun and many greets, Peter Quote Link to comment Share on other sites More sharing options...
m.str Posted June 10, 2020 Report Share Posted June 10, 2020 1 minute ago, Hawkeye said: Welcome to the MIDIbox forums! :-) Yes, that is correct. At some point in time, TK. moved away from using subversion as a code revisioning system and moved on to git, which is a bit more modern. During this process, "trunk" was removed, so if you find any old documentation or file paths referencing to it, you can just remove this part of the directory tree. Have fun and many greets, Peter Thank you for the warm welcome! Beziehungsweise "danke", denn ich komme auch aus Deutschland was hier wie ich sehe nicht angezeigt wird :) Anyways, it's still better to continue in English, because unfortunately I have another/similar problem... The PATH Variable seems to be incorrect, but i cannot really imagine why.. Hence I added the pictures, what am I missing? Quote Link to comment Share on other sites More sharing options...
m.str Posted June 10, 2020 Report Share Posted June 10, 2020 (edited) 38 minutes ago, m.str said: Thank you for the warm welcome! Beziehungsweise "danke", denn ich komme auch aus Deutschland was hier wie ich sehe nicht angezeigt wird :) Anyways, it's still better to continue in English, because unfortunately I have another/similar problem... The PATH Variable seems to be incorrect, but i cannot really imagine why.. Hence I added the pictures, what am I missing? Okay so I found that the MIOS32_PATH was wrong, I actually thought that just because the "/c/" part is lower case everything had to be lower case... Anyway there is another error, now with the toolchain EDIT: While tyring to move aroung the gcc folder and then unzip it again from the file that was introduced in the tutorial I noticed that the .zip file is damaged (Warning during the unzip processing). The Process of unzipping still finishes and the file that is mentioned in the Eclipse eroor IS there, but maybe that's still the source of error. Does anyone know another place where I can get a non-corrupted zip-file? Edited June 10, 2020 by m.str Quote Link to comment Share on other sites More sharing options...
Antichambre Posted June 10, 2020 Report Share Posted June 10, 2020 (edited) In explorer, search if stdint.h is an existing file in the folder c:/studium/bachelor/gcc-toolchain/mios32_toolchain/lib/gcc/arm-none-eabi/4.7.4/include/ and check this folder too. Quote EDIT: While tyring to move aroung the gcc folder and then unzip it again from the file that was introduced in the tutorial I noticed that the .zip file is damaged (Warning during the unzip processing). The Process of unzipping still finishes and the file that is mentioned in the Eclipse eroor IS there, but maybe that's still the source of error. Does anyone know another place where I can get a non-corrupted zip-file? Download it again http://www.midibox.org/mios32_toolchain/gcc-arm-none-eabi-4_7-2013q3-20130916-win32.zip and use 7-zip, it was working for me. Edited June 10, 2020 by Antichambre Quote Link to comment Share on other sites More sharing options...
m.str Posted June 10, 2020 Report Share Posted June 10, 2020 2 minutes ago, Antichambre said: In explorer, search if stdint.h is an existing file in the folder c:/studium/bachelor/gcc-toolchain/mios32_toolchain/lib/gcc/arm-none-eabi/4.7.4/include/ and check this folder too. It is found by the explorer's search function. and I find it by moving to it manually. Everytime I moved the folder around I also re-set the environment variables, both in Windows and in Eclipse. I now removed the one in the Windows settings, to no success... After relocating the toolchain folder to just C:/toolchain this is the value of my PATH Variable in Eclipse C:\msys\1.0\bin;C:\toolchain\bin (Append variables to native environment selected) Quote Link to comment Share on other sites More sharing options...
m.str Posted June 10, 2020 Report Share Posted June 10, 2020 (edited) 45 minutes ago, Antichambre said: In explorer, search if stdint.h is an existing file in the folder c:/studium/bachelor/gcc-toolchain/mios32_toolchain/lib/gcc/arm-none-eabi/4.7.4/include/ and check this folder too. Download it again http://www.midibox.org/mios32_toolchain/gcc-arm-none-eabi-4_7-2013q3-20130916-win32.zip and use 7-zip, it was working for me. Downloaded it again, unpacked it with 7-zip. No error message about a damaged zip file turned up. That was a valuable tip of yours, thanks a lot! Moved it to the right destination. Now this error Edited June 10, 2020 by m.str Quote Link to comment Share on other sites More sharing options...
Antichambre Posted June 10, 2020 Report Share Posted June 10, 2020 Clean the project and rebuild... Quote Link to comment Share on other sites More sharing options...
m.str Posted June 10, 2020 Report Share Posted June 10, 2020 (edited) 17 hours ago, Antichambre said: Clean the project and rebuild... Didn't know that was a thing actually.. I always just deleted and reimported the projects. Tried that now, still the same result though.. SOLVED: This morning I threw everything that I had set up according to the instruction manual so far away and re-worked the whole thing anew. Noteably I only set the Env variables in Eclipse and unzipped every upcoming .zip-file with 7-zip. Don't really whatever went wrong there, but that's what fixed it. Thank you Antichambre for your kind help! Edited June 11, 2020 by m.str Solved 1 Quote Link to comment Share on other sites More sharing options...
Antichambre Posted June 12, 2020 Report Share Posted June 12, 2020 Great! ;) You're welcome. Have fun! Quote Link to comment Share on other sites More sharing options...
marcos_ee Posted December 15, 2022 Report Share Posted December 15, 2022 Hello guys! I'm trying to build MIOS32 and I have a few questions. I read most documentations and I have been studying the sources for almost a week now. It's really a great contribution from Thorsten. Before I dive into details of my question, I found this post very helpful and might have the answer I'm looking for. However, I was wondering if same steps work/apply to STM32CubeIDE? As you know, it's an Eclipse based IDE. I have another question, but I believe it's better to ask in a new thread! Marcos Quote Link to comment Share on other sites More sharing options...
xarolium Posted July 29 Report Share Posted July 29 (edited) Hello everybody, like marcos asked two years ago, i also want to add MIOS32 to STM32IDE. I follow the steps on th great tutorial made by BEBDigitalAudio but when i tried to compile a apps i got the following error. I also think i didn't understand how to access to file with Tortoise SVN. Can somebody help me please. make all Makefile:73: c:\mios32\trunk/programming_models/traditional/programming_model.mk: No such file or directory Makefile:76: c:\mios32\trunk/modules/app_lcd/Universal/app_lcd.mk: No such file or directory Makefile:79: c:\mios32\trunk/modules/midi_router/midi_router.mk: No such file or directory Makefile:82: c:\mios32\trunk/modules/midimon/midimon.mk: No such file or directory Makefile:85: c:\mios32\trunk/modules/uip/uip.mk: No such file or directory Makefile:88: c:\mios32\trunk/modules/uip_task_standard/uip_task_standard.mk: No such file or directory Makefile:91: c:\mios32\trunk/modules/freertos_utils/freertos_utils.mk: No such file or directory Makefile:94: c:\mios32\trunk/modules/keyboard/keyboard.mk: No such file or directory Makefile:97: c:\mios32\trunk/modules/ainser/ainser.mk: No such file or directory Makefile:100: c:\mios32\trunk/modules/aout/aout.mk: No such file or directory Makefile:103: c:\mios32\trunk/modules/max72xx/max72xx.mk: No such file or directory Makefile:106: c:\mios32\trunk/modules/ws2812/ws2812.mk: No such file or directory Makefile:109: c:\mios32\trunk/modules/notestack/notestack.mk: No such file or directory Makefile:112: c:\mios32\trunk/modules/fatfs/fatfs.mk: No such file or directory Makefile:115: c:\mios32\trunk/modules/file/file.mk: No such file or directory Makefile:118: c:\mios32\trunk/modules/md5/md5.mk: No such file or directory Makefile:121: c:\mios32\trunk/modules/sequencer/sequencer.mk: No such file or directory Makefile:124: c:\mios32\trunk/modules/msd/msd.mk: No such file or directory Makefile:127: c:\mios32\trunk/modules/scs/scs.mk: No such file or directory Makefile:131: c:\mios32\trunk/include/makefile/common.mk: No such file or directory make: *** No rule to make target `c:\mios32\trunk/include/makefile/common.mk'. Stop. "make all" terminated with exit code 2. Build might be incomplete. Edited July 29 by xarolium 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.