WDT_T4 - Watchdog Library for Teensy 4

It needs to be declared as "C" code. Here is an example that was in an .INO file - same for .cpp:
Code:
extern "C" void startup_middle_hook(void);
extern "C" volatile uint32_t systick_millis_count;
FLASHMEM void startup_middle_hook(void) {
  pinMode( 2, OUTPUT );
  digitalWrite( 2, HIGH );
  // OPTIONAL FASTER STARTUP: force millis() to be 300 to skip startup delays
  // systick_millis_count = 300;
}

This may not be the issue - but the error message was not shown.
 
Back
Top