I’ve been trying to compile the bootloader for STM32 core, as I have a “virgin” chip and want to program it via ROM based UART Bootloader as described here. I have done this before, but for some reason the compile action fails. “Normal” code compilation works, but with the bootloader I get the following error message:
CD: C:\mios32\trunk\bootloader\src\
Current directory: C:\mios32\trunk\bootloader\src
make
Process started >>>
make -f Makefile.bsl_MBHP_CORE_STM32 cleanall
make[1]: Entering directory `/c/mios32/trunk/bootloader/src'
rm -rf project_build
rm -f project.hex
make[1]: Leaving directory `/c/mios32/trunk/bootloader/src'
make -f Makefile.bsl_MBHP_CORE_STM32
make[1]: Entering directory `/c/mios32/trunk/bootloader/src'
rm -f project.hex
Creating object file for startup_stm32f10x_hd.c
Creating object file for main.c
Creating object file for bsl_sysex.c
bsl_sysex.c: In function 'BSL_SYSEX_Cmd_WriteMem':
bsl_sysex.c:293: warning: suggest parentheses around assignment used as truth value
Creating object file for mios32_srio.c
Creating object file for mios32_din.c
Creating object file for mios32_dout.c
Creating object file for mios32_enc.c
Creating object file for mios32_lcd.c
Creating object file for mios32_midi.c
c:/mios32/trunk/mios32/common/mios32_midi.c: In function 'MIOS32_MIDI_SYSEX_Cmd':
c:/mios32/trunk/mios32/common/mios32_midi.c:1479: warning: implicit declaration of function 'BSL_SYSEX_Cmd'
c:/mios32/trunk/mios32/common/mios32_midi.c: In function 'MIOS32_MIDI_SYSEX_Cmd_Query':
c:/mios32/trunk/mios32/common/mios32_midi.c:1562: warning: implicit declaration of function 'BSL_SYSEX_ReleaseHaltState'
Creating object file for mios32_osc.c
Creating object file for mios32_com.c
Creating object file for mios32_uart_midi.c
Creating object file for mios32_iic_midi.c
Creating object file for mios32_iic_bs.c
Creating object file for mios32_mf.c
Creating object file for mios32_sdcard.c
Creating object file for mios32_enc28j60.c
Creating object file for mios32_bsl.c
Creating object file for mios32_sys.c
Creating object file for mios32_irq.c
Creating object file for mios32_spi.c
Creating object file for mios32_i2s.c
Creating object file for mios32_board.c
Creating object file for mios32_timer.c
Creating object file for mios32_stopwatch.c
Creating object file for mios32_delay.c
Creating object file for mios32_ain.c
Creating object file for mios32_usb.c
Creating object file for mios32_usb_midi.c
Creating object file for mios32_usb_com.c
Creating object file for mios32_uart.c
Creating object file for mios32_iic.c
Creating object file for printf-stdarg.c
Creating object file for stm32f10x_gpio.c
Creating object file for stm32f10x_flash.c
Creating object file for stm32f10x_adc.c
Creating object file for stm32f10x_dac.c
Creating object file for stm32f10x_spi.c
Creating object file for stm32f10x_usart.c
Creating object file for stm32f10x_i2c.c
Creating object file for stm32f10x_dma.c
Creating object file for stm32f10x_tim.c
Creating object file for stm32f10x_rcc.c
Creating object file for stm32f10x_rtc.c
Creating object file for stm32f10x_bkp.c
Creating object file for stm32f10x_pwr.c
Creating object file for misc.c
Creating object file for core_cm3.c
Creating object file for usb_core.c
Creating object file for usb_int.c
Creating object file for usb_mem.c
Creating object file for usb_regs.c
Creating object file for otgd_fs_cal.c
Creating object file for otgd_fs_dev.c
Creating object file for otgd_fs_int.c
Creating object file for otgd_fs_pcd.c
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/bin/ld.exe: project_build/project.elf section `.text' will not fit in region `FLASH'
c:/program files/codesourcery/sourcery g++ lite/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/bin/ld.exe: region `FLASH' overflowed by 848 bytes
collect2: ld returned 1 exit status
make[1]: *** [project_build/project.elf] Error 1
make[1]: Leaving directory `/c/mios32/trunk/bootloader/src'
make: *** [MBHP_CORE_STM32] Error 2
<<< Process finished.
================ READY ================
I have not changed anything in the code itself, it is what is in the repository under \mios32\trunk\bootloader\src
Thanks for looking, ilmenator