Basic blink failure

I just acquired a GIGA R1 and attempted the basic test using the standard Blink example, slightly modified to include a few Serial.println() statements.

I installed the board package and opened the Blink example, and added a few lines:

int i;

// 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);

Serial.begin(19200);

Serial.println("Starting blink test");

}


// the loop function runs over and over again forever

void loop() {

  i++;

Serial.println(i);

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

}

It compiles and uploads, but all I ever see in the serial window is this:

Starting Provisioning version 0.6.2
BLE Available

I also tried adding this to setup(), but still no serial output:

 while (!Serial) {};

delay(1000);

This is the most basic test I use on every Arduino I have ever tried (for the last 20 years!).

What is wrong?

Thanks,

.Andy

Write LOW to turn it ON.

The logic for LED_BUILTIN is reversed if compared to the behavior of, for example, the Arduino UNO board. What this means is that if you write HIGH to LED_BUILTIN, the LED will turn off, and on respectively if you write LOW.

https://docs.arduino.cc/tutorials/giga-r1-wifi/cheat-sheet/

Make sure you selected the same baudrate (19200) in Arduino Monitor on the PC

Thank you, I missed that in the docs.

I realize that the reason is that the LED_BUILTIN on the Giga is just the green component of an RGB LED, and it is common anode, rather than common cathode. But this is rather counter-intuitive for what the programmer usually encounters with LED_BUILTIN. Too bad.

Is that RGB LED used by other system processes?

The datasheet (same link) suggests, only if intentional.