UNO R4 WIFI board examples lifted from Portenta C33 not working

Hello,
Got the new R4 Wifi yesterday, lovely bit of kit. I
noticed some of the examples, not been through them all yet, have been lifted from the Portenta C33 and do not work without modification.
Are there a set of examples that are already edited for the R4. It will be a pain to change and re-save to the same folder for future reference.
Thanks
Vaughn

hi Vaughn

which platform do you have installed?

  • Arduino Renesas (preview only, discontinued)
  • Arduino UNO R4 Boards
  • Arduino Renesas Portenta Boards

install UNO R4 platform and you'll be able to find the examples down the examples menu

Thanks for the reply, and thanks for the extremely quick fix for ide 2.
I have installed arduino R4 core in boards manager as per the getting started with UNO R4 .
Boards comes up with Arduino uno r4 boards.
When I go to examples > uno r4 boards the code is for portenta c33. Example on ntcsync it has #include WiFiC3 not #include WiFiS3.
Thanks
Vaughn

In order to make all relevant information available to any who are interested in this subject, I'll share a link to the related report here:

Board hangs when trying to Serial.println("any message") inside an alarmCallback routine.
I'm running the example provided under "Examples for Arduino UNO R4 WiFi" RTC:RTC_AutomaticExample
I compile and load it onto the board and things go fine and I get the following printout on the Serial Monitor:
The RTC was just set to:
2023-7-3 17:59:27

Until the time of the alarm and the only thing I get serial printed is the first character:
A

I should have gotten:
An alarm was triggered at:

After that, the board hangs. The rest of the print out does not appear.

With the help of the example: LED_Matrix:DisplaySingleFrame I changed the alarmCallback() function to:


#include "Arduino_LED_Matrix.h"
#include "frames.h"

ArduinoLEDMatrix matrix;

void alarmCallback() {
  static bool ledState = false;
  if (ledState == true) {
    matrix.loadFrame(chip);
  }
  else {
    matrix.loadFrame(happy);
  }
  ledState = !ledState;

  // Serial.println("An alarm was triggered at:");
  // RTCTime currentTime;
  // RTC.getTime(currentTime); 
  // Serial.print(currentTime.getYear());
  // Serial.print("-");
  // Serial.print(Month2int(currentTime.getMonth()));
  // Serial.print("-");
  // Serial.print(currentTime.getDayOfMonth());
  // Serial.print(" ");
  // Serial.print(currentTime.getHour());
  // Serial.print(":");
  // Serial.print(currentTime.getMinutes());
  // Serial.print(":");
  // Serial.println(currentTime.getSeconds());
}

Now the example behaves as expected, and the matrix varied between "chip" and "happy"