Coder Social home page Coder Social logo

modbus-stm32-slave-example's People

Contributors

liyanboy74 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

modbus-stm32-slave-example's Issues

Flash memory overflow

Greetings,

       I'm having problems compiling the code it says that the flash memory has run out I just ran "make" and gave the following error:

ifo.lst fifo/fifo.c -o build/fifo.o arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -DUSE_HAL_DRIVER -DSTM32F030x6 -DMB_MODE=MB_MODE_SLAVE -ICore/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Ififo -Imodbus -Os -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/mb.d" -Wa,-a,-ad,-alms=build/mb.lst modbus/mb.c -o build/mb.o arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -DUSE_HAL_DRIVER -DSTM32F030x6 -DMB_MODE=MB_MODE_SLAVE -ICore/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Ififo -Imodbus -Os -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/mb-check.d" -Wa,-a,-ad,-alms=build/mb-check.lst modbus/mb-check.c -o build/mb-check.o arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -DUSE_HAL_DRIVER -DSTM32F030x6 -DMB_MODE=MB_MODE_SLAVE -ICore/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Ififo -Imodbus -Os -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/mb-crc.d" -Wa,-a,-ad,-alms=build/mb-crc.lst modbus/mb-crc.c -o build/mb-crc.o arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -DUSE_HAL_DRIVER -DSTM32F030x6 -DMB_MODE=MB_MODE_SLAVE -ICore/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Ififo -Imodbus -Os -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/mb-link.d" -Wa,-a,-ad,-alms=build/mb-link.lst modbus/mb-link.c -o build/mb-link.o arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -DUSE_HAL_DRIVER -DSTM32F030x6 -DMB_MODE=MB_MODE_SLAVE -ICore/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Ififo -Imodbus -Os -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/mb-packet.d" -Wa,-a,-ad,-alms=build/mb-packet.lst modbus/mb-packet.c -o build/mb-packet.o arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -DUSE_HAL_DRIVER -DSTM32F030x6 -DMB_MODE=MB_MODE_SLAVE -ICore/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Ififo -Imodbus -Os -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/mb-process.d" -Wa,-a,-ad,-alms=build/mb-process.lst modbus/mb-process.c -o build/mb-process.o arm-none-eabi-gcc -c -mcpu=cortex-m0 -mthumb -DUSE_HAL_DRIVER -DSTM32F030x6 -DMB_MODE=MB_MODE_SLAVE -ICore/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Ififo -Imodbus -Os -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/mb-table.d" -Wa,-a,-ad,-alms=build/mb-table.lst modbus/mb-table.c -o build/mb-table.o arm-none-eabi-gcc -x assembler-with-cpp -c -mcpu=cortex-m0 -mthumb -DUSE_HAL_DRIVER -DSTM32F030x6 -DMB_MODE=MB_MODE_SLAVE -ICore/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc -IDrivers/STM32F0xx_HAL_Driver/Inc/Legacy -IDrivers/CMSIS/Device/ST/STM32F0xx/Include -IDrivers/CMSIS/Include -Ififo -Imodbus -Os -Wall -fdata-sections -ffunction-sections -g -gdwarf-2 -MMD -MP -MF"build/startup_stm32f030x6.d" startup_stm32f030x6.s -o build/startup_stm32f030x6.o arm-none-eabi-gcc build/main.o build/gpio.o build/usart.o build/stm32f0xx_it.o build/stm32f0xx_hal_msp.o build/stm32f0xx_hal_tim.o build/stm32f0xx_hal_tim_ex.o build/stm32f0xx_hal_uart.o build/stm32f0xx_hal_uart_ex.o build/stm32f0xx_hal_rcc.o build/stm32f0xx_hal_rcc_ex.o build/stm32f0xx_hal.o build/stm32f0xx_hal_i2c.o build/stm32f0xx_hal_i2c_ex.o build/stm32f0xx_hal_gpio.o build/stm32f0xx_hal_dma.o build/stm32f0xx_hal_cortex.o build/stm32f0xx_hal_pwr.o build/stm32f0xx_hal_pwr_ex.o build/stm32f0xx_hal_flash.o build/stm32f0xx_hal_flash_ex.o build/stm32f0xx_hal_exti.o build/system_stm32f0xx.o build/tim.o build/fifo.o build/mb.o build/mb-check.o build/mb-crc.o build/mb-link.o build/mb-packet.o build/mb-process.o build/mb-table.o build/startup_stm32f030x6.o -mcpu=cortex-m0 -mthumb -specs=nano.specs -TSTM32F030F4Px_FLASH.ld -lc -lm -lnosys -Wl,-Map=build/MBTest.map,--cref -Wl,--gc-sections -o build/MBTest.elf /usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: build/MBTest.elf section .text' will not fit in region FLASH' /usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: region FLASH' overflowed by 3296 bytes
collect2: error: ld returned 1 exit status
make: *** [Makefile:185: build/MBTest.elf] Error 1`

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.