Author Topic: Free automatic code generation for STM32  (Read 8211 times)

0 Members and 1 Guest are viewing this topic.

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Free automatic code generation for STM32
« on: October 20, 2020, 03:16:51 am »
https://atoms.scilab.org/toolboxes/xcos_stm32_toolbox/1.1

Free option to Simulink code generation $$$$

That guy made work something very cool and useful and free/legal, George small did it.

I cant even install minGW in scilab 5.5.2

Can anybody install this package, minGW and then STM32 toolbox.

Can send patron support for the one who shows me how to install this in Win10.
« Last Edit: October 20, 2020, 03:21:00 am by LootMaster »
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #1 on: October 20, 2020, 04:21:01 am »
People....they are things that cant be coded easily... like advanced control loops for instance....for motors...drones...walking robots....etc

Try out Scilab...Its 80% of mathlab and free.

Plz help...
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 12516
  • Country: us
    • Personal site
Re: Free automatic code generation for STM32
« Reply #2 on: October 20, 2020, 04:42:41 am »
If you can't even install it, you won't be able to use, trust me. It is not as trivial as press a button and go. I worked with Simulink for similar purposes and you actually need to know what you are doing to get results.

Also, it is Matlab, not Mathlab.
Alex
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #3 on: October 20, 2020, 04:49:12 am »
Aaaa theres this lil genius kid I know who is gonna help me.

Bro I know its hella complicated...

But some smart dude out there did not know this software existed and will get it working.

Heres the thing...Its a pain to install.
« Last Edit: October 20, 2020, 04:51:15 am by LootMaster »
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #4 on: October 20, 2020, 07:58:44 am »
https://atoms.scilab.org/toolboxes/mingw/0.9.3

I think I found it guys, Perrier Olivier commented here on a trick.
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #5 on: October 20, 2020, 07:48:24 pm »
Its expensive...Simulink+ all the other toolboxes....

Let the frenchmen do it for freeeeeeee….

Witness the transformation...

From broke to boss.

Lets start exploring that software... Yeah...Add some follow through and technique today in your life...For freeeeeeeeeeee
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #6 on: October 23, 2020, 10:16:04 pm »
Anybody try to install?

 

Offline ebclr

  • Super Contributor
  • ***
  • Posts: 2332
  • Country: 00
Re: Free automatic code generation for STM32
« Reply #7 on: October 24, 2020, 12:19:17 am »
Did you tried with WSL , Windows can be a Linux
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #8 on: October 24, 2020, 01:37:42 am »
Linux?

Hate that stuff....Yuck.

Try finding CAD-CAM software that works well with that...

I also play Warcraft 3 FT sometimes.

So wich computer geek will install this, make it work, and then love it and comment about it?

« Last Edit: October 24, 2020, 01:39:20 am by LootMaster »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 12516
  • Country: us
    • Personal site
Re: Free automatic code generation for STM32
« Reply #9 on: October 24, 2020, 01:53:40 am »
Nobody serious cares about that automated code generation. It is useless.

Even with Matlab + Simulink nobody ever uses it, because it is hopelessly bad.

Also, what is being proposed is WSL, not a full Linux installation.
Alex
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #10 on: October 24, 2020, 02:17:04 am »
Nobody serious cares about that automated code generation. It is useless.

Even with Matlab + Simulink nobody ever uses it, because it is hopelessly bad.

Also, what is being proposed is WSL, not a full Linux installation.

Dont control engineers always use this?

I was reading threads about engineers who ALWAYS use this.

I have a bunch of job offers here, they all (most of them) ask matlab + Simulink....Yeah Ok that list was written by HR who dont know any better.

Its free bro...free

NO WSL!!! NO LINUX!!!

Windows 10 forever!

Bill Gates is my master and I am his slave!!!
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 12516
  • Country: us
    • Personal site
Re: Free automatic code generation for STM32
« Reply #11 on: October 24, 2020, 02:19:30 am »
Dont control engineers always use this?

