Coder Social home page Coder Social logo

Comments (7)

felipengeletrica avatar felipengeletrica commented on September 4, 2024

I was able to compile but I don't have hardware to test using memory optimization

CFLAGS += -g -gdwarf-2 -Os -flto

from modbus-stm32-slave-example.

liyanboy74 avatar liyanboy74 commented on September 4, 2024

you have error will not fit in region . in this example i use low memory micro stm32f03, 16KB flash and 4KB ram. i think modbus lib need 4KB to run. also i don't show error when run make on windows and it done successfully .

file: myTerminalOut.txt

   text    data     bss     dec     hex filename
  16000     128    1984   18112    46c0 build/MBTest.elf

I try make on linux and get same as your error!
let me fix that ...

from modbus-stm32-slave-example.

liyanboy74 avatar liyanboy74 commented on September 4, 2024

I want to change micro stm32f03 to stm32f103(blue pill). it's Ok?

from modbus-stm32-slave-example.

liyanboy74 avatar liyanboy74 commented on September 4, 2024

It's Done!
I change code for STM32F103C8T6 (Blue Pill) for better developing and extend flash size.
The old code also available

from modbus-stm32-slave-example.

liyanboy74 avatar liyanboy74 commented on September 4, 2024

Keep in mind that the current project I developed, used a virtual USB COM Port called USB CDC mode. simply u can change code for using hardware UART in physical MODBUS network but just for the simplicity of the project i use USB CDC mode for example.

from modbus-stm32-slave-example.

felipengeletrica avatar felipengeletrica commented on September 4, 2024

Greetings,
Thanks a lot for the reply and the changes. But I would like to use a low-cost microcontroller from STM.
The bluepill I have to test the new code.

from modbus-stm32-slave-example.

liyanboy74 avatar liyanboy74 commented on September 4, 2024

I still don't understand the reason for the increase in prog size during compilation on Linux.

from modbus-stm32-slave-example.

Related Issues (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.