Forum Replies Created
-
AuthorPosts
-
Ron FracchiaParticipant
Hi,
Download latest toolchain:
https://gnu-mcu-eclipse.github.io/blog/2019/01/19/arm-none-eabi-gcc-v8-2-1-1-2-released/
“Version v8.2.1-1.2 20190119 is a maintenance release of GNU MCU Eclipse ARM Embedded GCC that fixes the 32-bit objcopy bug present in the previous release.”
-Ron
Ron FracchiaParticipantJust now found that Eclipse Photon (4.8.0) has introduced a change in the structure of it’s .cproject file, causing importer to fail to correctly set C/C++ preprocessor defines… Will upload new version of the importer to account for this.
Ron FracchiaParticipantRon FracchiaParticipantCarmine,
As I suspected, it is not going to let me upload a file containing an executable.
-Ron
Ron FracchiaParticipantCarmine,
Here it is…. the “Help” dialog indicates STMCube 4.25.1, but I have recently used it to import a fairly large STMCube 4.26.1 project….
Ron FracchiaParticipantCarmine,
Can I upload an executable using the “attachments” dialog below?
-Ron
Ron FracchiaParticipantUpdate: Thank you to all of you who responded to my question (all 0 of you 🙂
Anyway, I have found that starting with GNU MCU Plugin v4.2.1, any spaces in front of the “Config options” string in the OpenOCD Setup will cause the debug launch to fail. (See attached jpg).
Attachments:
You must be logged in to view attached files.Ron FracchiaParticipantHi,
What is the period of the sine wave that you are seeing? Is it possible that the ground connection between your board and the ‘scope is open?
February 8, 2017 at 5:43 pm in reply to: Section 4.2.3 Table 2: "Files and folders that have to be imported ..." Caution #6107Ron FracchiaParticipantHi again,
This post applies to Windows users.
I am a huge fan of “Mastering STM32”, I think the Eclipse IDE is a fantastic piece of software, and Liviu Ionescu, the man who creates the Gnu Arm plugin is a brilliant software engineer.
My only complaint is that it is tedious to import STMCube projects into Eclipse. and I didn’t have the patience to install Python on my PC. So…..
I invite you to have a look at the utility that I use to import STM32Cube projects into Eclipse. To use it,
1) Click the upper “Browse” button, navigate to and select the “.mxproject” file in the STMCube project workspace.
2) Click the lower “Browse” button, navigate and select the “.cproject” file in the Eclipse project workspace.
3) Click the “Import” button.
4) Do this with Eclipse closed, or else do a “refresh” on the Eclipse project.
The filename is STM_19_2Eclipse.rar, and can be downloaded from:
http://s000.tinyupload.com/?file_id=54340304817405278729
Constructive comments/feedback is welcomed!
-Ron
Attachments:
You must be logged in to view attached files.Ron FracchiaParticipantLarry,
Most excellent! I knew that red Magic Marker would come in handy one day!
-Ron
Ron FracchiaParticipantLarry,
I created an STM32Cube ST32F446RE project, and imported it into an Eclipse GNU ARM environment (set up as per “Mastering STM32”). It compiled and linked with no errors. In STM32Cube, I selected “SW4STM32” as the Toolchain/IDE, per “Mastering STM32”.
Try redoing your project selecting SW4STM32 as the STM32Cube toolchain… This just tells STMCube how to structure the project (A project file for Keil, for example, is totally different from one for IAR). STMCube doesn’t care if you have the selected IDE, or not.
Manually importing is a tedious, error-prone process. I’m thinking about posting my utility online, if I do, I’ll post a link here. It still needs a couple of tweaks to get it to insert the correct processor definition, but it moves all of the files correctly. (Are you using Windows?)
I have included screenshots of the console and the Eclipse setup….
-Ron
Attachments:
You must be logged in to view attached files.Ron FracchiaParticipantHi,
When you created the project in STM32Cube, you selected “SW4STM32” in Settings->Toolchain/IDE. When code generation completes, and you click “Open Project”, STM32Cube attempts to launch the SW4STM32 Workbench, which you probably do not have installed on your PC. The same sort of thing would happen if you clicked on an “.xls” file if you didn’t have Excel installed.
Even if you managed to associate the project with Eclipse (with the GNU ARM plugins), you would get a load of error messages because the STM32Cube project won’t compile unless it is imported via the procedure detailed in the “Mastering-STM32” book, section 4.2.3.
Did you import the project manually, or did you use Carmine’s Python script?
Just for grins, I imported an STM32Cube-generated ST32F446RE project into the SW4STM32 IDE (also based on Eclipse), and it compiled/linked with no errors. It did in fact use “STM32F446xx” as the preprocessor define.
If I have a spare moment this weekend, I’ll import into an Eclipse/GNUARM Plugin environment (I have a Windows utility that automates this process) and see if it compiles/links without errors.
-Ron
Attachments:
You must be logged in to view attached files.Ron FracchiaParticipantCarmine,
Thank you for the info. I’ll reinstall using GCC 5.x and see what happens.
-Ron
PS: Thank you for writing such a great book on the STM32!
February 2, 2017 at 1:36 am in reply to: No "Hello World ARM Cortex-M C/C++ Project" project type in C Project window #5954Ron FracchiaParticipantHi,
The same thing happened to me… It turned out I overlooked a checkbox when installing the GNU-ARM Plugin.
If you look at page 58 of “Mastering STM32 (rev .21), the checkbox I missed was the one on the bottom (GNU ARM C/C++ STM32Fx Project Templates). I reinstalled the plugin, this time checking that box. The “Hello World ARM Cortex-M C/C++ Project” project type was then available.
Hope this helps,
Ron
-
AuthorPosts