Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

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

Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by kufo »

Hi.

I have some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4.

When I upload a code, one time is success. next fail.
then I change bootloader, after that, one time is success. next fail.
then...
sometimes success is twice, but repeatd fail and success the upload process.

this routine is repeated mostly.
What is the problem on my process?

I checked one case of fail to upload.
examples->...nRF52 libraries-> central->central_bleuart.ino
When I uploaded this example, after then, next other samples were fail for uploading.
Why is this happened?

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by dastels »

What errors are you getting?

Please copy/paste the entire upload section of the build output.

Dave

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by kufo »

" I checked one case of fail to upload.
examples->...nRF52 libraries-> central->central_bleuart.ino
When I uploaded this example, after then, next other samples were fail for uploading.
"

When I upload the code,
First, I push the reset button mostly. then The Led of BLE module is off.
but after uploading this case "examples->...nRF52 libraries-> central->central_bleuart.ino" , I can not off the Led of BLE module by reset button.
Maybe this is the reason for my fail to upload.
How can I stop the BLE module to upload other codes, after I uploaded the code, "central_bleuart.ino"?

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by dastels »

Please copy/paste the entire upload section of the build output.

Dave

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by kufo »

https://drive.google.com/file/d/1pVWr7z ... share_link

This clip was captured the uploading process.
but the time stamp was jumped, because the time was long, part of the video was skipped.

after this, bootloader was uploaded again, and I uploaded "central_bleuart.ino", after then, next other samples were fail for uploading.
this process has repeated.

But except "central_bleuart.ino", so far, I have done other two codes repeatedly, but the upload works fine.
.
Last edited by kufo on Tue Mar 21, 2023 9:37 pm, edited 1 time in total.

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by dastels »

Nice video that shows it working, then the next time not working. Useful but not what I asked for.

Dave

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by kufo »

Library Adafruit BANNED has been declared precompiled:
Using precompiled library in C:\Users\kufo-notepc\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\1.3.0\libraries\Adafruit_BANNED\src\cortex-m4\fpv4-sp-d16-hard
Sketch uses 144696 bytes (17%) of program storage space. Maximum is 815104 bytes.
Global variables use 14128 bytes (5%) of dynamic memory, leaving 223440 bytes for local variables. Maximum is 237568 bytes.
Upgrading target on COM10 with DFU package C:\Temp\arduino\sketches\BANNED\central_bleuart.ino.zip. Flow control is disabled, Single bank, Touch disabled
########################################
########################################
########################################
########################################
########################################
########################################
########################################
###
Activating new firmware
Device programmed.


++++++++++++++++++++++++++++++++++++++++++++
Library Adafruit BANNED has been declared precompiled:
Using precompiled library in C:\Users\kufo-notepc\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\1.3.0\libraries\Adafruit_BANNED\src\cortex-m4\fpv4-sp-d16-hard
Sketch uses 148984 bytes (18%) of program storage space. Maximum is 815104 bytes.
Global variables use 14348 bytes (6%) of dynamic memory, leaving 223220 bytes for local variables. Maximum is 237568 bytes.
Upgrading target on COM5 with DFU package C:\Temp\arduino\sketches\44CD2076D2ECAFD185A8CC9BA9B61777\bleuart.ino.zip. Flow control is disabled, Single bank, Touch disabled

Failed to upgrade target. Error is: Serial port could not be opened on COM5. Reason: Cannot configure port, something went wrong. Original message: OSError(22, '������ ���� �ð��� ����Ǿ����ϴ�.', None, 121)
Traceback (most recent call last):
File "dfu\dfu_transport_serial.py", line 113, in open
File "serial\serialwin32.py", line 33, in __init__
File "serial\serialutil.py", line 244, in __init__
File "serial\serialwin32.py", line 80, in open
File "serial\serialwin32.py", line 222, in _reconfigure_port
serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: OSError(22, '������ ���� �ð��� ����Ǿ����ϴ�.', None, 121)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "__main__.py", line 296, in serial
File "dfu\dfu.py", line 235, in dfu_send_images
File "dfu\dfu.py", line 157, in _dfu_send_image
File "dfu\dfu_transport_serial.py", line 115, in open
nordicsemi.exceptions.NordicSemiException: Serial port could not be opened on COM5. Reason: Cannot configure port, something went wrong. Original message: OSError(22, '������ ���� �ð��� ����Ǿ����ϴ�.', None, 121)

Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Upgrading target on COM10 with DFU package C:\Users\kufo-notepc\AppData\Local\Arduino15\packages\adafruit\hardware\nrf52\1.3.0\bootloader\feather_nrf52840_express\feather_nrf52840_express_bootloader-0.6.2_s140_6.1.1.zip. Flow control is disabled, Dual bank, Touch 1200
Touched serial port COM10
Opened serial port COM10
Starting DFU upgrade of type 3, SoftDevice size: 151016, bootloader size: 39000, application size: 0
Sending DFU start packet
Sending DFU init packet
Sending firmware file
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
########################################
############
Activating new firmware

DFU upgrade took 21.03921103477478s
Device programmed.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

and the process has repeated.

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by dastels »

Does it always fail with COM5 and succeed with COM10?

Dave

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by kufo »

NO.
case by case.
But bootloader process has done at COM10 automatically.

and the usb port is same on my notebook.

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by dastels »

So you're saying that every other time it doesn't get into bootloader mode?

Dave

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by kufo »

I tested 3 example codes. one of them is "central_bleuart.ino".
only after "central_bleuart.ino", I must do burn bootloader.
but other two codes are good for uploading repeatedly.

Usually I used the reset button for stop the BLE module.
but after "central_bleuart.ino", the reset button is not work to stop the BLE module.
so How can I stop the BLE module for this case?

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by hathach »

Thank you for reporting the issue, we have fixed it https://github.com/adafruit/Adafruit_nR ... o/pull/764 and release as new board v1.4.0. It may take a few hours for arduino to index. In case you wonder, the root cause is when SoftDevice is super busy in case of central, it may cause race condition (some sort) when reseting to DFU via USB. All is fixed now. Let me know if 1.4.0 work for you.

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by kufo »

Thanks for fixing the error.
Will this fixed version be updated automatically?
.

User avatar
hathach
 
Posts: 1269
Joined: Tue Apr 23, 2013 1:02 am

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by hathach »

you only need to update board/core version to 1.4.0 then try to re-upload any sketch it will auto fix the issue.

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

Re: Some errors about uploading Adafruit Feather nRF52840 express using Arduino IDE 2.0.4

Post by kufo »

OK!
Good!

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

Return to “Arduino”