cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX v2.25 Bug Report ''SW4STM32Project generation have a problem''

Thomas Hoppe
Associate III
Posted on April 09, 2018 at 10:05

I have a pretty simple project and at some point I got this error when generating code:

The Code is successfully generated under ...

but SW4STM32Project generation have a problem

In the console I have this error:

2018-04-09 09:37:48,072 [INFO] UtilMem:74 - End SaveConfig() Used Memory: 203881040 Bytes (775421952)

2018-04-09 09:37:48,098 [INFO] ProjectBuilder:299 - [PM] Start Project Generation Thread

2018-04-09 09:37:48,211 [INFO] BlockDiagram:1141 - set Specific Code input for plugin: ADC

2018-04-09 09:37:48,211 [INFO] BlockDiagram:1141 - set Specific Code input for plugin: SPI

2018-04-09 09:37:48,211 [INFO] BlockDiagram:1141 - set Specific Code input for plugin: NVIC

2018-04-09 09:37:48,212 [INFO] BlockDiagram:1141 - set Specific Code input for plugin: SYS

2018-04-09 09:37:48,212 [INFO] BlockDiagram:1141 - set Specific Code input for plugin: I2C

2018-04-09 09:37:48,942 [INFO] CodeGenerator:499 - code generatio: config db path: /opt/STM32CubeMX//db/

2018-04-09 09:37:49,068 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Src/license.tmp_save

2018-04-09 09:37:49,594 [INFO] CodeEngine:199 - Generated code: /temp/Src/license.tmp

2018-04-09 09:37:49,783 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Src/gpio.tmp_save

2018-04-09 09:37:49,958 [INFO] CodeEngine:199 - Generated code: /temp/Src/gpio.tmp

Command line

Debug : prepare data for ADC

Command line test

Command line

Debug : prepare data for I2C

Command line test

Command line

Debug : prepare data for SPI

Command line test

Command line

Debug : prepare data for SYS

Command line test

Debug : prepare data for NVIC

Command line test

2018-04-09 09:37:50,266 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Src/stm32l0xx_it.c_save

2018-04-09 09:37:50,371 [INFO] CodeEngine:199 - Generated code: /temp/Src/stm32l0xx_it.c

2018-04-09 09:37:50,378 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Inc/stm32l0xx_it.h_save

2018-04-09 09:37:50,451 [INFO] CodeEngine:199 - Generated code: /temp/Inc/stm32l0xx_it.h

2018-04-09 09:37:50,474 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Src/stm32l0xx_hal_msp.c_save

2018-04-09 09:37:50,624 [INFO] CodeEngine:199 - Generated code: /temp/Src/stm32l0xx_hal_msp.c

2018-04-09 09:37:50,627 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Src/system.tmp_save

2018-04-09 09:37:50,698 [INFO] CodeEngine:199 - Generated code: /temp/Src/system.tmp

2018-04-09 09:37:50,705 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Inc/stm32l0xx_hal_conf.h_save

2018-04-09 09:37:50,851 [INFO] CodeEngine:199 - Generated code: /temp/Inc/stm32l0xx_hal_conf.h

2018-04-09 09:37:50,869 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Inc/main.h_save

2018-04-09 09:37:51,005 [INFO] CodeEngine:199 - Generated code: /temp/Inc/main.h

2018-04-09 09:37:51,009 [INFO] CodeEngine:181 - oldGeneratedFile, /temp/Src/main.c_save

2018-04-09 09:37:51,129 [INFO] CodeEngine:199 - Generated code: /temp/Src/main.c

2018-04-09 09:37:51,345 [INFO] ProjectBuilder:1260 - Time for Copy HAL[1] : 35mS.

2018-04-09 09:37:51,359 [INFO] ProjectBuilder:1723 - Project Generator version: 2.27.0

2018-04-09 09:37:51,379 [INFO] ConfigFileManager:451 - The Die is : DIE417

2018-04-09 09:37:52,838 [INFO] ToolchainGenerator:125 - stack trace : java.io.FileNotFoundException: /temp/custom.xml (Datei oder Verzeichnis nicht gefunden)

        at java.io.FileInputStream.open0(Native Method)

        at java.io.FileInputStream.open(FileInputStream.java:195)

        at java.io.FileInputStream.<init>(FileInputStream.java:138)

        at java.io.FileInputStream.<init>(FileInputStream.java:93)

        at generators.SysWbgenerator.setDebugOptions(SysWbgenerator.java:2329)

        at convertor.Convertor.generateSW4STM32Project(Convertor.java:1466)

        at convertor.Convertor.generateSw4STM32Files(Convertor.java:1311)

        at convertor.Convertor.generate(Convertor.java:659)

        at convertor.Convertor.convert(Convertor.java:559)

        at convertor.Convertor.updateProject(Convertor.java:412)

        at com.st.microxplorer.plugins.projectmanager.model.ToolchainGenerator.update(ToolchainGenerator.java:119)

        at com.st.microxplorer.plugins.projectmanager.engine.ProjectBuilder.createToolChainFolders(ProjectBuilder.java:1776)

        at com.st.microxplorer.plugins.projectmanager.engine.ProjectBuilder.createProject(ProjectBuilder.java:595)

        at com.st.microxplorer.plugins.projectmanager.engine.GenerateProjectThread.run(GenerateProjectThread.java:41)

2018-04-09 09:37:52,839 [INFO] ToolchainGenerator:126 - [Project Generator] Problem in the update of the project

2018-04-09 09:37:52,839 [INFO] ProjectBuilder:1785 - Time for Generating toolchain IDE Files: 1484mS.

2018-04-09 09:37:52,839 [ERROR] ProjectBuilder:1791 - Error in Project Generation

2018-04-09 09:37:52,839 [ERROR] ProjectBuilder:611 - Error in Project Generation

What's wrong here?

12 REPLIES 12
Posted on May 14, 2018 at 18:00

It happens when I create a new project. I am using 4.0. My intended target is a STM32F746G-DISCO board, but there is no such board, so instead I target the processor STM323F746

The following pinout is selected:

MiddleWares:

Graphics>>STemWin>>Display Parallel Interface

Peripherals

CRC>> Activated

DMA2D>>Activated

FMC>>SDRAM 1,

Clock and chip enable SDCKE0+sdne0

Internal bank number: 4 banks

Address: 12 bits

Data:

16 bits

Byte enable: 16-bit byte enable

RCC

High Speed Clock (HSC) Bypass

Low Speed Clock (LSE) Crystal / Ceramic

From Project Settings

Project name GGG

Project

Location:C:\Users\H215131\Documents\STM32F7\Projects

Toolchain Folder Location:Project Location:C:\Users\H215131\Documents\STM32F7\Projects\GGG

Toolchain SW4STM32 (generate under root)

use default firmware location.

I have attached also the .ioc

file

________________

Attachments :

GGG.ioc.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006Hxdb&d=%2Fa%2F0X0000000b0O%2FRSAlevRHyim6wnLqa3aSq51dESH4uojmfJ5hA37VwRI&asPdf=false
Posted on May 14, 2018 at 18:18

Thanks for responding.� I followed the steps, but I get the same result.� Perhaps my issue is related to yours, but the problem is different as your fix did not work on my end.� All the same, thanks for the effort.� I will keep digging.�

Posted on May 16, 2018 at 16:52

Were you able to find anything that might help me.  Can you re-produce the issue on your end with the .ioc file using the SW4STM32 AC6 toolchain?