OneOfEleven / uv-k5-firmware-custom

A customized version of https://github.com/DualTachyon/uv-k5-firmware
Apache License 2.0
165 stars 75 forks source link

the latest commit cannot be compiled when f_cal=1 #283

Closed pawol closed 1 year ago

pawol commented 1 year ago

BUTT_MENU -DENABLE_KEYLOCK -I c:/1of11/ -I c:/1of11//external/CMSIS_5/CMSIS/Core/Include/ -I c:/1of11//external/CMSIS_5/Device/ARM/ARMCM0/Include -c app/main.c -o app/main.o arm-none-eabi-gcc -Os -Werror -mcpu=cortex-m0 -freorder-blocks-algorithm=stc -std=c11 -MMD -flto=2 -Wall -Wextra -Wpedantic -DPRINTF_INCLUDE_CONFIG_H -DGIT_HASH=\"bb3b681\" -DENABLE_FMRADIO_875_108 -DENABLE_FMRADIO -DENABLE_UART -DENABLE_SMALL_BOLD -DENABLE_MUTE_RADIO_FOR_VOICE -DENABLE_VOX -DENABLE_REDUCE_LOW_MID_TX_POWER -DENABLE_TX1750 -DENABLE_KEEP_MEM_NAME -DENABLE_WIDE_RX -DENABLE_F_CAL_MENU -DENABLE_CTCSS_TAIL_PHASE_SHIFT -DENABLE_REVERSE_BAT_SYMBOL -DENABLE_AM_FIX -DENABLE_FASTER_CHANNEL_SCAN -DENABLE_RX_SIGNAL_BAR -DENABLE_TX_AUDIO_BAR -DENABLE_COPY_CHAN_TO_VFO_TO_CHAN -DENABLE_SIDE_BUTT_MENU -DENABLE_KEYLOCK -I c:/1of11/ -I c:/1of11//external/CMSIS_5/CMSIS/Core/Include/ -I c:/1of11//external/CMSIS_5/Device/ARM/ARMCM0/Include -c app/menu.c -o app/menu.o app/menu.c: In function 'writeXtalFreqCal': app/menu.c:64:27: error: 'struct ' has no member named 'BK4819_xtal_freq_low' 64 | g_eeprom.config.setting.BK4819_xtal_freq_low = value; | ^ app/menu.c: In function 'MENU_ShowCurrentSetting': app/menu.c:1335:51: error: 'struct ' has no member named 'BK4819_xtal_freq_low' 1335 | g_sub_menu_selection = g_eeprom.config.setting.BK4819_xtal_freq_low; | ^ make: *** [app/menu.o] Błąd 1 Press any key to continue . . .

pawol commented 1 year ago

Flash size with options enabled as always (and even less than always) is exceeded

OneOfEleven commented 1 year ago

Yes I'm slowly working on trying to reduce the code size, it's grown too much with the various options added over time. Going to have to make some sacrifices with the functionality :(

lohtse commented 1 year ago

Phew not just me with f-cal and size issues lol

Thank you for continuing the work OneOfEleven it is very much appreciated

OneOfEleven commented 1 year ago

Just going to upload the fixed VOX, as I know you like your VOX ;)

lohtse commented 1 year ago

Just going to upload the fixed VOX, as I know you like your VOX ;)

Thank you

there is also an issue if

ENABLE_TX_TIMEOUT_BAR := 1

Tx Audio Bar 300

is used

ernal/CMSIS_5/CMSIS/Core/Include/ -I D:/TWatch/uv-k5-firmware-custom//external/CMSIS_5/Device/ARM/ARMCM0/Include -c app/app.c -o app/app.o app/app.c: In function 'APP_time_slice_500ms': app/app.c:1980:77: error: expected statement before ')' token 1980 | if (g_current_function == FUNCTION_TRANSMIT && g_tx_timer_tick_500ms & 1u)) | ^ make: *** [app/app.o] Error 1

OneOfEleven commented 1 year ago

I think the time out bar's about to timeout !