2016-12-14 11:28 PM
Hello everyone,
I have the STM32F769I-DISCO board with LCD on it. The CubeMX has options to generate firmware for the following toolchains:
1. EWARM
[requires a paid license]
2. MDK
[works without license but the IDE is lagging on my computer], P.S- I have a gaming machine with beastly performance.
3. Truestudio
[free, the best IDE so far for me. I am able to write code and launch through this IDE]
4. SW4STM32
[This is the worst toolchain. Inspite of being supported by the STM community, it has several bugs. I was unable to compile the firmware generated by cubeMX. It throws lots of errors.]
For some reasons, the printf is not working in Truestudio. That's why I am looking at the most preferred environment for programming this board.
Sorry to say this, but the firmware examples are very bad. Please include examples which will ease our development.
Thanks
Dheeraj
Note: this post was migrated and contained many threaded conversations, some content may be missing.2016-12-16 08:39 AM
Dear
Dake.Dheeraj
,Thanks for sharing your feedback. I will report your comments internally for further investigation.
Thank you for the contribution
Best Regards
-Imen-
2016-12-16 12:34 PM
You seem to want to write off the IDEs for a lot of reasons that are not valid and I'm not sure you are asking for help in picking an IDE or fixing your code.
For the printf stuff, read this:
http://embedded.fm/blog/2016/12/13/discovery-uarts-part-3-the-final-step
It's strange that SW4STM32 is worst and Truestudio is best since both use GCC. You might want to look at:
http://embedded.fm/blog/2016/10/18/discovery-code-part-3
As for the examples being bad, the tools being bad, and everything being slow, the tools for Atmel are great.
2016-12-16 01:27 PM
Hi Imen,
would it be possible to add a makefile generation into the CubeMX? I don't have experiences, but in Eclipse based environments it's possible to create a new project based on makefile, so the makefile won't be just for linux geeks, but maybe for everyone who uses Eclipse... However as I said, don't have experiences by importing a project into Eclipse based on makefile, so don't know about pros & cons.
Thx and have a nice day,
Renegade
2016-12-16 03:03 PM
Hi Andrei,
I need help in choosing a reliable IDE which is free. I will check the UART tutorial and get back to you. I said SW4STM32 as worst, as it reported errors when I imported the project into the workspace and compiled it. Truestudio has an 'Open Project' option after I generate firmware using cubeMX, the SW4STM32 doesn't have it. I had to manually import it into the workspace. Are you saying that the tools are bad for ST platform compared to ATMEL's?
I also need help in choosing debugging environment.Thanks for your time
2017-01-10 12:42 AM
Hello dake.dheeraj,
First I would like to thank you for your feedback.I have tried to reproduce your symptom, and I did the following:
Cube 4.18 + STM32Cube_FW_F7_V1.5.1 firmwareI have created a new STM32F769I-DICO project, and generate it for SW4STM32 Toolchain/IDE.
Then I open my eclipse (Neon), and import it, only once at the first time, by doing the following:
File->Import : Projects from Folder or Archive
Select the directory in which Cube has generated the code
->Finish
Select the project, Project->Build Project
Everything built fine.
Just to be sure; have you installed the openSTM32 necessary eclipse plugins, has it is describe here ?http://www.openstm32.org/Installing+System+Workbench+for+STM32+from+Eclipse?structure=Documentation
When you said that you faced some build errors, could you please share the error log ?Thanks in advance for your feedback.
KRSirma2017-01-14 07:06 PM
Hello Sima,
Thanks for replying. I have updated my STMCubeMX to Version 4.18.0. I have deleted my previous STM32F7 firmware repository as I wanted to start fresh. I setup a STM32F7x9 project and selected the right MCU. In project settings, I entered name, selected SW4STM32 tool chain and clicked on. Since the firmware repository was missing, I went into Help->Install new libraries which opened the library manager there I selected Firmware Package for Family STM32F7 1.5.1 and clicked Install now. I got this error.
The first thing I noticed is even though I selected 1.5.1, it downloaded 1.5.0(dependency maybe). It failed. I also tried to install 1.5.0 first prior to 1.5.1, it failed too. I manually visited this link
and download the latest FW 1.6.0. Surprisingly the latest version shown in cubeMX software is not the same as that listed on site. Anyways, I downloaded it and unzipped it to the repository folder on my PC. In the project settings, I selected that FW package path and clicked generate code. So far so good.
I am using windows 10. I have eclipse Kepler installed. When I click Import, I don't get Projects from folder or archive, I have something like this:
I selected C/C++ and imported it as MakeFile project and selected Ac6 STM32 MCU GCC toolchain(this showed up after I installed the eclipse plugins). I get the following errors in my eclipse console. When I click build it says,
No rule to make target all. I didn't find any makefile in the repository. How will the project build?
Thank you
Dheeraj
2017-01-16 03:18 AM
Hello Dheeraj,
Great thanks for your inputs :)
About the firmware dependency, you are absolutely right. The version 1.5.1 is an update of the 1.5.0. So to be able to install it, the system needs the 1.5.0 to be installed first.
About the firmware instalation issue, it looks that something goes wrong during the download... I report this internaly.
About the import project, here is what I get:
I searched under Eclipse project and found the following news:
http://www.eclipse.org/eclipse/news/4.6/M7/
It looks the menu I am using is new from version Neon.
I tried using ''Existing Project into Workspace'' , and it works well.
Could you try that way too ?
To check more deeply why the build failed, could you please share the complete Console log ?
Great thanks in advance.
Kind Regards
Sirma
2017-01-18 09:50 PM
Thanks for the reply. I did import as ''Existing Project into workspace'' and the build succeeded without any errors. Awesome! But I have another problem now which I didn't have it before. When I press debug, I am getting these error messages:
The first message, ''the system tried to join a drive to a directory on a joined drive'', is because when I plug in my STM32F769-disco board, it shows as a 2 MB removable storage on my computer. It has 2 files in it, DETAILS.txt and mbed.htm. It didn't show up as a removable storage media before. Strange. The first error is due to this. I am not sure about the second error. I didn't change any clock settings in cubeMX.
After I press the debug button, the COM LED stays green all the time instead of flashing red and green. I had no luck running a blinky sketch on this. I appreciate your help and I'll try to reply fast from now onwards. Any ideas on these errors?
Thank you
Dheeraj
2017-01-20 02:46 AM
Hello Dheeraj,
When the board connect to USB, it registers with several profile. One of them is USB Mass Storage. This is normal for the demo boards.
About your error message, it looks openOCD failed to connect to the board -> libusb failure
First could you be sure to have installed the two following windows drivers :
They are needed for respectively firmware upgrade and support board communication over USB.
Then could you check the openOCD Eclipse version ?
Mine is 1.12 as in the attache picture.
Let me know before moving deeper :)
KR
Sirma