MC application with STM32
arm-atollic-eabi-gcc -o NUCLEO_190413_3shunt_5000RPM.elf Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_adc.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_adc_ex.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_cortex.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_dac.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_dac_ex.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_dma.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_flash.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_flash_ex.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_gpio.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_i2c.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_i2c_ex.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_pwr.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_pwr_ex.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_rcc.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_rcc_ex.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_tim.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_tim_ex.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_uart.o Drivers\STM32F3xx_HAL_Driver\Src\stm32f3xx_hal_uart_ex.o Src\main.o Src\mc_api.o Src\mc_config.o Src\mc_parameters.o Src\mc_tasks.o Src\motor_control_protocol.o Src\motorcontrol.o Src\regular_conversion_manager.o Src\stm32f30x_mc_it.o Src\stm32f3xx_hal_msp.o Src\stm32f3xx_it.o Src\system_stm32f3xx.o Src\ui_task.o Src\user_interface.o startup\startup_stm32f302x8.o -l:libmc-truestudio_M4.lib -mthumb -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -T../STM32F302R8_FLASH.ld -specs=nosys.specs -static -L../MCSDK_v5.3.3/MotorControl/lib -Wl,-Map=NUCLEO_190413_3shunt_5000RPM.map -Wl,--gc-sections -Wl,--defsym=malloc_getpagesize_P=0x80 -Wl,--start-group -lc -lm -Wl,--end-group -specs=nano.specs
Src\mc_api.o: In function `MC_StartMotor1':
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_api.c:72: undefined reference to `MCI_StartMotor'
Src\mc_api.o: In function `MC_StopMotor1':
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_api.c:92: undefined reference to `MCI_StopMotor'
Src\mc_api.o: In function `MC_GetSTMStateMotor1':
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_api.c:451: undefined reference to `MCI_GetSTMState'
Src\mc_tasks.o: In function `MCboot':
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:139: undefined reference to `R3_1_F30X_Init'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:147: undefined reference to `startTimers'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:152: undefined reference to `STM_Init'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:157: undefined reference to `PID_HandleInit'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:169: undefined reference to `STC_Init'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:174: undefined reference to `VSS_Init'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:184: undefined reference to `PID_HandleInit'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:185: undefined reference to `PID_HandleInit'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:193: undefined reference to `RVBS_Init'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:205: undefined reference to `NTC_Init'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:211: undefined reference to `PID_HandleInit'
C:\Users\Mando\Atollic\TrueSTUDIO\STM32_workspace_9.3\NUCLEO_190413_3shunt_5000RPM\Debug/..\Src/mc_tasks.c:216: undefined reference to `REMNG_Init'
Src\mc_tasks.o: In function `FOC_Clear':
I used Atollic TrueSTUDIO and MCSDK_v5.3.3.
However I have trouble to build the auto-generated code.
I estimated the link shall be modified.
In addition, is there sample source code in main
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* This notice applies to any and all portions of this file
* that are not between comment pairs USER CODE BEGIN and
* USER CODE END. Other portions of this file, whether
* inserted by the user or by software development tools
* are owned by their respective copyright owners.
*
* Copyright (c) 2019 STMicroelectronics International N.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted, provided that the following conditions are met:
*
* 1. Redistribution of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. Neither the name of STMicroelectronics nor the names of other
* contributors to this software may be used to endorse or promote products
* derived from this software without specific written permission.
* 4. This software, including modifications and/or derivative works of this
* software, must execute solely and exclusively on microcontroller or
* microprocessor devices manufactured by or for STMicroelectronics.
* 5. Redistribution and use of this software other than as permitted under
* this license is void and will automatically terminate your rights under
* this license.
*
* THIS SOFTWARE IS PROVIDED BY STMICROELECTRONICS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS, IMPLIED OR STATUTORY WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
* PARTICULAR PURPOSE AND NON-INFRINGEMENT OF THIRD PARTY INTELLECTUAL PROPERTY
* RIGHTS ARE DISCLAIMED TO THE FULLEST EXTENT PERMITTED BY LAW. IN NO EVENT
* SHALL STMICROELECTRONICS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
* OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
******************************************************************************
*/
/* USER CODE END Header */
/* Includes ------------------------------------------------------------------*/
#include "main.h"
#include "motorcontrol.h"
/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */
#include "mc_interface.h"
#include "mc_api.h"
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
/* USER CODE END PTD */
/* Private define