Lamouette Posted April 10, 2016 Author Report Share Posted April 10, 2016 Hey there, after long time, i continue my work on the SEQ !, i use it sometimes, but as it don't have case actually, it is a bit of stress for me. I am at the point of adding 2nd Quad_IIC to extend more the midi outputs. Looks like i arrive to the point i have to modify some files to config this, And..... I am totally lost ! At this point everything i read looks like foreign language... But as soldering was not easy 4 years ago, i finnished to solder so i will try to understand this ! I have to modify 2 files : mios32_config.h seq_midi_port.c I found these files in the MidiboxV4 web folder, but how can i download theses files ? Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 10, 2016 Author Report Share Posted April 10, 2016 Ok, i think i found the proper midibox wiki page about that : I did exactly what is asked, but when i do make : i have this : (c) 2015 Microsoft Corporation. Tous droits réservés. C:\Users\Lamouette>make --version GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i686-pc-msys C:\Users\Lamouette>cmd Microsoft Windows [version 10.0.10240] (c) 2015 Microsoft Corporation. Tous droits réservés. C:\Users\Lamouette>cd C:\mios32\trunk\apps\sequencers\midibox_seq_v4 C:\mios32\trunk\apps\sequencers\midibox_seq_v4>SET PATH=C:\MSYS\1.0\bin;%programfiles%\gputils\bin;%programfiles%\SDCC\bin;%PATH% C:\mios32\trunk\apps\sequencers\midibox_seq_v4>make Makefile:150: /programming_models/traditional/programming_model.mk: No such file or directory Makefile:153: /modules/app_lcd//app_lcd.mk: No such file or directory Makefile:156: /modules/blm/blm.mk: No such file or directory Makefile:159: /modules/blm_x/blm_x.mk: No such file or directory Makefile:162: /modules/blm_scalar_master/blm_scalar_master.mk: No such file or directory Makefile:165: /modules/aout/aout.mk: No such file or directory Makefile:168: /modules/sequencer/sequencer.mk: No such file or directory Makefile:171: /modules/notestack/notestack.mk: No such file or directory Makefile:174: /modules/midifile/midifile.mk: No such file or directory Makefile:177: /modules/fatfs/fatfs.mk: No such file or directory Makefile:180: /modules/file/file.mk: No such file or directory Makefile:183: /modules/random/random.mk: No such file or directory Makefile:186: /modules/freertos_utils/freertos_utils.mk: No such file or directory Makefile:189: /modules/uip/uip.mk: No such file or directory Makefile:192: /modules/uip_task_standard/uip_task_standard.mk: No such file or directory Makefile:196: /include/makefile/common.mk: No such file or directory make: *** No rule to make target `/include/makefile/common.mk'. Stop. C:\mios32\trunk\apps\sequencers\midibox_seq_v4> But impossble to get a .hex file anywhere... Any ideas ? Quote Link to comment Share on other sites More sharing options...
EsotericLabs Posted April 10, 2016 Report Share Posted April 10, 2016 did you set the additional environment variables?as in http://www.midibox.org/dokuwiki/doku.php?id=windows_mios32_toolchain_core Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 10, 2016 Author Report Share Posted April 10, 2016 (edited) Ok, i retryed this morning, redoing each step and i got : C:\mios32\trunk\apps\sequencers\midibox_seq_v4>make rm -f project.hex Creating object file for app.c make: arm-none-eabi-gcc: Command not found make: *** [project_build/core/app.o] Error 127 I downloaded the gcc-arm-none-eabi-4_7-2013q3-20130916-win32 and renamed it and put it on my c: as on the tuto. I suppose the problem come from it but i can't point it. Edited April 10, 2016 by Lamouette Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 10, 2016 Author Report Share Posted April 10, 2016 Ok, i erased everything, and restarted from a clean install, and back to my first error : C:\MIDIBOX\Mios32\trunk\apps\sequencers\midibox_seq_v4>make Makefile:150: /C/MIDIBOX/mios32/trunks/programming_models/traditional/programming_model.mk: No such file or directory Makefile:153: /C/MIDIBOX/mios32/trunks/modules/app_lcd/universal/app_lcd.mk: No such file or directory Makefile:156: /C/MIDIBOX/mios32/trunks/modules/blm/blm.mk: No such file or directory Makefile:159: /C/MIDIBOX/mios32/trunks/modules/blm_x/blm_x.mk: No such file or directory Makefile:162: /C/MIDIBOX/mios32/trunks/modules/blm_scalar_master/blm_scalar_master.mk: No such file or directory Makefile:165: /C/MIDIBOX/mios32/trunks/modules/aout/aout.mk: No such file or directory Makefile:168: /C/MIDIBOX/mios32/trunks/modules/sequencer/sequencer.mk: No such file or directory Makefile:171: /C/MIDIBOX/mios32/trunks/modules/notestack/notestack.mk: No such file or directory Makefile:174: /C/MIDIBOX/mios32/trunks/modules/midifile/midifile.mk: No such file or directory Makefile:177: /C/MIDIBOX/mios32/trunks/modules/fatfs/fatfs.mk: No such file or directory Makefile:180: /C/MIDIBOX/mios32/trunks/modules/file/file.mk: No such file or directory Makefile:183: /C/MIDIBOX/mios32/trunks/modules/random/random.mk: No such file or directory Makefile:186: /C/MIDIBOX/mios32/trunks/modules/freertos_utils/freertos_utils.mk: No such file or directory Makefile:189: /C/MIDIBOX/mios32/trunks/modules/uip/uip.mk: No such file or directory Makefile:192: /C/MIDIBOX/mios32/trunks/modules/uip_task_standard/uip_task_standard.mk: No such file or directory Makefile:196: /C/MIDIBOX/mios32/trunks/include/makefile/common.mk: No such file or directory make: *** No rule to make target `/C/MIDIBOX/mios32/trunks/include/makefile/common.mk'. Stop. Here are my variables : See pictures And the specifics ones : USER : MIOS_PATH - C:\mios_base_v1_1;C:\MIDIBOX\Mios32\trunk PATH - C:\Program Files\SDCC\bin;C:\Program Files\gputils\bin;C:\Perl64\bin SYSTEM : MIOS_BIN_PATH - C:\MIDIBOX\mios_base\bin;C:\MIDIBOX\Mios32\trunk\bin MIOS_PATH - C:\MIDIBOX\mios_base PATH - C:\Perl64\site\bin;C:\Perl64\bin;C:\MSYS\1.0\bin;%programfiles%\gputils\bin;%programfiles%\SDCC\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\Pinnacle\Shared Files\;C:\Program Files\TortoiseSVN\bin Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted April 11, 2016 Report Share Posted April 11, 2016 ... have you set the other environment variables, as well? for lpc17: set MIOS32_GCC_PREFIX=arm-none-eabi set MIOS32_FAMILY=LPC17xx set MIOS32_PROCESSOR=LPC1769 set MIOS32_BOARD=MBHP_CORE_LPC17 set MIOS32_LCD=universal am not a windows user, but methinks you should also not call "make" from the windows console, but from the msys console, I think, only this one will properly resolve paths like /c/... to map to drive c: (this explains the first error). Many greets and good luck! Peter Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 11, 2016 Author Report Share Posted April 11, 2016 I am using the MBHP_CORE_STM32F4: set MIOS32_GCC_PREFIX=arm-none-eabi set MIOS32_FAMILY=STM32F4xx set MIOS32_PROCESSOR=STM32F407VG set MIOS32_BOARD=MBHP_CORE_STM32F4 set MIOS32_LCD=universal i will try to use the MSYS console. Thanks for your help ! Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 11, 2016 Author Report Share Posted April 11, 2016 (edited) Again, Same error... Do you think it can be because i use Windows 10 ? Every thing looks like installing perfectly, i just re-removed everything, and tried to work with the strict minimum, but i got the same error. I also added all the path using : $ set PATH=%PATH%;/C/midibox/mios_base/bin and more (SDCC/gputils/MSYS1.0) But i got still the same error. Edited April 12, 2016 by Lamouette Added informations Quote Link to comment Share on other sites More sharing options...
lis0r Posted April 12, 2016 Report Share Posted April 12, 2016 Maybe install a Linux VM, and try building inside of that? MSYS, cygwin, etc. are always a painful experience. 1 Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted April 12, 2016 Report Share Posted April 12, 2016 Yes, the recommendation to go to a linux VM (or a parallel installation on a memory stick or partition) is very good :-) Other than that, in the msys console, if you do a ls /C/MIDIBOX/mios32/trunks/programming_models/traditional/programming_model.mk does it show the file? If not, your installation directory is wrong. That's what the first error is about, it cannot find the file listed above... Many greets, Peter Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 13, 2016 Author Report Share Posted April 13, 2016 (edited) I will go for linux as last try, because, it looks really difficult to set up, and i just want to change some line of code :D To be honnest coding or just writing lines on a old fashion black command line, make me feels like a 80's geek But i try, and i will be very proud once i will have it working ! You were right, it can't find the file : if i do : ls /C/MIDIBOX/mios32/trunks/programming_models/traditional/programming_model.mk I got : $ ls /C/MIDIBOX/mios32/trunks/programming_models/traditional/programming_model.mk ls: /C/MIDIBOX/mios32/trunks/programming_models/traditional/programming_model.mk: No such file or directory There is 4 differents pages about installing everything on Windows : http://www.midibox.org/dokuwiki/doku.php?id=windows_toolchain_core http://www.midibox.org/dokuwiki/doku.php?id=windows_toolchain_quickstart http://www.midibox.org/dokuwiki/doku.php?id=windows_mios32_toolchain_core http://www.midibox.org/dokuwiki/windows_toolchain_core#path_environment_variables A they praticaly say the same things, some things are different about the path, and other things. maybe i have misunderstand one thing ? In my /c/midibox folders i have : mios_base (which contains a folders with the common.mk in it (C:\Midibox\mios_base\include\makefile) mios32 (which contains all the documents i downloader via turtoise (so the mios32 complete svn) mios32_toolchain Are my folders ok ? did i miss something ? I added path with this code : Lamouette@LAMOUETTE-PC ~ $ set path=/c/msys/1.0/bin Lamouette@LAMOUETTE-PC ~ $ set mios32_path=/c/midibox/mios32/trunk Lamouette@LAMOUETTE-PC ~ $ set mios32_bin_path=/c/mios32/trunk/bin Lamouette@LAMOUETTE-PC ~ $ set MIOS32_GCC_PREFIX=arm-none-eabi Lamouette@LAMOUETTE-PC ~ $ set MIOS32_FAMILY=STM32F4xx Lamouette@LAMOUETTE-PC ~ $ set MIOS32_PROCESSOR=STM32F407VG Lamouette@LAMOUETTE-PC ~ $ set MIOS32_BOARD=MBHP_CORE_STM32F4 Lamouette@LAMOUETTE-PC ~ $ set MIOS32_LCD=universal Lamouette@LAMOUETTE-PC ~ $ cd /c/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 Lamouette@LAMOUETTE-PC /c/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ ls /C/MIDIBOX/mios32/trunks/programming_models/traditional/programming_model.mk ls: /C/MIDIBOX/mios32/trunks/programming_models/traditional/programming_model.mk: No such file or directory Lamouette@LAMOUETTE-PC /c/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ set path=/c/midibox/mios_base/bin Lamouette@LAMOUETTE-PC /c/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ set path=/c/midibox/mios_base/ Lamouette@LAMOUETTE-PC /c/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ set mios path=/c/midibox/mios_base/ Lamouette@LAMOUETTE-PC /c/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ set mios_path=/c/midibox/mios_base/ Lamouette@LAMOUETTE-PC /c/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ set mios_bin_path=/c/midibox/mios_base/bin Edited April 13, 2016 by Lamouette Mistake corrections Quote Link to comment Share on other sites More sharing options...
EsotericLabs Posted April 13, 2016 Report Share Posted April 13, 2016 isn't there a bit of confusion in the paths? There is /c/midibox/mios32/trunkS / with that extra s. And maybe something gets confused about the mios_base directory. I'm not on windows, so I cannot verify and maybe it's a stupid suggestion, but on the other hand... Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 13, 2016 Author Report Share Posted April 13, 2016 Yes, i am sure you are right... As i see the SVN, it is trunk, without S http://svnmios.midibox.org/listing.php?repname=svn.mios32&path=%2F& What,s the difference between the mios_base, and the mios32 directory ? Should i have/use both ? Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted April 13, 2016 Report Share Posted April 13, 2016 Oh man, did not nearly get enough sleep in the last time :-) And a very good find, EsotericLabs! I just blindly copied and pasted the error line, without checking the path :-), but now am confident, EsotericLabs has found the problem :-) --> Please recheck your MIOS32 variables, you set in windows, according to the wiki. I have a feeling, you specified "trunks" somewhere within the MIOS32_PATH.<-- Also, the command to set MIOS32_PATH manually in the console should be "set MIOS32_PATH=/c/midibox/mios32/trunk", not "set mios path..." or "set mios_path...", uppercase/lowercase is important, spaces are not allowed and you need to set the 32-bit variables, i.e. you do not need to set MIOS_PATH, as you are building for the new 32-bit platform, follow the mios32_toolchain tutorial and set it in the windows preferences. Methinks you just need to kick the "s" out of "trunks" in your MIOS32_PATH :-): http://www.midibox.org/dokuwiki/doku.php?id=windows_mios32_toolchain_core (you also only need the mios32 directory on your harddisk, as you are only building for a new 32-bit core) Many greets and good luck! :-) Peter Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 14, 2016 Author Report Share Posted April 14, 2016 (edited) Ok, i did everything again : Check if i haven't put an ''s'' somewhere, everything is ok ! When i type LS, it looks ok Lamouette@LAMOUETTE-PC /c/Midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ ls /C/MIDIBOX/mios32/trunk/programming_models/traditional/programming_model.mk /C/MIDIBOX/mios32/trunk/programming_models/traditional/programming_model.mk But for make, nothing at all, same error : Lamouette@LAMOUETTE-PC ~ $ set MIOS32_PATH=/C/Midibox/mios32/trunk Lamouette@LAMOUETTE-PC ~ $ set MIOS32_BIN_PATH=/C/Midibox/mios32/trunk/bin Lamouette@LAMOUETTE-PC ~ $ set MIOS32_GCC_PREFIX=arm-none-eabi Lamouette@LAMOUETTE-PC ~ $ set MIOS32_FAMILY=STM32F4xx Lamouette@LAMOUETTE-PC ~ $ set MIOS32_PROCESSOR=STM32F407VG Lamouette@LAMOUETTE-PC ~ $ set MIOS32_BOARD=MBHP_CORE_STM32F4 Lamouette@LAMOUETTE-PC ~ $ set MIOS32_LCD=universal Lamouette@LAMOUETTE-PC ~ $ cd /c/Midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 Lamouette@LAMOUETTE-PC /c/Midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ make Makefile:150: /programming_models/traditional/programming_model.mk: No such file or directory Makefile:153: /modules/app_lcd//app_lcd.mk: No such file or directory Makefile:156: /modules/blm/blm.mk: No such file or directory Makefile:159: /modules/blm_x/blm_x.mk: No such file or directory Makefile:162: /modules/blm_scalar_master/blm_scalar_master.mk: No such file or directory Makefile:165: /modules/aout/aout.mk: No such file or directory Makefile:168: /modules/sequencer/sequencer.mk: No such file or directory Makefile:171: /modules/notestack/notestack.mk: No such file or directory Makefile:174: /modules/midifile/midifile.mk: No such file or directory Makefile:177: /modules/fatfs/fatfs.mk: No such file or directory Makefile:180: /modules/file/file.mk: No such file or directory Makefile:183: /modules/random/random.mk: No such file or directory Makefile:186: /modules/freertos_utils/freertos_utils.mk: No such file or directory Makefile:189: /modules/uip/uip.mk: No such file or directory Makefile:192: /modules/uip_task_standard/uip_task_standard.mk: No such file or directory Makefile:196: /include/makefile/common.mk: No such file or directory make: *** No rule to make target `/include/makefile/common.mk'. Stop. So it looks like it can find the files to compile. maybe it is just MSYS not working ? Edited April 14, 2016 by Lamouette Added informations Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted April 14, 2016 Report Share Posted April 14, 2016 Hmm... earlier on, you posted you got this output: C:\MIDIBOX\Mios32\trunk\apps\sequencers\midibox_seq_v4>make Makefile:150: /C/MIDIBOX/mios32/trunks/programming_models/traditional/programming_model.mk: No such file or directory Makefile:153: /C/MIDIBOX/mios32/trunks/modules/app_lcd/universal/app_lcd.mk: No such file or directory was this in the normal command shell? This had the trunkS problem, but otherwise looks good. because the current output Lamouette@LAMOUETTE-PC /c/Midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ make Makefile:150: /programming_models/traditional/programming_model.mk: No such file or directory the whole path ahead of /programming_models is missing. It looks like your environment variable MIOS32_BASE is still not set. Or that I gave you the wrong tip of switching to the msys console. Or the msys console does not honor the paths set in the windows preferences, which might be the case. Can you try two things? a) retry in the command shell of windows b) in the msys console, do not write set MIOS32_PATH=/C/Midibox/mios32/trunk but instead write export MIOS32_PATH=/C/Midibox/mios32/trunk for all the other environment variables as well... and then retry to "make". Good luck and please report back! Peter Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 14, 2016 Author Report Share Posted April 14, 2016 First, really thanks for your help ! Really thanks ! So now : When i do : make on Windows console c:\Midibox\mios32\trunk\apps\sequencers\midibox_seq_v4>make C:/Midibox/mios32/trunk/include/makefile/common.mk:138: *** multiple target patterns. Stop. When i do : make on MSYS console Lamouette@LAMOUETTE-PC /c/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 $ make /C/midibox/mios32/trunk/mios32/mios32.mk:61: /C/midibox/mios32/trunk/mios32//mios32_family.mk: No such file or directory Makefile:153: /C/midibox/mios32/trunk/modules/app_lcd//app_lcd.mk: No such file or directory make: *** No rule to make target `/C/midibox/mios32/trunk/modules/app_lcd//app_lcd.mk'. Stop. Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted April 14, 2016 Report Share Posted April 14, 2016 You are welcome! But wow - no clue! Never seen this before, but never built on windows.. Really, a small linux on a memory stick is a nice thing to have! :-) Maybe others have some ideas regarding the last errors. We made some progress, but not enough, yet... Many greets, Peter Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 14, 2016 Author Report Share Posted April 14, 2016 Ok, i will install a VM... let's see if if it cool ! i ll keep you updated ! Thanks again ! Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 15, 2016 Author Report Share Posted April 15, 2016 Ok, i installed a VM, and eveything ! easier than i thought ! I looks really good ! BUT ! I have again an error ! :( lamouette@lamouette-VirtualBox:~/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4$ make rm -f project.hex Creating object file for app.c make: arm-none-eabi-gcc: Command not found make: *** [project_build/core/app.o] Error 127 I tried to download the gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2 via the terminal, but it is not working so i downloaded it directly, unzipped it and put it on the midibox folder and renamed it as mios32_toolchain I think i added too much pat, but i don't think it will cause problems when i do : echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/midibox/mios32_toolchain/bin:/home/lamouette/midibox/mios32_toolchain/bin:/home/midibox/mios32_toolchain/bin:/home/midibox/mios32_toolchain Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted April 15, 2016 Report Share Posted April 15, 2016 Yes! We might make a *nix user out of you, after all! :-D That problem should be solvable. Here is a small shell trick: if you are looking for something, go to the / directory and type cd / find . | grep "arm-none-eabi-gcc$" that should list all files that contain the "grepped" string arm-none-eabi - the $ is the end-of-line marker, looking only for strings that end in that word. Please post the output. My guess is, that you installed it somewhere out of your $PATH How did the installation of the gcc-arm-none-eabi... bz2 package as documented in the linux toolchain page fail? Many greets, Peter Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 16, 2016 Author Report Share Posted April 16, 2016 (edited) Hello ! Nonestly if there was more vst on Linux (Espacially Aalto and Fabfilter one, i would have switched on lineux, as i use Bitwig, which is on linux as well ! Ok, so today, i could DL the linux toolchain in /usr/local, but if i do : sudo tar zxvf gcc-arm-none-eabi-4_7-2013q3-20130916-linux.tar.bz2 I got : gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now When i try to directly extract on the folder looks lie i am not the owner so i don't have permission. so i copy it on my home/midibox, i extract here, and rename the folder toolchain_mios32 There is 4 folders on it : arm-none-eabi bin lib share -------------------------------------------------------- If i do : lamouette@lamouette-VirtualBox:~/midibox/toolchain_mios32$ find . | grep "arm-none-eabi-gcc$" I got : ./bin/arm-none-eabi-gcc Where arm-none-eabi-gcc is wrote in red Or : lamouette@lamouette-VirtualBox:~/midibox/toolchain_mios32$ cd ~/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4 lamouette@lamouette-VirtualBox:~/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4$ make rm -f project.hex Creating object file for app.c make: arm-none-eabi-gcc: Command not found make: *** [project_build/core/app.o] Error 127 lamouette@lamouette-VirtualBox:~/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4$ cd ~/midibox lamouette@lamouette-VirtualBox:~/midibox$ find . | grep "arm-none-eabi-gcc$" ./toolchain_mios32/bin/arm-none-eabi-gcc lamouette@lamouette-VirtualBox:~/midibox$ echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/lamouette/midibox/toolchain_mios32/bin Edited April 16, 2016 by Lamouette Quote Link to comment Share on other sites More sharing options...
Hawkeye Posted April 16, 2016 Report Share Posted April 16, 2016 Ok, a few hints, we will get this working at some point in time! :-D You might need to call "sudo" ahead of all commands listed below, depending on your *nix. bzip vs gzip bzip is a version with better compression efficiency than gzip - thus the extension .tar.bz2 to unpack a .tar.bz2 do a bunzip2 <filename> followed by a tar -xvf <filename-of-resulting .tar file> Now, unpacking should work and you can follow the toolchain installation guide again. Make sure you unpack into the right directory, where your PATH and set MIOS32 variables point to. arm-none-eabi-gcc To see what is going on in the build process, and why it fails (especially, where arm-none-eabi-gcc is being expected), in the midibox_seq_v4 directory, perform a make --trace this will show the paths it does try to load. On my machine, it displays something like Creating object file for seq_ui_pages.c arm-none-eabi-gcc -Wp,-MMD,project_build/core/seq_ui_pages.dd -g -Os -DGCC_ARMCM3 -L /usr/local/stm32-f4/arm-none-eabi/lib -DMIOS32_PROCESSOR_STM32F407VG -DMIOS32_FAMILY_STM32F4xx -DMIOS32_FAMILY_STR=\"STM32F4xx\" -DMIOS32_BOARD_MBHP_CORE_STM32F4 -DMIOS32_BOARD_STR=\"MBHP_CORE_STM32F4\" -DMIOS32_LCD_universal -DMIOS32_LCD_STR=\"universal\" -DUSE_STDPERIPH_DRIVER -DUSB_SUPP... This means, it tries to load arm-none-eabi-gcc directly from the $PATH to show, what is in the path, perform a set | grep PATH This will show you something like this: PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/local/stm32f4/bin Finally, try to call arm-none-eabi-gcc directly from the command line. The expected behaviour is, that is says, "no input files". [hawkeye@psy /home/code/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4]$ arm-none-eabi-gcc arm-none-eabi-gcc: fatal error: no input files compilation terminated. I'd say, you unpacked the arm-none-eabi-gcc somewhere not in PATH, even when the "find . | grep ..." found it in /bin, it is probably some kind of stale softlink and not able to be directly executed. Please try again by following the unpacking procedure as stated in the toolchain installation guide (now with bunzip2 unpacking) and try again. If it fails, list the PATH, and try to call arm-none-eabi-gcc directly and tell us, what the error message is. If you are desperate and are sure you unpacked it right, you can also call rm /bin/arm-none-eabi-gcc This makes kind of sense, as the arm cross compiler should not reside there, but in the path you unpacked it to. Your *nix will follow your PATH from left to right, so it will try to load from /bin first - and if that version fails, you can install as many crosscompilers as you like, calling it will always fail. So the removal with "rm" is recommended in this case (it might break an os - installed package of the cross compiler, but never mind :-)). Many greets and have a nice weekend! Peter Quote Link to comment Share on other sites More sharing options...
Lamouette Posted April 17, 2016 Author Report Share Posted April 17, 2016 (edited) Ok, thanks again for all the time you take to help me, it is a hard case here :) So i could extract the .tar with your command lines But : When i do : make lamouette@lamouette-VirtualBox:~/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4$ make rm -f project.hex Creating object file for app.c make: arm-none-eabi-gcc: Command not found make: *** [project_build/core/app.o] Error 127 same error. When i do : make --trace make: unrecognized option '--trace' When i do : set | grep PATH lamouette@lamouette-VirtualBox:~/midibox/mios32/trunk/apps/sequencers/midibox_seq_v4$ set | grep PATH COMPIZ_BIN_PATH=/usr/bin/ DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path MIOS32_BIN_PATH=/home/lamouette/midibox/mios32/trunk/bin MIOS32_PATH=/home/lamouette/midibox/mios32/trunk PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/gcc-arm-none-eabi-4_7-2013q3/bin XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 local cmd PATH=$PATH:/sbin; if [[ -z "${CDPATH:-}" || "$cur" == ?(.)?(.)/* ]]; then for i in ${CDPATH//:/' PATH=$PATH:/usr/sbin:/sbin:/usr/local/sbin type $1 &> /dev/null COMPREPLY=($( compgen -W "$( PATH="$PATH:/sbin" lsmod | awk '{if (NR != 1) print $1}' )" -- "$1" )) local PATH=$PATH:/sbin; local PATH="$PATH:/sbin:/usr/sbin"; COMPREPLY+=($( compgen -W "$( PATH="$PATH:/sbin" lspci -n | awk '{print $3}')" -- "$cur" )) local PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin; COMPREPLY+=($( compgen -W "$( PATH="$PATH:/sbin" lsusb | awk '{print $6}' )" -- "$cur" )) How do i "call" the file ? with ls ? Sorry for my noob questions... It could not be a problem because i am in 64bits ? i run on ubuntu, maybe it is the problem ? Maybe because i run a VM ? Edited April 17, 2016 by Lamouette Quote Link to comment Share on other sites More sharing options...
Keeze Posted April 17, 2016 Report Share Posted April 17, 2016 Perhaps try to download the toolchain again in /usr/local and than unzip it with tar -xvfj gcc-arm-none-eabi-xxxxxx.tar.bz2. I have a VM with LUbuntu, and followed http://www.midibox.org/dokuwiki/doku.php?id=linux_mios32_toolchain_core with exception of the command above... Everything compiles without any errors... 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.