Arduino Giga R1 wifi dual core setup

#include <Arduino.h>
#include <RPC.h>

void setup() {
  Serial.begin(115200);
  while (!Serial);

  Serial.println("M7 started");

  RPC.begin();   
}

void loop() {
  Serial.println("M7 running");
  delay(1000);
}

this is the code for m7 core and

#include <Arduino.h>
#include <RPC.h>

void setup() {
  RPC.begin();
  RPC.println("M4 started");
}

void loop() {
  RPC.println("M4 running");
  delay(1000);
}

this one is for m4 core , but after uploading these two code in m7 and m4 respectively by selecting the core through Arduino ide , i am not able to get the m4 statement , i am getting only m7 one , please anyone can suggest me a solution or a way that how to use both cores of Arduino giga r1 wifi

Code tags are three back ticks (```), not three ticks ('''); they also need to be on their own line.

Thanks for trying, I will fix it for you.

I know nothing about the Giga.

I've moved your topic to the Giga R1 category of the forum; your problem does not sound like an IDE problem.

Hi @kusagra_123 , if you want to print output from m4, check out:

https://docs.arduino.cc/tutorials/giga-r1-wifi/giga-dual-core/

You need to read the m4 output and then print it from m7. e.g.

#include <RPC.h>

void setup() {
  Serial.begin(9600);
  RPC.begin();
}

void loop() {
  String buffer = "";
  while (RPC.available()) {
    buffer += (char)RPC.read();  // Fill the buffer with characters
  }
  if (buffer.length() > 0) {
    Serial.print(buffer);
  }
}

thanks for solution @steve9

thanks to fix the post @sterretje

The Arduino Giga R1 WiFi dual-core setup is really impressive, especially for projects that need multitasking. Using the M7 core for heavy processing and the M4 core for real-time tasks makes development much smoother. The built-in WiFi also saves time during setup and testing.