Free automatic code generation for STM32 - Page 1
Forum section: electronics / general

author: LootMaster
author_rank: Regular Contributor
timestamp: October 20, 2020, 03:16:51 am
content: https://atoms.scilab.org/toolboxes/xcos_stm32_toolbox/1.1Free 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.2Can 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.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 20, 2020, 04:21:01 am
content: People....they are things that cant be coded easily... like advanced control loops for instance....for motors...drones...walking robots....etcTry out Scilab...Its 80% of mathlab and free.Plz help...

author: ataradov
author_rank: Super Contributor
timestamp: October 20, 2020, 04:42:41 am
content: 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.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 20, 2020, 04:49:12 am
content: 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.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 20, 2020, 07:58:44 am
content: https://atoms.scilab.org/toolboxes/mingw/0.9.3I think I found it guys, Perrier Olivier commented here on a trick.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 20, 2020, 07:48:24 pm
content: 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

author: LootMaster
author_rank: Regular Contributor
timestamp: October 23, 2020, 10:16:04 pm
content: Anybody try to install?

author: ebclr
author_rank: Super Contributor
timestamp: October 24, 2020, 12:19:17 am
content: Did you tried with WSL , Windows can be a Linux

author: LootMaster
author_rank: Regular Contributor
timestamp: October 24, 2020, 01:37:42 am
content: 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?

author: ataradov
author_rank: Super Contributor
timestamp: October 24, 2020, 01:53:40 am
content: 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.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 24, 2020, 02:17:04 am
content: Quote from: ataradov on October 24, 2020, 01:53:40 amDont 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...freeNO WSL!!! NO LINUX!!!Windows 10 forever!Bill Gates is my master and I am his slave!!!

author: ataradov
author_rank: Super Contributor
timestamp: October 24, 2020, 02:19:30 am
content: Quote from: LootMaster on October 24, 2020, 02:17:04 amThey 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.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 24, 2020, 02:27:15 am
content: 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.

author: ataradov
author_rank: Super Contributor
timestamp: October 24, 2020, 02:31:19 am
content: 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.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 24, 2020, 03:00:30 am
content: 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.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 24, 2020, 07:56:04 am
content: I'll send 30$ paypal to the guy who makes me a guide for this in perfectly clear explanationsWin10You make a project in STM32, upload .c and .hLike the professor.What to do, from no install.exactly.If I am satisfied, I will pay.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 24, 2020, 09:15:49 am
content: https://www.enib.fr/~kerhoas/pmsm_lab1.htmlI'm sorry, I think this is the best way.No need for that other buggy thing.

author: MosherIV
author_rank: Super Contributor
timestamp: October 24, 2020, 09:43:34 am
content: 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.

author: ataradov
author_rank: Super Contributor
timestamp: October 24, 2020, 05:06:41 pm
content: Quote from: MosherIV on October 24, 2020, 09:43:34 amWell, 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.Quote from: MosherIV on October 24, 2020, 09:43:34 amThere 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.

author: LootMaster
author_rank: Regular Contributor
timestamp: October 24, 2020, 06:57:12 pm
content: I think I was confused tho, I dont think you NEED that toolbox.I dont really know what that STM32 adds to thishttps://www.enib.fr/~kerhoas/pmsm_cours_index.htmlhttps://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

author: LootMaster
author_rank: Regular Contributor
timestamp: October 25, 2020, 06:06:31 am
content: 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-2020Lay 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.

author: MosherIV
author_rank: Super Contributor
timestamp: October 25, 2020, 10:13:45 am
content: QuoteYes. 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)

author: MosherIV
author_rank: Super Contributor
timestamp: October 25, 2020, 10:39:05 am
content: QuoteDo 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.