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

Does this still build? Error: undefined reference to **`HAL_IWDG_Start'** #1

Open
vonkoda opened this issue Mar 8, 2020 · 1 comment

Comments

@vonkoda
Copy link

vonkoda commented Mar 8, 2020

Was trying this build tonight (yes I know its 5years old!) and as expected, a lot of errors maybe due to the environments etc moving on in the meantime.

EDITed: Main problem appears to be around the Watchdog piece in the code:

Code:

  /* Configure and start IWDG */

hiwdg.Instance = IWDG;
hiwdg.Init.Prescaler = IWDG_PRESCALER_4;
hiwdg.Init.Reload = 2047;
HAL_IWDG_Init(&hiwdg);
#ifdef WATCHDOG_EN
HAL_IWDG_Start(&hiwdg);
print("\r\n[OK] Watchdog started");
#else
print("\r\n[WARNING] Watchdog not enabled");
#endif

Error:

Error 137 error : undefined reference to `HAL_IWDG_Start' C:\Tools\Software_Diff\BrinirController-master\Firmware\main.c 85 1 Firmware
Error 138 error : ld returned 1 exit status C:\Tools\Software_Diff\BrinirController-master\Firmware\collect2.exe Firmware
Error 139 error : Command-line action failed C:\Tools\Software_Diff\BrinirController-master\Firmware\VisualGDB Firmware

@vonkoda vonkoda changed the title Does this still build? Does this still build? Undeclared value critical error: LSE_STARTUP_TIMEOUT Mar 8, 2020
@vonkoda vonkoda changed the title Does this still build? Undeclared value critical error: LSE_STARTUP_TIMEOUT Does this still build? Undeclared value critical error: error : undefined reference to **`HAL_IWDG_Start'** Mar 14, 2020
@vonkoda vonkoda changed the title Does this still build? Undeclared value critical error: error : undefined reference to **`HAL_IWDG_Start'** Does this still build? Error: undefined reference to **`HAL_IWDG_Start'** Mar 14, 2020
@siliconwitch
Copy link
Owner

Hi,

Sorry for the super slow reply. Glad you got it working though!

Yes this project is horribly out of date, and I haven't run this code in quite some time. I'd recommend moving all the application code over to the latest ST stack. If you can get a copy Simulink codegen, then it's probably worth rebuilding the model code too.

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

2 participants