2lbednarz
I checked my makefile in Windows, and it worked for me.
But before I received the same errors as you, and this errors were related to broken compiler and make environment.
So, first we should be aware of using make from yagarto tools. If you use 64bit windows and receive heap allocation errors, may be you have to rebase msys-1.0.dll using ReBase.exe from Visual Studio:
After checking that make is OK (for ex. compiling some ARM Chibios projects) we need to place libstdc++-6.dll and libgcc_s_dw2-1.dll to the same directory with make. rl78-elf-gcc needs these files to be located in the same directory with make!
Of cause this directory must be in $PATH system variable.
(Don't use make provided with rl78-elf toolchain)
So, my yagarto-tools dir looks like this:
Code: Select all
07/07/2006 03:45 AM 18,349 copying.txt
07/07/2006 04:00 AM 74,240 cp.exe
07/08/2006 10:54 PM 163 echo
11/22/2013 03:17 PM 108,032 libgcc_s_dw2-1.dll
11/22/2013 03:17 PM 879,630 libstdc++-6.dll
07/07/2006 04:00 AM 180,736 make.exe
07/07/2006 04:00 AM 28,672 mkdir.exe
12/05/2013 11:50 AM 781,616 msys-1.0.dll
05/13/2010 10:26 PM 55,112 ReBase.Exe
07/07/2006 04:00 AM 62,464 rm.exe
07/07/2006 04:00 AM 476,672 sh.exe
10/19/2006 02:19 AM 709 source.txt
07/08/2006 10:54 PM 38,400 touch.exe
After you obtain valid make environment you can easily compile RL78 demo. (Please update to last github version)
Now it works OK
Next step is to setup of debugging in E2Studio.