Browse Source

Fix crash as startup with Fastest (O3) optimization

teensy4-core
PaulStoffregen 6 years ago
parent
commit
742625eb00
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      teensy4/startup.c

+ 1
- 1
teensy4/startup.c View File

@@ -30,7 +30,7 @@ extern void pwm_init(void);
uint32_t set_arm_clock(uint32_t frequency);


__attribute__((section(".startup")))
__attribute__((section(".startup"), optimize("no-tree-loop-distribute-patterns")))
void ResetHandler(void)
{
unsigned int i;

Loading…
Cancel
Save