Makeboot Path Issue?

Discussion of issues related to writing ZBasic applications for targets other than ZX devices, i.e. generic targets.
Post Reply
Innovator_99
Posts: 12
Joined: 14 February 2009, 19:12 PM

Makeboot Path Issue?

Post by Innovator_99 »

I'm trying to build a ZB bootloader image for an ATmega1284p running at 7.37 MHz. I'm using the current compiler, IDE, libraries, etc. (via the v4.3.14 installer), running on a Win7-64 machine.

Per section 5.4 of the Language Reference, I copied the "Zboot" sub-directory to a location outside the "Program Files(x86)" system directory where the installer had placed it, and modified the makeboot.bat file per the device type and CPU clock frequency.

But when I attempt to run makeboot.bat, the command window displays the "make is not recognized as an internal or external command…" error.

I'm not at all familiar with batch files or path variables, but it seems to me that makeboot.bat is looking for make.exe in "ZBasic\avr-GCC" (per the ZBasic HKLM registry entry for avr-GCCPath), whereas make.exe is actually located in "ZBasic\utils\bin". Is that where it should be, and if so, what else could be causing the problem?

TIA,
Phil
sparxfly
Posts: 21
Joined: 18 December 2005, 20:58 PM
Location: New Zealand
Contact:

Re: Makeboot Path Issue?

Post by sparxfly »

Innovator_99 wrote:But when I attempt to run makeboot.bat, the command window displays the "make is not recognized as an internal or external command…" error.
I am experiencing the same issue under Win10 Pro with zboot moved to an unprotected folder.
make.exe is installed by default in ZBasic\utils\bin.
If I copy it to the avrgcc\utils\bin folder makeboot progresses a little further, but throws up other errors.
Have you got a fix for this?

Thanks,
Stuart.
Stuart Parker
www.sparxfly.co.nz
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Makeboot Path Issue?

Post by dkinzer »

sparxfly wrote:I am experiencing the same issue under Win10 Pro with zboot moved to an unprotected folder..
OK, I see the problem now - it's not specific to Win10. In the file makeboot.bat about line 177 you'll find the following:

Code: Select all

set path=%avrgcc%\bin;%avrgcc%\utils\bin
The problem is with the second component, change it to:

Code: Select all

set path=%avrgcc%\bin;%avrgcc%\..\utils\bin
This issue was caused by a change made to the installation directory structure a while back (the uitls directory was moved up one level) and I forgot to update makeboot.bat.
- Don Kinzer
sparxfly
Posts: 21
Joined: 18 December 2005, 20:58 PM
Location: New Zealand
Contact:

Post by sparxfly »

Thanks Don- sorted!
Stuart Parker
www.sparxfly.co.nz
Post Reply