STM32: Can't even get a single STM32CubeIDE example to work :( - Page 1
Forum section: electronics / general

author: longh
author_rank: Contributor
timestamp: March 31, 2022, 05:20:39 am
content: I have almost given up at this point. I have a Nucleo-L496ZG-P STM32 development board.I have spent hours, trying to get some of the example code to work but no luck. I installed STM32CubeIDE, then downloaded thehttps://github.com/STMicroelectronics/STM32CubeL4firmware package which has examples for my particular device.I'm trying to follow this getting started guide (https://www.st.com/resource/en/user_manual/um1860-getting-started-with-stm32cubel4-mcu-package-for-stm32l4-series-and-stm32l4-series-stmicroelectronics.pdf) and can't seem to get it to work. On page 20 of the getting started guide it saysSTM32CubeIDEa) Open the STM32CubeIDE toolchain.b) Click File->Switch Workspace->Other and browse to STM32CubeIDEworkspace directory.c) Click File->Import, select General->Existing Projects into Workspace and thenclick Next.d) Browse to the STM32CubeIDE workspace directory, select the project.e) Rebuild all project files: select the project in the Project explorer window thenclick the Project->build project menu.f) Run program: Run->Debug (F11).So I opened the IDE, created a new workspace and then imported the project directory (FE_Project/STM32CubeL4-master/Projects/NUCLEO-L496ZG/Examples_LL/DAC/DAC_GenerateWaveform_TriggerHW_Init). So far so good, I see the example in the "Project Explorer"But when I click build I just see**** Build of configuration Debug for project STM32L496ZG_NUCLEO ****Nothing to build for project STM32L496ZG_NUCLEOI have no idea what I'm doing wrong. Thanks for any help!

author: darkspr1te
author_rank: Frequent Contributor
timestamp: March 31, 2022, 05:33:33 am
content: Have you tried this :-right click on project (text in left hand box with IDE in blue next to it)select configure, then configure nested projects , select any it's not auto ticked.personally i've found vscode+platformio a better option for ide because importing is as simple as new project , stmcube framework, create folder.then in explorer i just copy the contents of the cubeide example in that folder,I dont use cubeide myself, i only have it installed from one coding job i needed to do in that environment.darkspr1te

author: FlyingDutch
author_rank: Regular Contributor
timestamp: March 31, 2022, 05:39:33 am
content: hello,try to "Clean" project before "Built" it might help.Best Regards

author: longh
author_rank: Contributor
timestamp: March 31, 2022, 05:44:38 am
content: Thanks! I'm going to try vscode+platformio right now. First time I've heard of platformio, but I just want to try something different right now

author: nvmR
author_rank: Regular Contributor
timestamp: March 31, 2022, 06:25:53 am
content: @longh don't give up, first project is always a bugger. Had that fun with some old fpga's etc etc.

author: longh
author_rank: Contributor
timestamp: March 31, 2022, 06:45:24 am
content: Thanks, switched to vscode+platform and I have a working example! Thanks for all the help, not sure if I will try to use the CubeIDE again.

author: darkspr1te
author_rank: Frequent Contributor
timestamp: March 31, 2022, 08:38:17 am
content: Quote from: longh on March 31, 2022, 06:45:24 amcube IDE has it's uses, but in a hacking environment vscode+platformio wins out for me as i can switch build environment ,debugger, framework, includes and more with a simple file edit.when you are trying different code from different sources this is a windarkspr1te