How to run the sample OpenAMP_TTY_echo program in STM32CubeIDE
I'm following a tutorial for setting up the STM32MP157C-DK2. I'm on the step for running the OpenAMP_TTY sample program. However, when I try to build the program, I get a whole bunch or errors as follows:
make -j8 all
arm-none-eabi-gcc -o "OpenAMP_TTY_echo_CM4.elf" @"objects.list" -mcpu=cortex-m4 -T"/home/ben/STM32MPU_workspace/STM32MP15-Ecosystem-v3.1.0/Developer-Package/STM32Cube_FW_MP1_V1.5.0/Projects/STM32MP157C-DK2/Applications/OpenAMP/OpenAMP_TTY_echo/STM32CubeIDE/CM4/STM32MP157CAAX_RAM.ld" --specs=nosys.specs -Wl,-Map="OpenAMP_TTY_echo_CM4.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: ./Application/Startup/startup_stm32mp157caax.o: in function `LoopFillZerobss':
/home/ben/STM32MPU_workspace/STM32MP15-Ecosystem-v3.1.0/Developer-Package/STM32Cube_FW_MP1_V1.5.0/Projects/STM32MP157C-DK2/Applications/OpenAMP/OpenAMP_TTY_echo/STM32CubeIDE/CM4/Application/Startup/startup_stm32mp157caax.s:90: undefined reference to `SystemInit'
/usr/lib/gcc/arm-none-eabi/9.2.1/../../../arm-none-eabi/bin/ld: ./Application/User/main.o: in function `main':
/home/ben/STM32MPU_workspace/STM32MP15-Ecosystem-v3.1.0/Developer-Package/STM32Cube_FW_MP1_V1.5.0/Projects/STM32MP157C-DK2/Applications/OpenAMP
collect2: error: ld returned 1 exit status
make: *** [makefile:63: OpenAMP_TTY_echo_CM4.elf] Error 1
"make -j8 all" terminated with exit code 2. Build might be incomplete.I abbreviated the error, but there are 82 of them that say "undefined reference to." I'm thinking that the issue might have something to do with setting the source of the SDK or perhaps with setting up the environment, but I'm not sure. Any help or guidance is greatly appreciated.
