I wanted to use uvision with the examples from stm32cube. I saw the mdk project file and loaded that in to uvision. The group Drivers/STM32F2xx_HAL_Driver pointed to a few missing files. I found these files and fixed that. I think the real problem is that the include paths do not point to the right place but fix that didnt help.
after this was fixed I compiled now I get missing symbols. STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_GetTick (referred from stm32f2xx_hal_can.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_DMA_Abort (referred from stm32f2xx_hal_dac.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_DMA_Start_IT (referred from stm32f2xx_hal_dac.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_Delay (referred from stm32f2xx_hal_eth.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_RCC_GetHCLKFreq (referred from stm32f2xx_hal_eth.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_RCC_GetPCLK1Freq (referred from stm32f2xx_hal_irda.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_RCC_GetPCLK2Freq (referred from stm32f2xx_hal_irda.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NAND_AttributeSpace_Timing_Init (referred from stm32f2xx_hal_nand.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NAND_CommonSpace_Timing_Init (referred from stm32f2xx_hal_nand.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NAND_DeInit (referred from stm32f2xx_hal_nand.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NAND_ECC_Disable (referred from stm32f2xx_hal_nand.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NAND_ECC_Enable (referred from stm32f2xx_hal_nand.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NAND_GetECC (referred from stm32f2xx_hal_nand.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NAND_Init (referred from stm32f2xx_hal_nand.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NORSRAM_DeInit (referred from stm32f2xx_hal_nor.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NORSRAM_Extended_Timing_Init (referred from stm32f2xx_hal_nor.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NORSRAM_Init (referred from stm32f2xx_hal_nor.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NORSRAM_Timing_Init (referred from stm32f2xx_hal_nor.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NORSRAM_WriteOperation_Disable (referred from stm32f2xx_hal_nor.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_NORSRAM_WriteOperation_Enable (referred from stm32f2xx_hal_nor.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_PCCARD_AttributeSpace_Timing_Init (referred from stm32f2xx_hal_pccard.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_PCCARD_CommonSpace_Timing_Init (referred from stm32f2xx_hal_pccard.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_PCCARD_DeInit (referred from stm32f2xx_hal_pccard.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_PCCARD_IOSpace_Timing_Init (referred from stm32f2xx_hal_pccard.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol FSMC_PCCARD_Init (referred from stm32f2xx_hal_pccard.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_IncTick (referred from stm32f2xx_it.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_GPIO_Init (referred from main.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_GPIO_TogglePin (referred from main.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_Init (referred from main.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_RCC_ClockConfig (referred from main.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_RCC_OscConfig (referred from main.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_GPIO_ReadPin (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_GPIO_WritePin (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_I2C_DeInit (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_I2C_GetState (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_I2C_Init (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_I2C_IsDeviceReady (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_I2C_Mem_Read (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_I2C_Mem_Write (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_NVIC_EnableIRQ (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_NVIC_SetPriority (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_SRAM_Init (referred from stm322xg_eval.o). STM322xG_EVAL\STM322xG_EVAL.axf: Error: L6218E: Undefined symbol HAL_UART_Init (referred from stm322xg_eval.o).
I have no idea where to add (what I call libs) like I do with normal software. Can anyone help me at this point, did the install miss a path ? I do not see any keil path in there.
Such an error from the *linker* indicates you don't have *source code* for the required functions, rather than lacking include files.
Make sure your project has these source files, and that any defines in the stm32_hal_conf.h (or whatever) select the appropriate modules.
I think possibly its a matter of where to download and install the examples. I'd like to compile an example (obviously the source is there) but maybe pathed wrong? What is the pack installer? Does this install example files? If I download the stm32cube example files (not sure where I found those), is there a preferred place to put them in the keil folder?
nm, just realized how to use this pack installer. had to click the already highlighted "examples" tab that really was not highlighted it was just colored yellow..... then did the copy and it built just fine.