I’ve just received and built my first core32 and now I’m trying to set up the toolchain, following the detailed setup guide in the wiki. Using SVN I downloaded the Tutorial 001 and tried to compile it:
makefile:48: /programming_models/traditional/programming_model.mk: No such file or directory
makefile:51: /modules/app_lcd//app_lcd.mk: No such file or directory
makefile:54: /include/makefile/common.mk: No such file or directory
make: *** No rule to make target `/include/makefile/common.mk'. Stop.
In the second line, you can see, that there’s nothing inserted into the $(LCD)-gap I can see in the makefile, and it pretty much seems to be the same with the other lines, where the first part of the path is missing.
I can find file two and three in the mios-base directory, the first must be somewhere else.
However, it looks like the environment-variables are not right here. I read something about a “.profile”-file in the forums but that seemed to be related to linux. I have the following environement-variables in my system:
Firstly for CORE32, you use MIOS32_PATH not MIOS_PATH and secondly, it depends which version of make you are using. If you are using the make that comes with MSYS then you must use /DRIVE/DIRECTORY if using the modified one that comes with MINGW, you just use /DIRECTORY. There are various variables that must be set:
I followed your advice and changed the variables. It didn’t work first, but after changing from the “/c/users/” style to “c:/users/”, it worked fine. I got quite a lot of errors from then until it dawned on me, that the setup guide in the wiki is probably meant for MIOS8 (??) and therefor the downloaded files are MIOS8 and not MIOS32. So I deleted all the base-files and re-downloaded them using SVN (in the hope to get the right files this time). Now i get this:
Which toolchain are you using? The current recommended one is the CodeSourcery 2008q3-66 release from www.codesourcery.com
Is the toolchain also installed on drive D:? you might try having everything on the same drive (preferably c:) and remove the drive letter from MIOS32_BASE as that may be confusing make?
Also, try to avoid using a gcc 4.4 based cross-compiler, which comes with the current CodeSourcery distribution. I had trouble with it (guess it has something to do with optimization or so).
You’ll have to revert back from the “c:/users/” style to “/c/users/” - the first works with MIOS_8, the second is required for MIOS_32 since the latest change in the makefile mechanism (late September this year). Basically, you have to specify MIOS32_PATH in Unix style. E.g., write:
But there’s one thing that needs to be changed: How do I find the MIOS32-guide without this direct link posted by phil? I didn’t find any hint in the wiki. But IMHO this link should be on the first page so you see it, when you enter. And maybe the “old” MIOS8 guide should be marked as MIOS_8_. At the moment it is just called “MIOS guide” and that caused quite some confusion to me.
A link would be added to this page once we clarified where to host the precompiled toolchain.
But of course, you are allowed to improve the Wiki!
Some MIOS32 related informations have been added on a quick&dirty way, and nobody tried to improve the structure thereafter, therefore just step forward!