Discussion about Portenta X8. How to use the multiple PWM pins in Portenta X8 and sending data from Yocto Linux to the STM32 side

Discussion about Portenta X8.
How to use the multiple PWM pins in Portenta X8 and sending data from Yocto Linux to the STM32 side.

#define PWM0 PC_7
#define PWM1 PA_9
#define PWM2 PA_10
void setup()
{
  pinMode(PWM0, OUTPUT);
  pinMode(PWM1, OUTPUT);
  pinMode(PWM2, OUTPUT);
}
void loop()
{
  for(int i=0;i<255;i++)
  {
    analogWrite(PWM0,i);
    analogWrite(PWM1,i);
    analogWrite(PWM2,i);
    delay(50);
  }
  for(int i=255;i>0;i--)
  {
    analogWrite(PWM0,i);
    analogWrite(PWM1,i);
    analogWrite(PWM2,i);
    delay(10);
  }
}

I tried to upload the program. The PWM pins doesn't work properly.

I am also facing issues with the Serial Monitor as well the SerialRPC. I recently flashed the STM32 with firmware 0.0.4-next-02b3427-20241106.In this version, RPC works very well while the Serial Monitor shows data but not in proper format.
When I flashed the newer version to 0.0.5 to the STM32. The Serial monitor works well but the RPC has gone.

These are the issues that I am facing currently:

  • Sending multiple PWM signals from the STM32.
  • Serial Monitor and RPC. Which version of the STM32 firmware and Linux image I should flash to get the best performance.
  • Sending data from Linux side to Arduino side.

Further assistance would be nice.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.