Skip to content

Unable to compile MMDVM for STMF7 #349

@f5bcb

Description

@f5bcb

Compiling the raspberry PI / Bookworm modem for an STM32F767 board doesn't finish successfully.
Here are the errors:

pi@F5ZJH-Bookworm:/opt/MMDVM $ sudo make f767
echo "#define GITVERSION "824c9b9"" > GitVersion.h
arm-none-eabi-g++ -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-builtin -fno-rtti -DCUSTOM_NEW -DNO_EXCEPTIONS -c -mcpu=cortex-m7 -mthumb -mlittle-endian -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb-interwork -I. -I./STM32F7XX_Lib/CMSIS/Include/ -I./STM32F7XX_Lib/Device/ -I./STM32F7XX_Lib/STM32F7xx_StdPeriph_Driver/inc/ -DUSE_HAL_DRIVER -DSTM32F767xx -DSTM32F7XX -DSTM32F7_NUCLEO -DHSE_VALUE=8000000 -DMADEBYMAKEFILE AX25Demodulator.cpp -o obj_f7/AX25Demodulator.o
In file included from ./STM32F7XX_Lib/CMSIS/Include/core_cmInstr.h:61,
from ./STM32F7XX_Lib/CMSIS/Include/core_cm7.h:210,
from ./STM32F7XX_Lib/Device/stm32f767xx.h:203,
from ./STM32F7XX_Lib/Device/stm32f7xx.h:148,
from Globals.h:25,
from AX25Demodulator.cpp:24:
./STM32F7XX_Lib/CMSIS/Include/cmsis_gcc.h: In function 'uint32_t __get_PSP()':
./STM32F7XX_Lib/CMSIS/Include/cmsis_gcc.h:150:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
150 | register uint32_t result;
| ^~~~~~
./STM32F7XX_Lib/CMSIS/Include/cmsis_gcc.h: In function 'uint32_t __get_MSP()':
./STM32F7XX_Lib/CMSIS/Include/cmsis_gcc.h:175:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
175 | register uint32_t result;
| ^~~~~~
Compiled AX25Demodulator.cpp!

//
//
//
arm-none-eabi-g++ -Os -fno-exceptions -ffunction-sections -fdata-sections -fno-builtin -fno-rtti -DCUSTOM_NEW -DNO_EXCEPTIONS -c -mcpu=cortex-m7 -mthumb -mlittle-endian -mfpu=fpv5-sp-d16 -mfloat-abi=hard -mthumb-interwork -I. -I./STM32F7XX_Lib/CMSIS/Include/ -I./STM32F7XX_Lib/Device/ -I./STM32F7XX_Lib/STM32F7xx_StdPeriph_Driver/inc/ -DUSE_HAL_DRIVER -DSTM32F767xx -DSTM32F7XX -DSTM32F7_NUCLEO -DHSE_VALUE=8000000 -DMADEBYMAKEFILE IOSTM.cpp -o obj_f7/IOSTM.o
In file included from ./STM32F7XX_Lib/CMSIS/Include/core_cmInstr.h:61,
from ./STM32F7XX_Lib/CMSIS/Include/core_cm7.h:210,
from ./STM32F7XX_Lib/Device/stm32f767xx.h:203,
from ./STM32F7XX_Lib/Device/stm32f7xx.h:148,
from Globals.h:25,
from IOSTM.cpp:23:
./STM32F7XX_Lib/CMSIS/Include/cmsis_gcc.h: In function 'uint32_t __get_PSP()':
./STM32F7XX_Lib/CMSIS/Include/cmsis_gcc.h:150:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
150 | register uint32_t result;
| ^~~~~~
./STM32F7XX_Lib/CMSIS/Include/cmsis_gcc.h: In function 'uint32_t __get_MSP()':
./STM32F7XX_Lib/CMSIS/Include/cmsis_gcc.h:175:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister]
175 | register uint32_t result;
| ^~~~~~
IOSTM.cpp: In member function 'void CIO::initInt()':
IOSTM.cpp:111:27: error: 'RCC_Per_M17' was not declared in this scope; did you mean 'RCC_Per_PTT'?
111 | RCC_AHB1PeriphClockCmd(RCC_Per_M17, ENABLE);
| ^~~~~~~~~~~
| RCC_Per_PTT
IOSTM.cpp:112:33: error: 'PIN_M17' was not declared in this scope
112 | GPIO_InitStruct.GPIO_Pin = PIN_M17;
| ^~~~~~~
IOSTM.cpp:114:14: error: 'PORT_M17' was not declared in this scope
114 | GPIO_Init(PORT_M17, &GPIO_InitStruct);
| ^~~~~~~~
IOSTM.cpp:127:27: error: 'RCC_Per_FM' was not declared in this scope; did you mean 'RCC_Per_RX'?
127 | RCC_AHB1PeriphClockCmd(RCC_Per_FM, ENABLE);
| ^~~~~~~~~~
| RCC_Per_RX
IOSTM.cpp:128:33: error: 'PIN_FM' was not declared in this scope; did you mean 'PIN_RX'?
128 | GPIO_InitStruct.GPIO_Pin = PIN_FM;
| ^~~~~~
| PIN_RX
IOSTM.cpp:130:14: error: 'PORT_FM' was not declared in this scope; did you mean 'PORT_DMR'?
130 | GPIO_Init(PORT_FM, &GPIO_InitStruct);
| ^~~~~~~
| PORT_DMR
IOSTM.cpp: In member function 'void CIO::setM17Int(bool)':
IOSTM.cpp:466:18: error: 'PORT_M17' was not declared in this scope
466 | GPIO_WriteBit(PORT_M17, PIN_M17, on ? Bit_SET : Bit_RESET);
| ^~~~~~~~
IOSTM.cpp:466:28: error: 'PIN_M17' was not declared in this scope
466 | GPIO_WriteBit(PORT_M17, PIN_M17, on ? Bit_SET : Bit_RESET);
| ^~~~~~~
IOSTM.cpp: In member function 'void CIO::setFMInt(bool)':
IOSTM.cpp:508:18: error: 'PORT_FM' was not declared in this scope; did you mean 'PORT_DMR'?
508 | GPIO_WriteBit(PORT_FM, PIN_FM, on ? Bit_SET : Bit_RESET);
| ^~~~~~~
| PORT_DMR
IOSTM.cpp:508:28: error: 'PIN_FM' was not declared in this scope; did you mean 'PIN_RX'?
508 | GPIO_WriteBit(PORT_FM, PIN_FM, on ? Bit_SET : Bit_RESET);
| ^~~~~~
| PIN_RX
make: *** [Makefile:312: obj_f7/IOSTM.o] Error 1
pi@F5ZJH-Bookworm:/opt/MMDVM $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions