Skip to content

Commit

Permalink
EmBitz builds marked as unsupported for now
Browse files Browse the repository at this point in the history
Tried to align builds with Eclipse config. But EmBitz does
not support libc_nano for F7. Someone else should take it from here

Add comment that EmBitz builds are currently broken and are in search of
a maintainer to Readme.md
  • Loading branch information
db4ple committed Jan 19, 2019
1 parent 386d679 commit db0624b
Show file tree
Hide file tree
Showing 7 changed files with 303 additions and 75 deletions.
5 changes: 5 additions & 0 deletions mchf-embitz/Readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
**PLEASE NOTE: EMBITZ BUILD IS CURRENTLY UNMAINTAINED**
Builds are mostly not working. Looking for volunteers!



# Building uhsdr firmware with EmBitz

This document describes how to build the uhsdr firmware using the EmBitz IDE on windows.
Expand Down
311 changes: 257 additions & 54 deletions mchf-embitz/bootloader.ebp

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions mchf-embitz/bootloader_f7.ebp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<Add option="-std=gnu11" />
<Add option="-O0" />
<Add option="-g2" />
<Add option="-mthumb" />
</Compiler>
<Cpp>
<Add option="-std=gnu++11" />
Expand Down Expand Up @@ -80,14 +79,17 @@
<Device>
<Add option="$device=cortex-m7" />
<Add option="$fpu=fpv5-d16" />
<Add option="$lscript=..\mchf-eclipse\linker\arm-gcc-link-bootloader_f7.ld" />
</Device>
<Compiler>
<Add option="-mfloat-abi=hard" />
<Add option="-std=gnu11" />
<Add option="-Wall" />
<Add option="-fdata-sections" />
<Add option="-ffunction-sections" />
<Add option="-Os" />
<Add option="-Wno-unused-function" />
<Add option="-mthumb" />
<Add symbol="ARM_MATH_CM7" />
<Add symbol="_GNU_SOURCE" />
<Add symbol="CORTEX_M7" />
Expand All @@ -98,6 +100,7 @@
<Add symbol="TRACE" />
<Add symbol="__FPU_PRESENT=1" />
<Add symbol="BOOTLOADER_BUILD" />
<Add symbol="UI_BRD_OVI40" />
<Add directory="..\mchf-eclipse\basesw\ovi40\Drivers\STM32F7xx_HAL_Driver\Inc" />
<Add directory="..\mchf-eclipse\basesw\ovi40\Inc" />
<Add directory="..\mchf-eclipse\basesw\ovi40\Drivers\CMSIS\Device\ST\STM32F7xx\Include" />
Expand Down Expand Up @@ -134,10 +137,12 @@
<Add directory="..\mchf-eclipse\drivers\ui\encoder" />
<Add directory="..\mchf-eclipse\drivers\ui\menu" />
<Add directory="..\mchf-eclipse\drivers\usb\device\class\composite" />
<Add directory="..\mchf-eclipse\hardware\board_configs" />
</Compiler>
<Cpp>
<Add option="-mfloat-abi=hard" />
<Add option="-std=gnu++11" />
<Add option="-Wextra" />
<Add option="-Wall" />
<Add option="-fdata-sections" />
<Add option="-ffunction-sections" />
Expand All @@ -148,13 +153,7 @@
<Add option="-eb_start_files" />
<Add option="-Wl,--gc-sections" />
<Add option="-flto" />
<Add option="-lm" />
<Add option="-lc" />
<Add option="-lnosys" />
<Add option="-T..\mchf-eclipse\linker\arm-gcc-link-bootloader_f7.ld" />
<Add option="-Xlinker" />
<Add option="--gc-sections" />
<Add option="-Llibs" />
<Add option="--specs=nosys.specs" />
</Linker>
<Unit filename="..\mchf-eclipse\basesw\ovi40\Middlewares\ST\STM32_USB_Device_Library\Core\Src\usbd_core.c">
<Option compilerVar="CC" />
Expand Down
2 changes: 1 addition & 1 deletion mchf-embitz/stm32f4xx_hal.ebp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="Release;ReleaseSmall;" />
<Add alias="All" targets="Debug;Release;ReleaseSmall;" />
</VirtualTargets>
<Device>
<Add option="$device=cortex-m4" />
Expand Down
3 changes: 3 additions & 0 deletions mchf-embitz/stm32f7xx_hal.ebp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
</Cpp>
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="Debug;Release;ReleaseSmall;" />
</VirtualTargets>
<Device>
<Add option="$device=cortex-m7" />
<Add option="$fpu=fpv5-d16" />
Expand Down
34 changes: 23 additions & 11 deletions mchf-embitz/uhsdr.ebp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
</Target>
</Build>
<VirtualTargets>
<Add alias="All" targets="Release;ReleaseSmall;" />
<Add alias="All" targets="Debug;Release;ReleaseSmall;" />
</VirtualTargets>
<Device>
<Add option="$device=cortex-m4" />
Expand Down Expand Up @@ -170,14 +170,6 @@
<Add option="--gc-sections" />
<Add option="-Llibs" />
</Linker>
<Unit filename="..\mchf-eclipse\linker\arm-gcc-link_f4_flash1024k.ld" />
<Unit filename="..\mchf-eclipse\linker\arm-gcc-link_f4_flash512k.ld" />
<Unit filename="..\mchf-eclipse\basesw\mcHF\Src\startup_stm32f407xx.S">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\basesw\mcHF\Src\system_stm32f4xx.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\basesw\mcHF\Middlewares\ST\STM32_USB_Device_Library\Core\Src\usbd_core.c">
<Option compilerVar="CC" />
</Unit>
Expand Down Expand Up @@ -265,12 +257,18 @@
<Unit filename="..\mchf-eclipse\basesw\mcHF\Src\spi.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\basesw\mcHF\Src\startup_stm32f407xx.S">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\basesw\mcHF\Src\stm32f4xx_hal_msp.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\basesw\mcHF\Src\stm32f4xx_it.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\basesw\mcHF\Src\system_stm32f4xx.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\basesw\mcHF\Src\tim.c">
<Option compilerVar="CC" />
</Unit>
Expand Down Expand Up @@ -445,6 +443,9 @@
<Unit filename="..\mchf-eclipse\drivers\audio\freedv_uhsdr.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\audio\freq_shift.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\audio\rtty.c">
<Option compilerVar="CC" />
</Unit>
Expand Down Expand Up @@ -595,13 +596,13 @@
<Unit filename="..\mchf-eclipse\drivers\ui\menu\ui_menu_structure.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\ui\oscillator\soft_tcxo.c">
<Unit filename="..\mchf-eclipse\drivers\ui\oscillator\osc_si5351a.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\ui\oscillator\osc_si570.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\ui\oscillator\osc_si5351a.c">
<Unit filename="..\mchf-eclipse\drivers\ui\oscillator\soft_tcxo.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\ui\radio_management.c">
Expand All @@ -613,6 +614,9 @@
<Unit filename="..\mchf-eclipse\drivers\ui\ui_driver.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\ui\ui_vkeybrd.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\usb\app\usb_device.c">
<Option compilerVar="CC" />
</Unit>
Expand Down Expand Up @@ -640,12 +644,20 @@
<Unit filename="..\mchf-eclipse\hardware\uhsdr_board.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\hardware\uhsdr_hmc1023.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\hardware\uhsdr_hw_i2c.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\hardware\uhsdr_keypad.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\hardware\uhsdr_rtc.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\linker\arm-gcc-link_f4_flash1024k.ld" />
<Unit filename="..\mchf-eclipse\linker\arm-gcc-link_f4_flash512k.ld" />
<Unit filename="..\mchf-eclipse\Makefile" />
<Unit filename="..\mchf-eclipse\misc\config_storage.c">
<Option compilerVar="CC" />
Expand Down
8 changes: 7 additions & 1 deletion mchf-embitz/uhsdr_f7.ebp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
</Cpp>
<Linker>
<Add option="-eb_lib=n" />
<Add option="-T..\mchf-eclipse\linker\arm-gcc-link_f4_flash1024k.ld" />
<Add option="-T..\mchf-eclipse\linker\arm-gcc-link_f7.ld" />
<Add library="bin\F7\Release\libstm32f7xxhal.a" />
<Add library="bin\F7\Release\libcmsisdsp.a" />
</Linker>
Expand Down Expand Up @@ -428,6 +428,9 @@
<Unit filename="..\mchf-eclipse\drivers\audio\freedv_uhsdr.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\audio\freq_shift.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\drivers\audio\psk.c">
<Option compilerVar="CC" />
</Unit>
Expand Down Expand Up @@ -665,6 +668,9 @@
<Unit filename="..\mchf-eclipse\hardware\uhsdr_board.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\hardware\uhsdr_hmc1023.c">
<Option compilerVar="CC" />
</Unit>
<Unit filename="..\mchf-eclipse\hardware\uhsdr_hw_i2c.c">
<Option compilerVar="CC" />
</Unit>
Expand Down

0 comments on commit db0624b

Please sign in to comment.