Boot M4 from SDRAM not working at power on

Arduino Giga R1
I have tested with example: RPC > BootM4_from_SDRAM

Seem M4 wont boot after first power on (even tested with RPC.begin() / bootM4()).
I need to press "Reset" on the board at least once to make M4 boot from SDRAM.

I do anything wrong? not modified example code, just add serial print before bootM4()

Try these basic steps:

  1. Install the latest IDE 2.2.1
  2. Add the Arduino Mbed OS Giga Boards (newest version: 4.0.8) to Arduino IDE(2.2.1) using the Boards Manager.
  3. if the issue persist after step #2 above, * Burn the bootloader on GIGA R1 WiFi and then retry the example sketch again.

Thank you for your answer, I will test your step,

I try myself, after add SCB_CleanDCache(); before call RPC.begin() / bootM4() the problem are gone.
M4 core now boot without pressing Reset. but I try remove CleanDCache, it's happened again.

I dont know it's related with cache or not.