Where does makeboot.bat put the resulting .elf file?

Discussion of issues related specifically to writing code for native mode devices. This includes ZBasic code as well as assembly language code and C code, both inline and standalone.
Post Reply
sparxfly
Posts: 21
Joined: 18 December 2005, 20:58 PM
Location: New Zealand
Contact:

Where does makeboot.bat put the resulting .elf file?

Post by sparxfly »

Don-

Running makeboot.bat in Windows 10, but I can't find the resulting elf file anywhere!
Under Win7 it always put it in the zboot\obj folder.
Snip of batch file output is attached...
Attachments
makeboot output.PNG
(16.51 KiB) Downloaded 268 times
Stuart Parker
www.sparxfly.co.nz
sparxfly
Posts: 21
Joined: 18 December 2005, 20:58 PM
Location: New Zealand
Contact:

Re: Where does makeboot.bat put the resulting .elf file?

Post by sparxfly »

sparxfly wrote:I can't find the resulting elf file anywhere!
Actually, I can't find any generated files from running makeboot.bat.
Appears to be something wrong with paths under Win10?
Running current version of all ZBasic utilities.
Stuart Parker
www.sparxfly.co.nz
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Where does makeboot.bat put the resulting .elf file?

Post by dkinzer »

sparxfly wrote:Appears to be something wrong with paths under Win10?
I don't have access to Windows 10 here. I'll do some research to see if others are having issues with gcc and related utilities under Windows10.
- Don Kinzer
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Post by dkinzer »

I installed Win10 in a VirtualBox, installed ZBasic and then ran makeboot.bat in the zboot subdirectory of the ZBasic installation directory. As I expected, the output files weren't anywhere to be found. As with previous versions of Windows as far back as Vista, the OS doesn't allow apps to write to files in directories like "Program Files". Rather, it places such files in a "virtual store". I can't seem to find the virtual store on Win10 but on Win7 it is /Users/<user-name>/AppData/Local/VirtualStore.

The best way to work around this issue is to build in some other directory. I copied the entire zboot directory to a new directory: /tmp. Running makeboot.bat there results in the .hex file for the bootloader being generated in the /tmp/zboot/boot subdirectory. The .elf file and other intermediate files are generated in a device-specific subdirectory of the obj subdirectory of the build directory - in my test case /tmp/zboot/obj/atmega644p.
- Don Kinzer
Post Reply