-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure but I think I'm making progress #98
Comments
Hey I closed some of the other issues you had opened, let's try to keep it in this one til we get you figured out. 🙂 Okay it looks like it's at least running python now, which is a good thing! Looks like there's an issue in the adafruit-nrfutil script, let me see if I can get it to replicate locally. |
Hm, looks like there was a new version of If you do |
Ok thanks I will keep my questions to this issue. One thing I noticed is that when I pip installed pyocd, intelhex, and adafruit-nrfutil it didn’t installed everything for them. I had to download their source code from github and open power shell in their folders and run the command python setup.py install and that installed their scripts and everything in my python folder. I’m about to do what you said and see if that helps. |
ok so it updated Using legacy 'setup.py install' for adafruit-nrfutil, since package 'wheel' is not installed. But got a new error $ make bootloader |
I searched for the error online and from my understanding I need to add quotations "" around the xcopy bootloader directory line in the MakeFile because the path to the directory has spaces in it and xcopy is not good reading white spaces. Not sure if I'm right about the but here is the line I think need the quotations where do you think I should add them if I'm right about the error? @xcopy |
I was trying to fix it and messed something up now I'm getting this error $ make bootloader |
I fixed the above error now I'm back to this one Building UF2 bootloader... Terminal will be reused by tasks, press any key to close it. |
Yeah you def have the bootloader building. It's complaining now because it's failing to copy the produced file from the bootloader subproject to the main output directory. The fact that it's saying invalid number of parameters makes it seem like some of the variables aren't defined properly or something like that, which would be odd. Try removing the |
Ok I removed the @ before xcopy on on 484 Create odiin_bootloader-0.3.2-158-g23e6539-dirty.hex |
Your xcopy command looks like it's not building the path properly. The makefile should be: @xcopy $(BOOTLOADER_DIR)\_build\build-$(BOOTLOADER_BOARD)\$(BOOTLOADER_BOARD)_bootloader*nosd.hex $(OUTPUT_DIRECTORY)\ /R /Y And the BOOTLOADER_DIR definitely is resolving to (As in, the actual command should look like |
So I should replace xcopy with xcopy bootloader_build\build-odiin\odiin_bootloader*nosd.hex _build\ /R /Y) |
No, you should fix the original line. Or something is going on here that's eating your directory separators. The xcopy line is trying to copy the generated hex file out of the bootloader build directory to the main project build directory. In that line you just pasted there, it looks completely wrong, and I'm not sure how the slashes seem to have disappeared?
Without those slashes, it'll never point at the correct file. |
Here is whats in the makefile bootloader: Clean bootloader subprojectclean_bootloader: Same Error $ make bootloader |
Hey do you think there is a command I can use besides xcopy? |
I don't have any knowledge of a command that's on windows already that will allow copies with wildcards. The wildcards are used because the filenames generated are based on git hashes. If you run that same |
Yea I ran it in command prompt and PowerShell as an administrator and it gives same error |
I have bash on my computer also and it give the same error. |
This is a long shot, but try deleting the _build and bootloader\_build
folders. Something just isn't adding up.
…On Tue, Nov 17, 2020 at 3:09 PM NBAPJ ***@***.***> wrote:
I have bash on my computer also and it give the same error.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#98 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAETEQ2A2BEJOR6GZCGIXV3SQLKAFANCNFSM4TP4EAGQ>
.
|
Hi, were you able to figure out how to flash the device? Have been stuck trying to build bootloader/flash/etc. |
Hey @phantomBlurrr -- go ahead and open a separate issue and include as much detail as you can there and I'll try and help you out! |
I think I'm making a little progress with the bootloader I'm getting this error now
$ make bootloader
Building UF2 bootloader...
C:/ProgramData/chocolatey/lib/make/tools/install/bin/make.exe -C bootloader BOARD=odiin all
make[1]: Entering directory 'C:/Users/melenese/Desktop/OdiinNFC2/Odiin/bootloader'
LD odiin_bootloader-0.3.2-158-g23e6539-dirty.out
text data bss dec hex filename
31304 1572 22594 55470 d8ae _build/build-odiin/odiin_bootloader-0.3.2-158-g23e6539-dirty.out
Create odiin_bootloader-0.3.2-158-g23e6539-dirty.hex
Create odiin_bootloader-0.3.2-158-g23e6539-dirty-nosd.hex
Create odiin_bootloader-0.3.2-158-g23e6539-dirty-nosd.uf2
Converting to uf2, output size: 72704, start address: 0x0
Wrote 72704 bytes to _build/build-odiin/odiin_bootloader-0.3.2-158-g23e6539-dirty-nosd.uf2
Create odiin_bootloader-0.3.2-158-g23e6539-dirty_s140_6.1.1.hex
Traceback (most recent call last):
File "C:\Program Files\Python39\Scripts\adafruit-nrfutil-script.py", line 33, in
sys.exit(load_entry_point('adafruit-nrfutil==0.5.3.post13', 'console_scripts', 'adafruit-nrfutil')())
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 829, in call
return self.main(*args, **kwargs)
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 782, in main
rv = self.invoke(ctx)
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1259, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1259, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\click\core.py", line 610, in invoke
return callback(*args, **kwargs)
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\nordicsemi_main.py", line 237, in genpkg
package.generate_package(zipfile_path)
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\nordicsemi\dfu\package.py", line 173, in generate_package
nrf_hex.tobinfile(sd_bl_file_path)
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\nordicsemi\dfu\nrfhex.py", line 162, in tobinfile
super(nRFHex, self).tobinfile(fobj, start=start_address, size=size)
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\nordicsemi\dfu\intelhex_init.py", line 401, in tobinfile
binstr = self.tobinstr_really(start, end, pad, size)
File "C:\Users\melenese\AppData\Roaming\Python\Python39\site-packages\nordicsemi\dfu\intelhex_init.py", line 373, in _tobinstr_really
return asstr(self._tobinarray_really(start, end, pad, size).tostring())
AttributeError: 'array.array' object has no attribute 'tostring'
make[1]: *** [Makefile:401: _build/build-odiin/odiin_bootloader-0.3.2-158-g23e6539-dirty_s140_6.1.1.zip] Error 1
make[1]: Leaving directory 'C:/Users/melenese/Desktop/OdiinNFC2/Odiin/bootloader'
make: *** [Makefile:483: bootloader] Error 2
The text was updated successfully, but these errors were encountered: