Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Core for STM32 from STMicroelectronics doesn't compile (Read 1070 times)
umar techboy
Newbies
*
Offline


Posts: 2
Joined: Aug 17th, 2020
Core for STM32 from STMicroelectronics doesn't compile
Aug 17th, 2020 at 12:48pm
Print Post  
I've been using STM32 core from STM32duino without any trouble on VM for the past couple of months. I only need to enable "Deep search for libraries" in order to be able to compile.

I recently switched to stm32 core by STMicroelectronics because the EEPROM library in STM32 doesn't work at all. All the functions return errors at run time. So, I downloaded the new core and built a sketch in Arduino first and it works perfectly. But in VM, it gives me an error for build_opt.h not found in %CurrentUser%\AppData\Local\Temp\VMBuilds\PhysLoggerSTM32\STM32_GenF1\Release. I found a file name "build_opt.h" in a child folder in the same directory. I tried moving it to the parent folder for VM to find it, Now, it does find it but throws me a lot of new errors all of which are thrown at link time: undefined references to functions and variables.

Error linking for board Generic STM32F1 series
(.text.Reset_Handler+0x26)*: undefined reference to SystemInit
Build failed for project 'PhysLoggerSTM32'
 
ld.exe: \core.a(main.cpp.o): in function premain()
main.cpp*: (.text.startup._Z7premainv+0x4): undefined reference to HAL_NVIC_SetPriorityGrouping
 
ld.exe: \core.a(board.c.o): in function init
board.c*: (.text.init+0x0): undefined reference to hw_config_init
 

and so on...

How can I solve it? I've tried restarting VS, creating a new project with the new core, toggling deep search and several other options in the VMicro menu.
« Last Edit: Aug 17th, 2020 at 12:50pm by umar techboy »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core for STM32 from STMicroelectronics doesn't compile
Reply #1 - Aug 17th, 2020 at 3:17pm
Print Post  
Deep search is ON unless you switch it OFF. In the Arduino you can not switch it off. The STM core is an example of a core that relies on it.

Please follow the guide above in yellow.

Thanks
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Core for STM32 from STMicroelectronics doesn't compile
Reply #2 - Aug 18th, 2020 at 11:52am
Print Post  
Hi, please do provide the info requested above but we are also looking into an issue where the stm cores conflict. 

A workaround, if you uninstall the one you are not using then it should work okay. The requested output will allow us to give more specific instruction.
  
Back to top
WWW  
IP Logged
 
umar techboy
Newbies
*
Offline


Posts: 2
Joined: Aug 17th, 2020
Re: Core for STM32 from STMicroelectronics doesn't compile
Reply #3 - Aug 18th, 2020 at 2:14pm
Print Post  
Here is the build output with compiler Verbose enabled.

Update:
I did solve the EEPROM issue in the STM32Duino's core but would still need to solve this issue for the future.
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint