When I use the nRF52840 express, Compiling and uploading takes too long.
so I search a method only just uploading the pre-compiled code repeatedly.
Can I upload a pre-compiled code in nRF52840 express when needed?
Can I upload a pre-compiled code in nRF52840 express when needed?
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- kufo
- Posts: 22
- Joined: Tue Mar 21, 2023 7:05 am
- dastels
- Posts: 15659
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Can I upload a pre-compiled code in nRF52840 express when needed?
Arduino rebuilds as part of its "upload" command, which I agree is annoying. You could use a different method for uploading, though that would mean having to find/save the binary that Arduino's build generates. You could also use a different toolset such as platformio that gives you more control.
But I have to ask, how long does the build take that it's "too long"?
Dave
But I have to ask, how long does the build take that it's "too long"?
Dave
- kufo
- Posts: 22
- Joined: Tue Mar 21, 2023 7:05 am
Re: Can I upload a pre-compiled code in nRF52840 express when needed?
Thanks Dave
I want to use nRF52840 express for a large number of identical products.
so needed a method only just uploading the pre-compiled code repeatedly.
I want to use nRF52840 express for a large number of identical products.
so needed a method only just uploading the pre-compiled code repeatedly.
- dastels
- Posts: 15659
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Can I upload a pre-compiled code in nRF52840 express when needed?
OK, that makes sense.
Adafruit-nrfutil might work. https://github.com/adafruit/Adafruit_nRF52_nrfutil
Dave
Adafruit-nrfutil might work. https://github.com/adafruit/Adafruit_nRF52_nrfutil
Dave
- kufo
- Posts: 22
- Joined: Tue Mar 21, 2023 7:05 am
Re: Can I upload a pre-compiled code in nRF52840 express when needed?
Thanks Dave
I'll try it
I'll try it
- kufo
- Posts: 22
- Joined: Tue Mar 21, 2023 7:05 am
Re: Can I upload a pre-compiled code in nRF52840 express when needed?
I tried your comment.
but some errors.
+++++++++++++++++++++++++
my working environment : windows 11, PS(power shell)
PS> ./adafruit-nrfutil.exe dfu serial --package test.ino.zip -p COM5 -b 115200
PS> Upgrading target on COM5 with DFU package C:\KUFO\TEST\Adafruit\test.ino.zip. Flow control is disabled, Dual bank, Touch disabled
Failed to upgrade target. Error is: Serial port could not be opened on COM5. Reason: could not open port 'COM5': PermissionError(13,...
++++++++++++++++++++++++++++
I'm getting these errors.
What's mean "Flow control is disabled, Dual bank, Touch disabled"?
When I used the serial COM5, It's good.
like this
++++++++++++++
PS> $port= new-Object System.IO.Ports.SerialPort COM5,115200,None,8,one
PS> $port.open()
PS> $port.WriteLine(“Hello world”)
PS> $port.Close()
++++++++++++++
but when I'm using "PS> ./adafruit-nrfutil.exe dfu serial --package test.ino.zip -p COM5 -b 115200", I got error.
What's the reason of this error?
but some errors.
+++++++++++++++++++++++++
my working environment : windows 11, PS(power shell)
PS> ./adafruit-nrfutil.exe dfu serial --package test.ino.zip -p COM5 -b 115200
PS> Upgrading target on COM5 with DFU package C:\KUFO\TEST\Adafruit\test.ino.zip. Flow control is disabled, Dual bank, Touch disabled
Failed to upgrade target. Error is: Serial port could not be opened on COM5. Reason: could not open port 'COM5': PermissionError(13,...
++++++++++++++++++++++++++++
I'm getting these errors.
What's mean "Flow control is disabled, Dual bank, Touch disabled"?
When I used the serial COM5, It's good.
like this
++++++++++++++
PS> $port= new-Object System.IO.Ports.SerialPort COM5,115200,None,8,one
PS> $port.open()
PS> $port.WriteLine(“Hello world”)
PS> $port.Close()
++++++++++++++
but when I'm using "PS> ./adafruit-nrfutil.exe dfu serial --package test.ino.zip -p COM5 -b 115200", I got error.
What's the reason of this error?
- dastels
- Posts: 15659
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Can I upload a pre-compiled code in nRF52840 express when needed?
No idea. This isn't anything I've tried. Also you're using Windows which I know nothing about.
I'll get some more eyes on this.
Dave
I'll get some more eyes on this.
Dave
Please be positive and constructive with your questions and comments.