-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compile For STM32F446 Nucleo #261
Comments
I moved pine 1451 in IOSTM.cpp as follows: #if defined(MODE_PINS) && defined(STM32F4_NUCLEO_MORPHO_HEADER) && (defined(STM32F4_NUCLEO) || defined(STM32F722_RPT_HAT)) This now compiles but I get the following undefined references: arm-none-eabi-gcc -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wall -ffunction-sections -g -Os -c -DSTM32F4XX -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSUPPORT_CPLUSPLUS -DHSE_VALUE=8000000 -D__FPU_USED -DSTM32F4_NUCLEO -DSTM32F446xx -IC:\projects\MMDVM\STM32F4XX_Lib\STM32F4xx_StdPeriph_Driver -IC:\projects\MMDVM\STM32F4XX_Lib\Device -IC:\projects -IC:\projects\MMDVM\STM32F4XX_Lib -IC:\ -IC:\projects\MMDVM\STM32F4XX_Lib\STM32F4xx_StdPeriph_Driver\include -IC:\projects\MMDVM\STM32F4XX_Lib\CMSIS\Include -IC:\projects\MMDVM\STM32F4XX_Lib\CMSIS -IC:\projects\MMDVM C:\projects\MMDVM\IOSTM.cpp BUILD FAILED Andy |
I tested no error with following steps:
|
For some reason the mode LEDs work in some modes and not others.
Sent from Yahoo Mail for iPhone
On Thursday, May 21, 2020, 19:04, Shawn <[email protected]> wrote:
I tested with no error with following steps:
- Checkout the latest code in master branch
- enable either #define STM32F4_NUCLEO_MORPHO_HEADER or
#define STM32F4_NUCLEO_ARDUINO_HEADER in config.h
- make nucleo
arm-none-eabi-size bin/mmdvm_f4.elf
text data bss dec hex filename
286820 1684 52820 341324 5354c bin/mmdvm_f4.elf
arm-none-eabi-objcopy -O ihex bin/mmdvm_f4.elf bin/mmdvm_f4.hex
Objcopy from ELF to IHEX complete!
arm-none-eabi-objcopy -O binary bin/mmdvm_f4.elf bin/mmdvm_f4.bin
Objcopy from ELF to BINARY complete!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Except when building for the ZUM v0,9 and v1.0 boards you use "build pi" and that doesn't set the LEDs correctly. I am sure that it used to. This is following the official instructions from Andy CA6JAU on mmdvm_man on GitHub.
On Thursday, 21 May 2020, 19:04:17 BST, Shawn <[email protected]> wrote:
I tested with no error with following steps:
- Checkout the latest code in master branch
- enable either #define STM32F4_NUCLEO_MORPHO_HEADER or
#define STM32F4_NUCLEO_ARDUINO_HEADER in config.h
- make nucleo
arm-none-eabi-size bin/mmdvm_f4.elf
text data bss dec hex filename
286820 1684 52820 341324 5354c bin/mmdvm_f4.elf
arm-none-eabi-objcopy -O ihex bin/mmdvm_f4.elf bin/mmdvm_f4.hex
Objcopy from ELF to IHEX complete!
arm-none-eabi-objcopy -O binary bin/mmdvm_f4.elf bin/mmdvm_f4.bin
Objcopy from ELF to BINARY complete!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Hi,
Two issues I am having:
compile:
[mkdir] Skipping C:\projects\MMDVM\mmdvm_pi_446\Debug\bin because it already exists.
[mkdir] Skipping C:\projects\MMDVM\mmdvm_pi_446\Debug\obj because it already exists.
[cc] Starting dependency analysis for 39 files.
[cc] Parsing ......\Config.h
[cc] Parsing ......\Globals.h
[cc] Parsing ......\Utils.h
[cc] Parsing ......\RSSIRB.h
[cc] Parsing ......\STM32F4XX_Lib\Device\stm32f4xx.h
[cc] Parsing ......\STM32F4XX_Lib\CMSIS\Include\core_cm4.h
[cc] Parsing ......\STM32F4XX_Lib\CMSIS\Include\core_cmInstr.h
[cc] Parsing ......\STM32F4XX_Lib\CMSIS\Include\core_cmFunc.h
[cc] Parsing ......\STM32F4XX_Lib\CMSIS\Include\core_cmSimd.h
[cc] Parsing ......\SampleRB.h
[cc] Parsing ......\SerialPort.cpp
[cc] Parsing ......\SerialRB.h
[cc] 13 files are up to date.
[cc] 26 files to be recompiled from dependency analysis.
[cc] 27 total files to be compiled.
[cc] arm-none-eabi-gcc -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wall -ffunction-sections -g -Os -c -DSTM32F4XX -DUSE_STDPERIPH_DRIVER -D__ASSEMBLY__ -DSUPPORT_CPLUSPLUS -D__FPU_USED -DSTM32F446xx -DHSE_VALUE=12000000 -DSTM32F4_PI -DMODE_LEDS -IC:\projects\MMDVM\STM32F4XX_Lib\STM32F4xx_StdPeriph_Driver -IC:\projects\MMDVM\STM32F4XX_Lib\Device -IC:\projects -IC:\projects\MMDVM\STM32F4XX_Lib -IC:\ -IC:\projects\MMDVM\STM32F4XX_Lib\STM32F4xx_StdPeriph_Driver\include -IC:\projects\MMDVM\STM32F4XX_Lib\CMSIS\Include -IC:\projects\MMDVM\STM32F4XX_Lib\CMSIS -IC:\projects\MMDVM C:\projects\MMDVM\DMRDMORX.cpp C:\projects\MMDVM\CalRSSI.cpp C:\projects\MMDVM\CalDMR.cpp C:\projects\MMDVM\CalDStarTX.cpp C:\projects\MMDVM\DMRRX.cpp C:\projects\MMDVM\P25TX.cpp C:\projects\MMDVM\IOSTM.cpp C:\projects\MMDVM\DStarTX.cpp C:\projects\MMDVM\CalFM.cpp C:\projects\MMDVM\YSFRX.cpp C:\projects\MMDVM\DMRDMOTX.cpp C:\projects\MMDVM\DMRTX.cpp C:\projects\MMDVM\CWIdTX.cpp C:\projects\MMDVM\SerialPort.cpp C:\projects\MMDVM\MMDVM.cpp C:\projects\MMDVM\SerialSTM.cpp C:\projects\MMDVM\CalDStarRX.cpp C:\projects\MMDVM\DMRIdleRX.cpp C:\projects\MMDVM\P25RX.cpp C:\projects\MMDVM\DMRSlotRX.cpp C:\projects\MMDVM\IOTeensy.cpp C:\projects\MMDVM\IO.cpp C:\projects\MMDVM\YSFTX.cpp C:\projects\MMDVM\IODue.cpp C:\projects\MMDVM\DStarRX.cpp C:\projects\MMDVM\SerialArduino.cpp C:\projects\MMDVM\DMRSlotType.cpp
[cc] C:\projects\MMDVM\IOSTM.cpp: In member function 'void CIO::setFMInt(bool)':
[cc] C:\projects\MMDVM\IOSTM.cpp:1451:18: error: 'PORT_FM' was not declared in this scope
[cc] GPIO_WriteBit(PORT_FM, PIN_FM, on ? Bit_SET : Bit_RESET);
[cc] ^~~~~~~
[cc] C:\projects\MMDVM\IOSTM.cpp:1451:18: note: suggested alternative: 'PORT_DMR'
[cc] GPIO_WriteBit(PORT_FM, PIN_FM, on ? Bit_SET : Bit_RESET);
[cc] ^~~~~~~
[cc] PORT_DMR
[cc] C:\projects\MMDVM\IOSTM.cpp:1451:28: error: 'PIN_FM' was not declared in this scope
[cc] GPIO_WriteBit(PORT_FM, PIN_FM, on ? Bit_SET : Bit_RESET);
[cc] ^~~~~~
[cc] C:\projects\MMDVM\IOSTM.cpp:1451:28: note: suggested alternative: 'PIN_RX'
[cc] GPIO_WriteBit(PORT_FM, PIN_FM, on ? Bit_SET : Bit_RESET);
[cc] ^~~~~~
[cc] PIN_RX
BUILD FAILED
Total time: 8 seconds
Any ideas?
Andy
The text was updated successfully, but these errors were encountered: