Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
iabdalkader opened this issue Dec 20, 2023 · 0 comments

Comments

@iabdalkader
Copy link
Contributor

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 iabdalkader changed the title Giga R1 gets on hardware/software reset, possibly in the bootloader. Giga R1 gets stuck on hardware/software reset, possibly in the bootloader. Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant