This Adafruit nRF58240 has worked in all coding phases with Arduino IDE and VS Code. It's been about six months and I am adding functionality to the project and using the same nRF58240 and I am having Serial port problems.
On initial attachment to the same Windows 10 pc the computer did not recognize the attached board, so I double pressed the nRF85240 Reset button and the pc recognized the seial port immediately. I uploaded the "blink" program from my pc successfully but lost the serial port immediately after upload completion. I can double press the reset button, upload "blink" and immediately lose seial port over and over again. I am monitoring via device manager.
As more info, as I was typing this post I double pressed the nRF58240 reset button and the serial port was recognized. A few minutes later the serial port drop. I have found that with this also happens with no interaction for the Arduino IDE.
I am not sure what path to take to troubleshoot my serial problem. Arduino Uno works fine and continuously.
Thanks for your time and consideration. It might take me a little while to respond. Health issues.
Adafruit nRF58240 and serial port dropping
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- ssnerwood
- Posts: 13
- Joined: Sun Aug 03, 2014 3:15 pm
Re: Adafruit nRF58240 and serial port dropping
I just tested. I'm getting the same pattern on my Macbook Pro (Intel based)
- ssnerwood
- Posts: 13
- Joined: Sun Aug 03, 2014 3:15 pm
Re: Adafruit nRF58240 and serial port dropping
I just tried agin on MacBook Pro and had the same result, but with this alert, see attached
- Attachments
-
- alert.png (72.73 KiB) Viewed 58 times
- adafruit2
- Posts: 22111
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Adafruit nRF58240 and serial port dropping
whats the exact sketch you're uploading? also please post a screenshot of the tools menu
- ssnerwood
- Posts: 13
- Joined: Sun Aug 03, 2014 3:15 pm
Re: Adafruit nRF58240 and serial port dropping
It also think it's an Adafruit nRF82540 Express. A board I have also used in the past.
- adafruit_support_carter
- Posts: 29056
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Adafruit nRF58240 and serial port dropping
Also see special note/requirement here for nRF52840 and serial:
https://learn.adafruit.com/introducing- ... ch-2860620
https://learn.adafruit.com/introducing- ... ch-2860620
- adafruit2
- Posts: 22111
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Adafruit nRF58240 and serial port dropping
please do the above and also show a photo of the board you are using
- ssnerwood
- Posts: 13
- Joined: Sun Aug 03, 2014 3:15 pm
Re: Adafruit nRF58240 and serial port dropping
EXAMPLE from File Menu...sorry it will take a while..pics will be there by tomorrow morning USA Eastern time.
Code: Select all
/*
Blink
Turns an LED on for one second, then off for one second, repeatedly.
Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
the correct LED pin independent of which board is used.
If you want to know what pin the on-board LED is connected to on your Arduino
model, check the Technical Specs of your board at:
https://www.arduino.cc/en/Main/Products
modified 8 May 2014
by Scott Fitzgerald
modified 2 Sep 2016
by Arturo Guadalupi
modified 8 Sep 2016
by Colby Newman
This example code is in the public domain.
https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Last edited by adafruit_support_carter on Wed Sep 21, 2022 3:21 pm, edited 1 time in total.
Reason: added [code] tags
Reason: added [code] tags
- ssnerwood
- Posts: 13
- Joined: Sun Aug 03, 2014 3:15 pm
Re: Adafruit nRF58240 and serial port dropping
This worked and I didn't have to 2-click to edit and upload again. Thank you very much.
I don't remember doing this in the past?
#if defined(USE_TINYUSB)
#include <Adafruit_TinyUSB.h> // for Serial
#endif
I don't remember doing this in the past?
#if defined(USE_TINYUSB)
#include <Adafruit_TinyUSB.h> // for Serial
#endif
Please be positive and constructive with your questions and comments.