crmrosa
(claudio roberto machado da rosa)
March 16, 2024, 4:48pm
1
Please include the following information, in order for us to help you as effectively as possible.
What product do you wish to discuss? RAK4631
What firmware are you using? VSCode/PlatformIO
What firmware version? SoftDevice: S140 6.1.1
Computer OS? (MacOS, Linux, Windows) Windows
What Computer OS version? Windows 11
How often does the problem happen? Always
How can we replicate the problem? Yes
Provide source code if custom firmware is used or link to example if RAKwireless example code is used.
I didn´t understand why I am receiving errors messages about USB port. Should it be part of Arduino Framework (Arduino.h)?
Blockquote
#include <Arduino.h>
/função setup /
void setup()
{
// void IniciaLEDsSerial(void);
Serial.begin(115200);
delay(5000);
Serial.println(âTESTE DE IMPRESSĂO NO SETUPâ);
}
/função loop /
void loop()
{
// void PiscaLEDs(void);
Serial.println(âTESTE DE IMPRESSĂO NO LOOPâ);
delay(2000);
}
Blockquote
carlrowan
(Carl Rowan)
March 17, 2024, 2:05am
2
Hi @crmrosa ,
Please add this #include <Adafruit_TinyUSB.h>
on top of your codeâŚ
In your previous codes, it is likely you do not encounter the error because you are using the Wire library.
crmrosa
(claudio roberto machado da rosa)
March 17, 2024, 2:24pm
3
Thank you, I already did and it is working fine.
Do you know why the standard library <Arduino.h> is not enough to support a RAK4631 USB-C port?
ClĂĄudio
carlrowan
(Carl Rowan)
March 17, 2024, 4:33pm
4
I am not really familiar on the exact reason but this happen after the update of the adafruit bootloader. @beegee might be able to recall this part and explain more clearly.
1 Like
beegee
(Bernd Giesecke)
March 20, 2024, 1:11am
5
For an answer to this question, please ask Adafruit. Our BSP is using the Adafruit nRF52 BSP, the only change is that the RAK4631 is in it as a variant.
Adafruit decided to take the USB library out of the BSPâs built-in libraries and add it as an external library. That is causing the problem with âmissing header fileâ.
crmrosa
(claudio roberto machado da rosa)
March 21, 2024, 2:19pm
6
Thank you by your explanation.
ClĂĄudio
system
(system)
Closed
March 31, 2024, 2:20pm
7
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.