
EH (Customer) asked a question.
The computer detects the P1AM-200 com port, but won't program the normal way. I need to double click the reset button to put it in bootloader mode then select the new com port. It will program, but Serial never finishes starting.
I don't actually know how the bootloader uses the usb port vs how it's used in the "normal" mode.
Is there a way to factory reset the FW so I can see if I have damaged the hardware? I don't normally run these with a cable plugged in so if I damaged it it would have been when I plugged in to try to debug it. It's possible I rebooted or booted up the computer while it was plugged in.
This has happened on two devices now.
Here is my test code:
- void setup() {
- pinMode(LED_BUILTIN, OUTPUT);
- Serial.begin(115200);
-
- // Bad device:
- // The computer detects its com port, but won't program the normal way.
- // I need to double click the reset button to put it in bootloader mode then select the new com port.
- // It will program, but then gets stuck in this loop because Serial never finishes starting.
- while (!Serial) {
- digitalWrite(LED_BUILTIN, true);
- delay(100);
- digitalWrite(LED_BUILTIN, false);
- delay(100);
- };
- }
-
- void loop() {
- for (;;) {
- digitalWrite(LED_BUILTIN, true);
- delay(700);
- digitalWrite(LED_BUILTIN, false);
- delay(700);
- Serial.println("Hello There.");
- }
- }
Thanks!
I figured it out.
I first programmed this P1AM a long time ago, and windows had assigned it to COM3.
But since then windows assigned Intel(R) Active Management Technology – SOL to com3 (maybe when I updated to Win11?) and they were colliding.
You should be able to just click on the port in device manager and change the port number, but what I actually did was disable AMT in the BIOS.