I was reading threads about engineers who ALWAYS use this.
They use Simulink to create and simulate models. Code generation is just a silly gimmick.

You debug your models, tune them and then export the coefficients that go into the hand written and optimized code.

Relying on the code generated by Simulink is the same stuff as using Arduino for real project. You better stay away from places like this.

Also, generated code is not some magical immediately working stuff. It is just the code for the model, you still need to provide inputs and outputs in a format accepted by your model. 
« Last Edit: October 24, 2020, 02:21:41 am by ataradov »
Alex
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #12 on: October 24, 2020, 02:27:15 am »
It will do the Dustin's approximation for you and then load the .c file and .h file.

Then you use these outputs.

Seems like it could be useful.

The French professor reviewed and said it worked pretty much like Simulink.
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 12516
  • Country: us
    • Personal site
Re: Free automatic code generation for STM32
« Reply #13 on: October 24, 2020, 02:31:19 am »
If you care about performance at all, then automatically generated C code is not going to cut it. Especially if you are on an MCU with low resources.

Yes, it works just like Simulink - poorly. Again, just the part that generates code. I have no doubt that actual model simulation part works fine.

Alex
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #14 on: October 24, 2020, 03:00:30 am »
What you need to do is cleverly modify that to take use of PWM peripherals.

If its like Simulink, and Simulink is like 5000$ and this is free.

I would like to I install it...

Now I am in harmony with H7 TO F0 and the physical world... Almost, I need to complete my current software installation. Put on USB drive.

I have  collection right here...All free and legal. I wish to complete this collection.

Plz... Help...I beg of you.

Me I speak French, I have access to better documentation for scilab and Xcos than you.  :)

« Last Edit: October 24, 2020, 03:02:50 am by LootMaster »
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #15 on: October 24, 2020, 07:56:04 am »
I'll send 30$ paypal to the guy who makes me a guide for this in perfectly clear explanations

Win10

You make a project in STM32, upload .c and .h

Like the professor.

What to do, from no install.

exactly.

If I am satisfied, I will pay.
« Last Edit: October 24, 2020, 07:58:01 am by LootMaster »
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #16 on: October 24, 2020, 09:15:49 am »
https://www.enib.fr/~kerhoas/pmsm_lab1.html

I'm sorry, I think this is the best way.

No need for that other buggy thing.
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: Free automatic code generation for STM32
« Reply #17 on: October 24, 2020, 09:43:34 am »
 I now work for automotive company. I am told that Matlab Simulink is used extensively for engine models and maps. I do not work on the engine side of the business, I work in the battery side.
My colleagues use Matlab for modelling batteries. There is a big push in automotive to move to 'model based development'.

I am not a big fan of Matlab Simulink because I am a software engineer with lots of experience of UML but not control modelling. Matlab modeling symbols are totally different to ones used in UML. My colleagues tell me that the symbols are aligned with control modelling symbols.

Basically It is NOT a software engineering tool, it is a controls modelling tool. It can generate code for very complex algorithms (maybe not as efficiently as hand coding them) but when the algorithms get very complicated, is can be useful just to take the generated code for the complex algorithm.
« Last Edit: October 24, 2020, 09:46:39 am by MosherIV »
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 12516
  • Country: us
    • Personal site
Re: Free automatic code generation for STM32
« Reply #18 on: October 24, 2020, 05:06:41 pm »
Matlab modeling symbols are totally different to ones used in UML. My colleagues tell me that the symbols are aligned with control modelling symbols.
Well, yes, UML is basically just an illustration tool in the end. What Simulink does can be translated to a tangible code. Simulink models represent detailed technical operation of a system.

Simulink has exact set of blocks used in control systems, so it is intuitive for anyone with CS background.

It can generate code for very complex algorithms (maybe not as efficiently as hand coding them) but when the algorithms get very complicated, is can be useful just to take the generated code for the complex algorithm.

