Can I upload a pre-compiled code in nRF52840 express when needed?

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
kufo
 
Posts: 22
Joined: Tue Mar 21, 2023 7:05 am

Can I upload a pre-compiled code in nRF52840 express when needed?

Post by kufo »

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?

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Can I upload a pre-compiled code in nRF52840 express when needed?

Post by dastels »

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

User avatar
kufo
 
Posts: 22
Joined: Tue Mar 21, 2023 7:05 am

Re: Can I upload a pre-compiled code in nRF52840 express when needed?

Post by kufo »

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.

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Can I upload a pre-compiled code in nRF52840 express when needed?

Post by dastels »

OK, that makes sense.

Adafruit-nrfutil might work. https://github.com/adafruit/Adafruit_nRF52_nrfutil

Dave

User avatar
kufo
 
Posts: 22
Joined: Tue Mar 21, 2023 7:05 am

Re: Can I upload a pre-compiled code in nRF52840 express when needed?

Post by kufo »

Thanks Dave

I'll try it

User avatar
kufo
 
Posts: 22
Joined: Tue Mar 21, 2023 7:05 am

Re: Can I upload a pre-compiled code in nRF52840 express when needed?

Post by kufo »

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?

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Can I upload a pre-compiled code in nRF52840 express when needed?

Post by dastels »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”