I’m trying to port a C++ project from IAR to GCC. I’m using VisualGDB with Visual Studio 2022 and arm-eabi GCC 10.3.1. This project is for an STM32h743II.
My bootloader was not finding the application, so after some debugging, I found out that the spot in the application hex file where the startup file code should be is filled with 0x4770BEFF. All of the address where, according to the map file, the interrupt handlers should be are filled with this. (See attachment)
I made a couple of changes to the startup_stm32h743xx.c file because of some errors I was getting. I’ve attached the file below. The changes I made were:
- replacing ‘&’ with ‘(void *)’ on lines 1363-1527
- adding ‘extern “C”‘ on lines 10 &1531
I don’t get any compilation errors now, so I’m wondering if there are any ideas as to why this might be happening or how to debug the problem.
Attachments:
You must be
logged in to view attached files.