There are two parts to the model. You typically model the thing you already have in a real world (the plant or process in CS terms)  and then you add a controller that in some way controls the thing you already have. The model for the plant can be quite complex, since it has to represent an actual real-world system.

But the controller part of it is your goal. And that part in many cases is simpler, and that's the part you need the code for.

I don't exclude that some companies may just generate the code and run with it, but that is not common.

Alex
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #19 on: October 24, 2020, 06:57:12 pm »
I think I was confused tho, I dont think you NEED that toolbox.

I dont really know what that STM32 adds to this

https://www.enib.fr/~kerhoas/pmsm_cours_index.html

https://x2c.lcm.at/downloads/

He says you can now use scilab instead of expensive solution.

Hes a good professor.

Whatever setup he's got, I want... I wanna put those .c and .h inside a Cubemx generated project...So I can continue with "the easy way".

I wanna have that working workflow 5.5.2 install wich does the job for most things and be making my own "blocks" for free, without license.

Just like the professor....

I wanna be Mr Smartypants, plz help  :'( :'(
« Last Edit: October 24, 2020, 07:19:51 pm by LootMaster »
 

Offline LootMasterTopic starter

  • Regular Contributor
  • *
  • !
  • Posts: 192
  • Country: ca
Re: Free automatic code generation for STM32
« Reply #20 on: October 25, 2020, 06:06:31 am »
Roblimo once called it "a tradition, not just a speech" -- Bryan Lunduke's annual "Linux Sucks" presentations at various Linux conferences. But before you get too upset, in his 2014 interview with Slashdot Lunduke admitted "I love Linux, I have made my whole life around Linux. I work for Linux companies. I write for Linux magazines, but it really blows..."

https://linux.slashdot.org/story/20/06/07/1941256/bryan-lunduke-explains-why-linux-sucks-in-2020

Lay down for daddy Gates and dont make it difficult on your self... Just Lay down... 1 OS is better for the world.'

I dont understand why some people are wanting to be divisive. Dividing everything and forcing all companies to ask...Should we spend time to make this run on Linux?

And then resulting segmentation... Its idiotic... We already have the idiotic existence of Apple PC's...Wich continues to pollute the world with crappy hardware.

« Last Edit: October 25, 2020, 06:35:02 am by LootMaster »
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: Free automatic code generation for STM32
« Reply #21 on: October 25, 2020, 10:13:45 am »
Quote
I dont understand why some people are wanting to be divisive. Dividing everything and forcing all companies to ask...Should we spend time to make this run on Linux? 

Yes. Just ignore the Linux zelots.
Use what ever works for you.

Programming is my profession, so doing thing quickly and efficiently is most important.
I do not have time to fiddle with thing, I need to get stuff done and move on.
I find most Linux stuff needs so much fiddling with to get it working that it is not worth it for my job.
I find the commercial tools in Windows to be most productive.
Yes, they all have things they can do better. Yes they are not as controllable.
Yes, people /companies are making money (that is the point, companies  make money and keep people in paid jobs)
 

Offline MosherIV

  • Super Contributor
  • ***
  • Posts: 1530
  • Country: gb
Re: Free automatic code generation for STM32
« Reply #22 on: October 25, 2020, 10:39:05 am »
Quote
  I wanna have that working workflow 5.5.2 install wich does the job for most things and be making my own "blocks" for free, without license.

Just like the professor....

I wanna be Mr Smartypants, plz help  :'(   

Do whatever you want or works for you.

All responses on a forum are people just giving their opinion, based on there knowledge and experience. Hopefully, there goal is to help you.
Some replies my be helpful, some may not.
Every person has different experiences so may give contrary advise.

I do not think  the advice given in this thread is missleading or bad so far. Just some have differing experience.

If you want to try a tool set out and add to the knowledge pool about that tool, that can only be a good thing. Whether that tool be good (so others will know and use it) or bad (and others will avoid it)

I see nobody has directly commented on the toolset you have links to, only Simulink.

 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf

 

- - -
-->