ArduinoCore-mbed icon indicating copy to clipboard operation
ArduinoCore-mbed copied to clipboard

Giga R1 gets stuck on hardware/software reset, possibly in the bootloader.

Open iabdalkader opened this issue 1 year ago • 0 comments

Just run this very simple sketch:

uint32_t ticks = 0;
uint32_t timeout = 0;

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  while (!Serial) {
  }
  Serial.println("HelloWorld!");
  ticks = millis();
  timeout = random(1500, 3000);
}

void loop() {
  // put your main code here, to run repeatedly:
  if (millis() - ticks >= timeout) {
    NVIC_SystemReset();
  }
  delay(100);
}

Board gets stuck after one or two resets.

Program received signal SIGTRAP, Trace/breakpoint trap.
0x0804a25c in HAL_PWR_EnterSLEEPMode ()
(gdb) backtrace 
#0  0x0804a25c in HAL_PWR_EnterSLEEPMode ()
#1  0x0804f0cc in hal_sleep ()
#2  0x080485ae in sleep_manager_sleep_auto ()
#3  0x0804842a in void mbed::internal::do_sleep_operation<mbed::internal::timed_predicate_op>(mbed::internal::timed_predicate_op&) ()
#4  0x0804846e in mbed::internal::do_timed_sleep_absolute(std::chrono::time_point<mbed::internal::OsClock, std::chrono::duration<long long, std::ratio<1ll, 1000ll> > >, bool (*)(void*), void*) ()
#5  0x080484ca in mbed::internal::do_timed_sleep_relative_to_acknowledged_ticks(std::chrono::duration<unsigned long, std::ratio<1ll, 1000ll> >, bool (*)(void*), void*) ()
#6  0x08044b0e in default_idle_hook ()
#7  0x08044bf0 in rtos_idle_loop ()
#8  0x080449fa in osRtxIdleThread ()
#9  0x080440c0 in osRtxThreadFree ()
#10 0x00000000 in ?? ()

iabdalkader avatar Dec 20 '23 13:12 iabdalkader