Using STM32CubeMX and Creating Global Init Functions
I have been intermittently attempting to use a Arduino Giga R1 with Simulink. I have, to my knowledge setup a simple example within a STM32 ioc file (derived from this setup: https://github.com/szabo-tamas/GigaR1Init). However in the building process within Simulink, it fails due to init functions needing to be set to global functions. I have followed all steps within the stm32cubemx guide on mathworks. Current information about how to set up in stm32cubemx: https://www.mathworks.com/help/supportpkg/stmicroelectronicsstm32f4discovery/ug/Getting-started-stm32cubemx.html.
Are there any guides on how to accomplish this appropriately or correctly within matlab/simulink environment, instead of what was recommended within the STM32 community here: https://community.st.com/t5/stm32cubemx-mcus/how-to-change-init-functions-to-global/td-p/53187. I drafted a simple function to update the init function-calls to be externs, not saying it couldnt be optimized, or improved (see attached). I believe this should enable building the simple example, however I still receive the same error when attempting to build code.
Current error when I attempt to build:
Every init function must be configured to generate a global function call instead of static functions call in STM32CubeMX project.I have been intermittently attempting to use a Arduino Giga R1 with Simulink. I have, to my knowledge setup a simple example within a STM32 ioc file (derived from this setup: https://github.com/szabo-tamas/GigaR1Init). However in the building process within Simulink, it fails due to init functions needing to be set to global functions. I have followed all steps within the stm32cubemx guide on mathworks. Current information about how to set up in stm32cubemx: https://www.mathworks.com/help/supportpkg/stmicroelectronicsstm32f4discovery/ug/Getting-started-stm32cubemx.html.
Are there any guides on how to accomplish this appropriately or correctly within matlab/simulink environment, instead of what was recommended within the STM32 community here: https://community.st.com/t5/stm32cubemx-mcus/how-to-change-init-functions-to-global/td-p/53187. I drafted a simple function to update the init function-calls to be externs, not saying it couldnt be optimized, or improved (see attached). I believe this should enable building the simple example, however I still receive the same error when attempting to build code.
Current error when I attempt to build:
Every init function must be configured to generate a global function call instead of static functions call in STM32CubeMX project. I have been intermittently attempting to use a Arduino Giga R1 with Simulink. I have, to my knowledge setup a simple example within a STM32 ioc file (derived from this setup: https://github.com/szabo-tamas/GigaR1Init). However in the building process within Simulink, it fails due to init functions needing to be set to global functions. I have followed all steps within the stm32cubemx guide on mathworks. Current information about how to set up in stm32cubemx: https://www.mathworks.com/help/supportpkg/stmicroelectronicsstm32f4discovery/ug/Getting-started-stm32cubemx.html.
Are there any guides on how to accomplish this appropriately or correctly within matlab/simulink environment, instead of what was recommended within the STM32 community here: https://community.st.com/t5/stm32cubemx-mcus/how-to-change-init-functions-to-global/td-p/53187. I drafted a simple function to update the init function-calls to be externs, not saying it couldnt be optimized, or improved (see attached). I believe this should enable building the simple example, however I still receive the same error when attempting to build code.
Current error when I attempt to build:
Every init function must be configured to generate a global function call instead of static functions call in STM32CubeMX project. arduino, giga r1, stm32, stm32cubemx MATLAB Answers — New Questions