288 views
in System Integration by
Hi All,

I am just hacking the STM32L4R9-MB1315-Evalboard demo source files  to  get them to  work with our  custom board  based on the STM32L4P5 MCU. When I set EW_USE_FREE_RTOS=0, I get 2 compile errors:

STM32L4R9-MB1315-Evalboard\EmbeddedWizard-STM32L4R9-MB1315-Evalboard.axf: Error: L6200E: Symbol PendSV_Handler multiply defined (by port.o and stm32l4xx_it.o).
STM32L4R9-MB1315-Evalboard\EmbeddedWizard-STM32L4R9-MB1315-Evalboard.axf: Error: L6200E: Symbol SVC_Handler multiply defined (by port.o and stm32l4xx_it.o).

On an earlier product, doing this just this produced to no such error, please how do I resolve this?

Also, I have just upgraded to  Embedded Wizard 11 Pro for 9.2, I noticed that default Keil uVision project for the demo board, is now configured to use "External  Tool for Flash Programming" is there a reason for this?

MikeZ

1 Answer

0 votes
by
Hi MikeZ,

concerning the STM32L4R9.MB1314-Evalboard: I just tried the example HelloWorld using GCC compiler (makefile) and it can be compiled / linked with and without FreeRTOS.

Please take the makefile as a template for your Keil project to see which files are excluded in case the binary is built as bare-metal version. I assume you still have files of FreeRTOS within your project.

Concerning the 'External Tool for Flash Programming': All of our Build Environments are now configured to use one flash program for the different toolchains (GCC/make, IAR, Keil, MCUXpresso, STM32CubeIDE,....) in order to avoid incomplete downloads. Especially the external flash loaders are not always available for new evaluation boards.

But feel free to use the flash programmer provided with your toolchain.

Best regards,

Manfred.
by
Hi Mandred,

Thanks for your reply. I have tried several demos (Embedded Wizard) of different STM32 MCUs, they all produce the same error message EW_USE_FREE_RTOS=0 when using Keil uVision. For sure they did not use to.

MikeZ
by

Hi Mike,

in older versions it was the same story when using Keil (or other IDEs) - there was a readme.txt file with following note:

- Usage of FreeRTOS:
  The project is predefined for using FreeRTOS. For running the application
  without FreeRTOS you have to set EW_USE_FREE_RTOS=0 in the global project
  options and to exclude the FreeRTOS modules from the build.

So just setting the flag EW_USE_FREE_RTOS to 0 only works with the GCC/makefile - in all other cases the FreeRTOS sources have to be removed from the project manually.

Best regards,

Manfred.

by
Hi Manfred,

Thanks for your reply.

MikeZ

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...