cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a custom C function from the startup file (STM32F479) CubeMX

JGrab.2
Associate II

Hi, how can I call C function defined as uint32_t getValue(void) inside startup file (in Reset_Handler routine)? What is needed syntax? I tried importing it and setting it as extern (other standard keywords are not working), but nothing seems to work.

I generated the project using CubeMX and use gcc for compilation. The uC is STM32F479VIT (cortex m4).

10 REPLIES 10

So is it in a C file or a CPP file? Or a .C file compiled as if it where C++

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..