Skip to main content
IAgui
Associate III
April 1, 2021
Question

C++ and linker script

  • April 1, 2021
  • 0 replies
  • 545 views

Hello All,

I am using an STM32f767ZI device. I wrote a c++ program that has a base io class in which a gpio peripheral class inherits from the base io class. I call HAL_GPIO_TogglePin, HAL_GPIO_Init and HAL_GPIO_WritePin in the gpio class methods all seem to work as I expect. In my research on how to accomplish this, I noticed that certain people have added sections to their linker script to have their c++ program work properly. In my case, I didn't have to. Can anyone shed some light on this?

This topic has been closed for replies.