2020-08-19 08:12 AM
Hi,
I´d like run the examples of STM32CubeL4 in STMCubeIDE.
In the tutorial "UM1860 User manual", page 17 I read that there´s a directory named "\STM32CubeIDE" with the configuation project to use with STM32CubeIDE. But in the zip file I could not find that directory. So how can I run the examples in STMCubeIDE?
Or What is the simplest way to do that? I´ve just downloaded and tested with MDK-ARM, but I´d like use STMCubeIDE.
Thanks,
Geraldo.
"
2020-08-19 12:08 PM
The repositories are located at C:\Users\%USERNAME%\STM32Cube\Repository
You should be able to drill down the L4 repository to find a project and import it with STM32CubeIDE.
2020-08-20 06:19 AM
Thanks TDK,
I´ve located the Repository and downloaded 2 differentes versions of L4 package, 1.5 and 1.6. Folders: STM32Cube_FW_L4_V1.15.0 and STM32Cube_FW_L4_V1.16.0.
But there´s no folder named \STM32CubeIDE in the directory "C:\Users\geral\STM32Cube\Repository\STM32Cube_FW_L4_V1.15.0\Projects\NUCLEO-L476RG\Examples\GPIO\GPIO_IOToggle" as I read in the document "UM1860 User manual", page 17. So I think the document must be update, because a lot of beginners´ll be problem like me. See the attached image in this post.
So I´ve just opened the CubeIDE and tried import the folder "C:\Users\geral\STM32Cube\Repository\STM32Cube_FW_L4_V1.15.0\Projects\NUCLEO-L476RG\Examples\GPIO\GPIO_IOToggle". I located the project configuration to a project in the folder: C:\Users\geral\STM32Cube\Repository\STM32Cube_FW_L4_V1.15.0\Projects\NUCLEO-L476RG\Examples\GPIO\GPIO_IOToggle\SW4STM32\STM32L476RG_NUCLEO
I´ve just imported it. But now, when a Try compile the project I got the following error messages:
Errors occurred during the build.
Errors running builder 'CDT Builder' on project 'STM32L476RG_NUCLEO'.
java.lang.NullPointerException
I´ve read some threads, but I could not get a solution. So, I´m using the MDK-ARM versions of the projects. But I´d like use the CubeIDE because the graphical tools.
Any hint?
Thanks,
Geraldo.
2020-08-20 06:29 AM
The is the $workspace/.metadata/log) log file:
!ENTRY org.eclipse.core.resources 4 2 2020-08-20 10:25:57.477
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.resources".
!STACK 0
java.lang.NullPointerException
at org.eclipse.cdt.managedbuilder.internal.core.Tool.getOutputExtension(Tool.java:2394)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.addRuleForSource(GnuMakefileGenerator.java:2311)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.addFragmentMakefileEntriesForSource(GnuMakefileGenerator.java:2075)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.addSources(GnuMakefileGenerator.java:1986)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.populateFragmentMakefile(GnuMakefileGenerator.java:992)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.regenerateMakefiles(GnuMakefileGenerator.java:922)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performMakefileGeneration(CommonBuilder.java:1008)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performPrebuildGeneration(CommonBuilder.java:872)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:752)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:518)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:461)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:833)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:316)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:319)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:371)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:392)
at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:504)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:411)
at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:291)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
!ENTRY org.eclipse.core.resources 4 75 2020-08-20 10:25:57.524
!MESSAGE Errors occurred during the build.
!SUBENTRY 1 org.eclipse.cdt.managedbuilder.core 4 75 2020-08-20 10:25:57.524
!MESSAGE Errors running builder 'CDT Builder' on project 'STM32L476RG_NUCLEO'.
!STACK 0
java.lang.NullPointerException
at org.eclipse.cdt.managedbuilder.internal.core.Tool.getOutputExtension(Tool.java:2394)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.addRuleForSource(GnuMakefileGenerator.java:2311)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.addFragmentMakefileEntriesForSource(GnuMakefileGenerator.java:2075)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.addSources(GnuMakefileGenerator.java:1986)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.populateFragmentMakefile(GnuMakefileGenerator.java:992)
at org.eclipse.cdt.managedbuilder.makegen.gnu.GnuMakefileGenerator.regenerateMakefiles(GnuMakefileGenerator.java:922)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performMakefileGeneration(CommonBuilder.java:1008)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.performPrebuildGeneration(CommonBuilder.java:872)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:752)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:518)
at org.eclipse.cdt.managedbuilder.internal.core.CommonBuilder.build(CommonBuilder.java:461)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:833)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:220)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:263)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:316)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:319)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:371)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:392)
at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:504)
at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:411)
at org.eclipse.ui.actions.BuildAction$1.runInWorkspace(BuildAction.java:291)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:42)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Best regards,
Geraldo.
2020-08-20 06:37 AM
2021-02-18 06:10 AM
Hi Geraldo,
Did you succeed in using STM32CubeIDE on the GPIO example? I tried to do the same thing yesterday, and did not succeed either. It seems that ST does not provide the STM32CubeIDE project, even if the documentation mentions it :(
Some time ago, I faced the same problem for some other ST code, and the only solution I found was to import the SW4STM32 project :(