Skip to main content
RJANA.2
Associate III
October 6, 2021
Question

How we can Edit STM32 Shared code without STM32 Workbench and to Flash in Controller Board ?

  • October 6, 2021
  • 15 replies
  • 2471 views

Hello STM32 Family,

Good Afternoon

Hope you are Safe and Happy.

Currently we are working with STM32 Controllers, We have Received one New Task ..

we are sharing Project code with our clients , How they can Edit the Code and Flash to controller without having Workbench or CubeMX

Thanks in Advance.

This topic has been closed for replies.

15 replies

Andrew Neil
Super User
October 6, 2021

For sharing, use something like GitHub.

For editing, any text editor will do.

For building, why would you not agree on a common setup, and have everyone on the project use that?

Sure, they could install their own toolchain, and makefiles, etc, etc - but it would be far easier to just download & install the same as you use!

Remote collaboration has enough challenges already without adding the use of different environments!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
RJANA.2
RJANA.2Author
Associate III
October 6, 2021

But after editing will my Code updates in Bin file or Hex file ?

As I Know only compiler can Generate Bin file or Hex file Right, after editing it should work ... Thats our Requirement

RJANA.2
RJANA.2Author
Associate III
October 6, 2021

I Will Mention my all Requirements Here :

We are Going to share our STM32 code to our Client Company, But they are not Install any Related softwares like STM32 Cube IDE, STM32 Workbench etc... But They denieying to install Related setup like this..

so as you mentioned They can edit with any Editors, But will it Reflects in Actual code or (Bin file or Hex file) ?

RJANA.2
RJANA.2Author
Associate III
October 6, 2021

But after editing will my Code updates in Bin file or Hex file ?

Tesla DeLorean
Guru
October 6, 2021

You'll need to rebuild with a compiler/linker, this isn't magic.

You could perhaps construct a different build environment using make and the GNU/GCC tools more directly, if your client is incapable of using the Cube tools.

You could perhaps simplify the build by using/supplying libraries of unchanging components.​

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Andrew Neil
Super User
October 6, 2021

@Community member​  "You could perhaps construct a different build environment using make and the GNU/GCC tools more directly, if your client is incapable of using the Cube tools"

Of course, it's possible; but it seems unlikely that a client that's incapable of taking an existing project and just opening/building it in Cube is going to be capable of creating & using a build environment from the "raw" GCC tools ... ?

:grimacing_face:

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
RJANA.2
RJANA.2Author
Associate III
October 6, 2021

As I Know only compiler can Generate Bin file or Hex file Right, after editing it should work ... Thats our Requirement

Andrew Neil
Super User
October 6, 2021

"As I Know only compiler can Generate Bin file or Hex file"

Not quite: the Compiler doesn't generate the bin or hex - that comes from the Linker's output.

See the diagrams here to understand the build process, and where Compiler, Linker, etc, fit:

https://www.avrfreaks.net/comment/2836501#comment-2836501

https://www.avrfreaks.net/comment/2836911#comment-2836911

Note that this is all standard software development stuff - not specific to STM32; not even specific to C:

https://en.wikipedia.org/wiki/Compiler

https://en.wikipedia.org/wiki/Linker_(computing)

"after editing it should work"

Again, editing the source won't affect the bin or hex unless and until you do a (successful) build.

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
RJANA.2
RJANA.2Author
Associate III
October 12, 2021

What are the Possible reasons for Stuff Errors, Bit Errors and Bus Errors in CAN Communication ?

Andrew Neil
Super User
October 12, 2021

This seems to be entirely unrelated to the topic of this thread ?

Please keep to one topic/question per thread.

When that topic/question is resolved, mark the key post which resolved it as 'Best Answer' - so that it appears as 'Answered' in the forum listings:

0693W000008y9fZQAQ.png 

The one you've currently marked as 'Best Answer' is a new question - it doesn't answer anything!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
RJANA.2
RJANA.2Author
Associate III
October 12, 2021

0693W00000FCDZSQA5.png

Andrew Neil
Super User
October 12, 2021

This seems to be a screenshot of some sort of automotive communication bus tool - what does it have to do with ST or STM32 ?

Have you checked the documentation for that tool ?

You seem to be using CAN - so have you spent some time on the basics of CAN ?

https://en.wikipedia.org/wiki/CAN_bus

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
RJANA.2
RJANA.2Author
Associate III
October 12, 2021

These are the Errors, Im Getting