"make" -C patches/2.032 clean make[1]: Entering directory '/home/zarya/md380tools/patches/2.032' rm -f *~ *.bin *.img *.pyc make[1]: Leaving directory '/home/zarya/md380tools/patches/2.032' "make" -C patches/3.020 clean make[1]: Entering directory '/home/zarya/md380tools/patches/3.020' rm -f *~ *.bin *.img make[1]: Leaving directory '/home/zarya/md380tools/patches/3.020' "make" -C patches/s13.020 clean make[1]: Entering directory '/home/zarya/md380tools/patches/s13.020' rm -f *~ *.bin *.img *.pyc make[1]: Leaving directory '/home/zarya/md380tools/patches/s13.020' "make" -C patches/d13.020 clean make[1]: Entering directory '/home/zarya/md380tools/patches/d13.020' rm -f *~ *.bin *.img *.pyc make[1]: Leaving directory '/home/zarya/md380tools/patches/d13.020' "make" -C applet clean make[1]: Entering directory '/home/zarya/md380tools/applet' "make" -C ../patches/d13.020 clean make[2]: Entering directory '/home/zarya/md380tools/patches/d13.020' rm -f *~ *.bin *.img *.pyc make[2]: Leaving directory '/home/zarya/md380tools/patches/d13.020' "make" -C lib clean make[2]: Entering directory '/home/zarya/md380tools/applet/lib' rm -f misc.o stm32f4xx_dma.o stm32f4xx_rcc.o stm32f4xx_adc.o stm32f4xx_exti.o stm32f4xx_rng.o stm32f4xx_can.o stm32f4xx_flash.o stm32f4xx_rtc.o stm32f4xx_crc.o stm32f4xx_fsmc.o stm32f4xx_sdio.o stm32f4xx_cryp_aes.o stm32f4xx_gpio.o stm32f4xx_spi.o stm32f4xx_cryp.o stm32f4xx_hash.o stm32f4xx_syscfg.o stm32f4xx_cryp_des.o stm32f4xx_hash_md5.o stm32f4xx_tim.o stm32f4xx_cryp_tdes.o stm32f4xx_hash_sha1.o stm32f4xx_usart.o stm32f4xx_dac.o stm32f4xx_i2c.o stm32f4xx_wwdg.o stm32f4xx_dbgmcu.o stm32f4xx_iwdg.o stm32f4xx_dcmi.o stm32f4xx_pwr.o libstm32f4.a make[2]: Leaving directory '/home/zarya/md380tools/applet/lib' rm -f *.img *.lst *.bin *.elf *.hex *.o *~ *.sym src/*~ src/version.h *.map *.tmp make[1]: Leaving directory '/home/zarya/md380tools/applet' "make" -C annotations clean make[1]: Entering directory '/home/zarya/md380tools/annotations' "make" -C d13.020 clean make[2]: Entering directory '/home/zarya/md380tools/annotations/d13.020' rm -f *.tmp *.img make[2]: Leaving directory '/home/zarya/md380tools/annotations/d13.020' "make" -C s13.020 clean make[2]: Entering directory '/home/zarya/md380tools/annotations/s13.020' rm -f *.tmp *.img make[2]: Leaving directory '/home/zarya/md380tools/annotations/s13.020' make[1]: Leaving directory '/home/zarya/md380tools/annotations' "make" -C emulator clean make[1]: Entering directory '/home/zarya/md380tools/emulator' rm -f *.o *~ md380-emu *.wav *.raw *.elf make[1]: Leaving directory '/home/zarya/md380tools/emulator' rm -f *~ *.pyc *.bin "make" -C applet FW=S13_020 all make[1]: Entering directory '/home/zarya/md380tools/applet' echo S13_020 >mark.tmp echo "#define VERSIONDATE L\"`date "+%Y-%m-%d"`\"" >src/version.h echo "#define GIT_VERSION \"d97d59b\"" >>src/version.h "make" -C lib libstm32f4.a make[2]: Entering directory '/home/zarya/md380tools/applet/lib' arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o misc.o src/peripherals/misc.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_dma.o src/peripherals/stm32f4xx_dma.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_rcc.o src/peripherals/stm32f4xx_rcc.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_adc.o src/peripherals/stm32f4xx_adc.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_exti.o src/peripherals/stm32f4xx_exti.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_rng.o src/peripherals/stm32f4xx_rng.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_can.o src/peripherals/stm32f4xx_can.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_flash.o src/peripherals/stm32f4xx_flash.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_rtc.o src/peripherals/stm32f4xx_rtc.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_crc.o src/peripherals/stm32f4xx_crc.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_fsmc.o src/peripherals/stm32f4xx_fsmc.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_sdio.o src/peripherals/stm32f4xx_sdio.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_cryp_aes.o src/peripherals/stm32f4xx_cryp_aes.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_gpio.o src/peripherals/stm32f4xx_gpio.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_spi.o src/peripherals/stm32f4xx_spi.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_cryp.o src/peripherals/stm32f4xx_cryp.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_hash.o src/peripherals/stm32f4xx_hash.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_syscfg.o src/peripherals/stm32f4xx_syscfg.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_cryp_des.o src/peripherals/stm32f4xx_cryp_des.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_hash_md5.o src/peripherals/stm32f4xx_hash_md5.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_tim.o src/peripherals/stm32f4xx_tim.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_cryp_tdes.o src/peripherals/stm32f4xx_cryp_tdes.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_hash_sha1.o src/peripherals/stm32f4xx_hash_sha1.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_usart.o src/peripherals/stm32f4xx_usart.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_dac.o src/peripherals/stm32f4xx_dac.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_i2c.o src/peripherals/stm32f4xx_i2c.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_wwdg.o src/peripherals/stm32f4xx_wwdg.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_dbgmcu.o src/peripherals/stm32f4xx_dbgmcu.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_iwdg.o src/peripherals/stm32f4xx_iwdg.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_dcmi.o src/peripherals/stm32f4xx_dcmi.c arm-none-eabi-gcc -g -O2 -Wall -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -ffreestanding -nostdlib -Iinc -Iinc/core -Iinc/peripherals -fshort-wchar -c -o stm32f4xx_pwr.o src/peripherals/stm32f4xx_pwr.c arm-none-eabi-ar -r libstm32f4.a misc.o stm32f4xx_dma.o stm32f4xx_rcc.o stm32f4xx_adc.o stm32f4xx_exti.o stm32f4xx_rng.o stm32f4xx_can.o stm32f4xx_flash.o stm32f4xx_rtc.o stm32f4xx_crc.o stm32f4xx_fsmc.o stm32f4xx_sdio.o stm32f4xx_cryp_aes.o stm32f4xx_gpio.o stm32f4xx_spi.o stm32f4xx_cryp.o stm32f4xx_hash.o stm32f4xx_syscfg.o stm32f4xx_cryp_des.o stm32f4xx_hash_md5.o stm32f4xx_tim.o stm32f4xx_cryp_tdes.o stm32f4xx_hash_sha1.o stm32f4xx_usart.o stm32f4xx_dac.o stm32f4xx_i2c.o stm32f4xx_wwdg.o stm32f4xx_dbgmcu.o stm32f4xx_iwdg.o stm32f4xx_dcmi.o stm32f4xx_pwr.o arm-none-eabi-ar: creating libstm32f4.a make[2]: Leaving directory '/home/zarya/md380tools/applet/lib' arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=main.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o main.o src/main.c In file included from src/main.c:24: src/gfx.h:175:4: warning: #warning TODO: please consider finding symbol(s); there may be more than one of these... [-Wcpp] # warning TODO: please consider finding symbol(s); there may be more than one of these... ^~~~~~~ arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=printf.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o printf.o src/printf.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=dmesg.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o dmesg.o src/dmesg.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=gfx.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o gfx.o src/gfx.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=system_stm32f4xx.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o system_stm32f4xx.o src/system_stm32f4xx.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=addl_config.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o addl_config.o src/addl_config.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=spiflash.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o spiflash.o src/spiflash.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=usb.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o usb.o src/usb.c src/usb.c: In function 'loadfirmwareversion_hook': src/usb.c:452:9: warning: 'memcpy' forming offset [23, 24] is out of the bounds [0, 22] [-Warray-bounds] memcpy(print_buffer, VERSIONDATE, 24); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=menu.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o menu.o src/menu.c src/menu.c: In function 'create_menu_entry_rev': src/menu.c:397:2: warning: #warning TODO find language menu on this firmware version [-Wcpp] #warning TODO find language menu on this firmware version ^~~~~~~ arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=rtc_timer.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o rtc_timer.o src/rtc_timer.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=usersdb.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o usersdb.o src/usersdb.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=os.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o os.o src/os.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=aes.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o aes.o src/aes.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=ambe.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o ambe.o src/ambe.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=dmr.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o dmr.o src/dmr.c src/dmr.c:189:2: warning: #warning please consider hooking this handler. [-Wcpp] #warning please consider hooking this handler. ^~~~~~~ arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=display.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o display.o src/display.c src/display.c: In function 'draw_adhoc_statusline': src/display.c:621:2: warning: 'strncpy' output may be truncated copying 12 bytes from a string of length 15 [-Wstringop-truncation] strncpy(ch_rx, current_channel_info_E.rxFreq.text, 12); // read RX frequency from codeplug ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/display.c:622:2: warning: 'strncpy' output may be truncated copying 12 bytes from a string of length 15 [-Wstringop-truncation] strncpy(ch_tx, current_channel_info_E.txFreq.text, 12); // read TX frequency from codeplug ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/display.c:624:2: warning: 'strncpy' output may be truncated copying 12 bytes from a string of length 15 [-Wstringop-truncation] strncpy(freq_rx, current_channel_info_E.rxFreq.text, 12); // read RX frequency from codeplug ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/display.c:625:2: warning: 'strncpy' output may be truncated copying 12 bytes from a string of length 15 [-Wstringop-truncation] strncpy(freq_tx, current_channel_info_E.txFreq.text, 12); // read TX frequency from codeplug ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=console.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o console.o src/console.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=util.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o util.o src/util.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=netmon.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o netmon.o src/netmon.c src/netmon.c:62:2: warning: #warning should be symbols, not sure if it is worth the effort [-Wcpp] #warning should be symbols, not sure if it is worth the effort ^~~~~~~ arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=debug.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o debug.o src/debug.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=keyb.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o keyb.o src/keyb.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=radiostate.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o radiostate.o src/radiostate.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=mbox.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o mbox.o src/mbox.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=syslog.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o syslog.o src/syslog.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=lastheard.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o lastheard.o src/lastheard.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=etsi.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o etsi.o src/etsi.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=sms.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o sms.o src/sms.c src/sms.c: In function 'sms_send.part.0': src/sms.c:106:5: warning: 'memcpy' forming offset [5, 36] is out of the bounds [0, 4] of object 'msg_sms_hdr' with type 'uint32_t' {aka 'long unsigned int'} [-Warray-bounds] memcpy(hp,hdr,sizeof(sms_hdr_t)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sms.c:18:21: note: 'msg_sms_hdr' declared here extern uint32_t msg_sms_hdr ; ^~~~~~~~~~~ src/sms.c:107:5: warning: 'memcpy' forming offset [5, 288] is out of the bounds [0, 4] of object 'msg_sms_bdy' with type 'uint32_t' {aka 'long unsigned int'} [-Warray-bounds] memcpy(bp,body,sizeof(sms_bdy_t)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/sms.c:19:21: note: 'msg_sms_bdy' declared here extern uint32_t msg_sms_bdy ; ^~~~~~~~~~~ arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=beep.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o beep.o src/beep.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=irq_handlers.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o irq_handlers.o src/irq_handlers.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=system_hrc5000.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o system_hrc5000.o src/system_hrc5000.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=narrator.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o narrator.o src/narrator.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=lcd_driver.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o lcd_driver.o src/lcd_driver.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=font_8_8.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o font_8_8.o src/font_8_8.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=app_menu.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o app_menu.o src/app_menu.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=color_picker.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o color_picker.o src/color_picker.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=amenu_hexmon.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o amenu_hexmon.o src/amenu_hexmon.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=amenu_utils.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o amenu_utils.o src/amenu_utils.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=amenu_set_tg.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o amenu_set_tg.o src/amenu_set_tg.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=amenu_channels.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o amenu_channels.o src/amenu_channels.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=amenu_codeplug.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o amenu_codeplug.o src/amenu_codeplug.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=timer.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o timer.o src/timer.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=dispinit.lst -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -c -o dispinit.o src/dispinit.c arm-none-eabi-gcc -std=gnu99 -g -O2 -Wall -Tapplet_s13.020.ld -mlittle-endian -mthumb -mcpu=cortex-m4 -mthumb-interwork -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fshort-wchar -Wa,-a=applet.elf -DFW_S13_020 -Iinc -Ilib -Ilib/inc -I. -Ilib/inc/core -Ilib/inc/peripherals -D "MD380_s13_020" -Wl,--no-wchar-size-warning -Wl,-Map,applet.map main.o printf.o dmesg.o gfx.o system_stm32f4xx.o addl_config.o spiflash.o usb.o menu.o rtc_timer.o usersdb.o os.o aes.o ambe.o dmr.o display.o console.o util.o netmon.o debug.o keyb.o radiostate.o mbox.o syslog.o lastheard.o etsi.o sms.o beep.o irq_handlers.o system_hrc5000.o narrator.o lcd_driver.o font_8_8.o app_menu.o color_picker.o amenu_hexmon.o amenu_utils.o amenu_set_tg.o amenu_channels.o amenu_codeplug.o timer.o dispinit.o lib/startup_stm32f4xx_asm.S -o applet.elf -Llib -lstm32f4 -Xlinker --just-symbols=src/symbols_s13.020 arm-none-eabi-objdump -t applet.elf >applet.img.sym arm-none-eabi-objcopy -O binary applet.elf applet.img "make" -C ../patches/s13.020 patched.img make[2]: Entering directory '/home/zarya/md380tools/patches/s13.020' cd ../../firmware && "make" unwrapped/S013.020.img make[3]: Entering directory '/home/zarya/md380tools/firmware' make[3]: 'unwrapped/S013.020.img' is up to date. make[3]: Leaving directory '/home/zarya/md380tools/firmware' cp ../../firmware/unwrapped/S013.020.img unwrapped.img ./patch.py Creating patches from unwrapped.img. Patching hword at 08034a60 to 46c0 Patching hword at 08034a62 to 46c0 Patching hword at 08034a76 to 46c0 Patching hword at 08034a78 to 46c0 Patching hword at 08034a8c to 46c0 Patching hword at 08034a8e to 46c0 Patching hword at 08034aa2 to 46c0 Patching hword at 08034aa4 to 46c0 Patching hword at 08034ab8 to 46c0 Patching hword at 08034aba to 46c0 Patching hword at 08034ace to 46c0 Patching hword at 08034ad0 to 46c0 Patching hword at 08049f9a to 46c0 Patching hword at 08049f9c to 46c0 Patching hword at 0804a820 to 46c0 Patching hword at 0804a822 to 46c0 Patching hword at 0804aae4 to 46c0 Patching hword at 0804aae6 to 46c0 Patching hword at 0804af70 to 46c0 Patching hword at 0804af72 to 46c0 Patching hword at 0804b9fc to 46c0 Patching hword at 0804b9fe to 46c0 Patching wide string at 080d0b6c to 'MD380Tools 2.0'. Patching wide string at 080f9a94 to 'No SatFix'. Patching string at 080d0eb4 to 'Patched MD-380/390G'. Patching hword at 0801fed2 to 46c0 Patching hword at 0801fed4 to 46c0 Patching range from 0809bda8 to 080d0614 to FF. Patching word at 0800c020 to 080fa105 Patching word at 0800c004 to 0809bf01 Patching hword at 0809bf00 to 4840 Patching hword at 0809bf02 to 2100 Patching hword at 0809bf04 to 3901 Patching hword at 0809bf06 to 4508 Patching hword at 0809bf08 to d100 Patching hword at 0809bf0a to 483c Patching hword at 0809bf0c to 4700 Patching word at 0809bffc to 080fa105 ../../md380-gfx --firmware=patched.img --gfx=replacement-font-big-latin.pbm fontreplace DEBUG: writing "patched.img" DEBUG: reading "patched.img" ../../md380-gfx --firmware=patched.img --gfx=replacement-font-small-latin.pbm fontreplace DEBUG: writing "patched.img" DEBUG: reading "patched.img" make[2]: Leaving directory '/home/zarya/md380tools/patches/s13.020' cp ../patches/s13.020/patched.img ./merged.img python2 merge_s13.020.py merged.img applet.img 0x809c000 Merging an applet. Loading symbols from applet.img.sym Merging applet.img into merged.img at 0809c000 Patching SysTick_Handler in VT addr 0x0800c03c, old value in vector table = 0x08094d5b, expected in vector table = 0x08094d5b, new value in vector table = 0x080a726d. SysTick_Handler successfully patched. Merging applet.img into merged.img at 0809c000 ../md380-fw --wrap merged.img wrapped.bin DEBUG: reading "merged.img" Guessing MD380 for radio model INFO: base address 0x800c000 INFO: length 0xf4000 DEBUG: writing "wrapped.bin" cp wrapped.bin experiment.bin make[1]: Leaving directory '/home/zarya/md380tools/applet'