cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with STM32 Cube MX 4.26.0

Evandro Teixeira
Associate II
Posted on June 08, 2018 at 21:13

The problem found in STM32 Cube MX 4.26.0, is that the tool over-wrote the

files of my project..

I'll describe what happened:

1. My project I was working on was created with STM32 Cube MX 4.25.0..

2. I updated the STM32CubeMX.

When opening my project, and make some changes and then asked to

generate the source code.

A The first error message appears. Saying that there is a problem in the

Makefileproject file.

The following is an image with the error message.0690X0000060LCKQA2.png

4. Changing the project settings, clicking the OK button displays the message

saying that my project already exists. And ask if I want to write over with a

new project.

The following is an image of STM Cube MX with error message [1]. We also

have the file structure of my project [2].0690X0000060LCZQA2.png

5. Clicking the ''No'' option, I can not implement my new settings.

By clicking the ''Yes'' option, the STM32 Cube MX overwrites the articles with

a new project. In the following image shows the file structure of my project,

it is important to note that some files have been removed from my

project.0690X0000060LCeQAM.png
7 REPLIES 7
Imen.D
ST Employee
Posted on June 10, 2018 at 00:12

Hello

Teixeira.Evandro

,

Can you please share your ioc or log file ?

We will raise this issue internally for check and come back to you soon.

With Regards,

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen
Posted on June 11, 2018 at 21:11

Hello

DAHMEN.IMEN

,

I do not have the .ioc file.Where the problem occurred.

I restored the project. And I went back to using STM32CubeMX 4.0.

Posted on June 12, 2018 at 21:26

Hello

DAHMEN.IMEN

.

I have the same problem. Sequencing :

1.Create a project

2.Minimally set up

3. Generate the code-> the code is successfully generated

4. We ask to generate again and get an error.

In version 4.25, everything worked well.

https://bitbucket.org/Shabashkin93/bug_stm32cubemx/src/master/log_bug_.txt

Posted on June 12, 2018 at 21:50

Hello

DAHMEN.IMEN

‌,

Follow the .ioc file details

#MicroXplorer Configuration settings - do not modify

File.Version=6

KeepUserPlacement=true

Mcu.Family=STM32F4

Mcu.IP0=NVIC

Mcu.IP1=RCC

Mcu.IP2=SYS

Mcu.IPNb=3

Mcu.Name=STM32F407V(E-G)Tx

Mcu.Package=LQFP100

Mcu.Pin0=PH0-OSC_IN

Mcu.Pin1=PH1-OSC_OUT

Mcu.Pin2=PA0-WKUP

Mcu.Pin3=PD12

Mcu.Pin4=PD13

Mcu.Pin5=PD14

Mcu.Pin6=PD15

Mcu.Pin7=PD0

Mcu.Pin8=VP_SYS_VS_Systick

Mcu.PinsNb=9

Mcu.ThirdPartyNb=0

Mcu.UserConstants=

Mcu.UserName=STM32F407VGTx

MxCube.Version=4.0

MxDb.Version=DB.4.0.260

NVIC.BusFault_IRQn=true\:0\:0\:false\:false\:false\:true

NVIC.DebugMonitor_IRQn=true\:0\:0\:false\:false\:false\:true

NVIC.HardFault_IRQn=true\:0\:0\:false\:false\:false\:true

NVIC.MemoryManagement_IRQn=true\:0\:0\:false\:false\:false\:true

NVIC.NonMaskableInt_IRQn=true\:0\:0\:false\:false\:false\:true

NVIC.PendSV_IRQn=true\:0\:0\:false\:false\:true\:true

NVIC.PriorityGroup=NVIC_PRIORITYGROUP_0

NVIC.SVCall_IRQn=true\:0\:0\:false\:false\:false\:true

NVIC.SysTick_IRQn=true\:0\:0\:false\:false\:true\:true

NVIC.UsageFault_IRQn=true\:0\:0\:false\:false\:false\:true

PA0-WKUP.GPIOParameters=GPIO_PuPd,GPIO_Label,GPIO_ModeDefaultEXTI

PA0-WKUP.GPIO_Label=B1 [Blue PushButton]

PA0-WKUP.GPIO_ModeDefaultEXTI=GPIO_MODE_IT_RISING_FALLING

PA0-WKUP.GPIO_PuPd=GPIO_NOPULL

PA0-WKUP.Locked=true

PA0-WKUP.Signal=GPXTI0

PCC.Checker=false

PCC.Line=STM32F407/417

PCC.MCU=STM32F407V(E-G)Tx

PCC.PartNumber=STM32F407VGTx

PCC.Seq0=0

PCC.Series=STM32F4

PCC.Temperature=25

PCC.Vdd=3.3

PD0.GPIOParameters=GPIO_Speed,GPIO_Label

PD0.GPIO_Label=LED

PD0.GPIO_Speed=GPIO_SPEED_FREQ_HIGH

PD0.Locked=true

PD0.Signal=GPIO_Output

PDGPIOParameters=GPIO_Speed,GPIO_PuPd,GPIO_Label

PDGPIO_Label=LD4 [Green Led]

PDGPIO_PuPd=GPIO_NOPULL

PDGPIO_Speed=GPIO_SPEED_FREQ_LOW

PDLocked=true

PDSignal=GPIO_Output

PDGPIOParameters=GPIO_Speed,GPIO_PuPd,GPIO_Label

PDGPIO_Label=LD3 [Orange Led]

PDGPIO_PuPd=GPIO_NOPULL

PDGPIO_Speed=GPIO_SPEED_FREQ_LOW

PDLocked=true

PDSignal=GPIO_Output

PDGPIOParameters=GPIO_Speed,GPIO_PuPd,GPIO_Label

PDGPIO_Label=LD5 [Red Led]

PDGPIO_PuPd=GPIO_NOPULL

PDGPIO_Speed=GPIO_SPEED_FREQ_LOW

PDLocked=true

PDSignal=GPIO_Output

PDGPIOParameters=GPIO_Speed,GPIO_PuPd,GPIO_Label

PDGPIO_Label=LD6 [Blue Led]

PDGPIO_PuPd=GPIO_NOPULL

PDGPIO_Speed=GPIO_SPEED_FREQ_LOW

PDLocked=true

PDSignal=GPIO_Output

PH0-OSC_IN.Mode=HSE-External-Oscillator

PH0-OSC_IN.Signal=RCC_OSC_IN

PH1-OSC_OUT.Mode=HSE-External-Oscillator

PH1-OSC_OUT.Signal=RCC_OSC_OUT

PinOutPanel.RotationAngle=0

ProjectManager.AskForMigrate=true

ProjectManager.BackupPrevious=false

ProjectManager.CompilerOptimize=3

ProjectManager.ComputerToolchain=false

ProjectManager.CoupleFile=true

ProjectManager.CustomerFirmwarePackage=

ProjectManager.DefaultFWLocation=true

ProjectManager.DeletePrevious=true

ProjectManager.DeviceId=STM32F407VGTx

ProjectManager.FirmwarePackage=STM32Cube FW_F4 V1.0

ProjectManager.FreePins=false

ProjectManager.HalAssertFull=true

ProjectManager.HeapSize=0x200

ProjectManager.KeepUserCode=true

ProjectManager.LastFirmware=true

ProjectManager.LibraryCopy=1

ProjectManager.MainLocation=Src

ProjectManager.PreviousToolchain=

ProjectManager.ProjectBuild=false

ProjectManager.ProjectFileName=Kernel_RR.ioc

ProjectManager.ProjectName=Kernel_RR

ProjectManager.StackSize=0x400

ProjectManager.TargetToolchain=Makefile

ProjectManager.ToolChainLocation=

ProjectManager.UnderRoot=false

ProjectManager.functionlistsort=1-MX_GPIO_Init-GPIO-false-HAL-true,2-SystemClock_Config-RCC-false-HAL-false

RCC.48MHZClocksFreq_Value=48000000

RCC.AHBFreq_Value=168000000

RCC.APB1CLKDivider=RCC_HCLK_DIV4

RCC.APB1Freq_Value=42000000

RCC.APB1TimFreq_Value=84000000

RCC.APB2CLKDivider=RCC_HCLK_DIV2

RCC.APB2Freq_Value=84000000

RCC.APB2TimFreq_Value=168000000

RCC.CortexFreq_Value=168000000

RCC.EthernetFreq_Value=168000000

RCC.FCLKCortexFreq_Value=168000000

RCC.FamilyName=M

RCC.HCLKFreq_Value=168000000

RCC.HSE_VALUE=8000000

RCC.HSI_VALUE=16000000

RCC.I2SClocksFreq_Value=192000000

RCC.IPParameters=48MHZClocksFreq_Value,AHBFreq_Value,APB1CLKDivider,APB1Freq_Value,APB1TimFreq_Value,APB2CLKDivider,APB2Freq_Value,APB2TimFreq_Value,CortexFreq_Value,EthernetFreq_Value,FCLKCortexFreq_Value,FamilyName,HCLKFreq_Value,HSE_VALUE,HSI_VALUE,I2SClocksFreq_Value,LSE_VALUE,LSI_VALUE,MCO2PinFreq_Value,PLLCLKFreq_Value,PLLM,PLLN,PLLQ,PLLQCLKFreq_Value,PLLSourceVirtual,RTCFreq_Value,RTCHSEDivFreq_Value,SYSCLKFreq_VALUE,SYSCLKSource,VCOI2SOutputFreq_Value,VCOInputFreq_Value,VCOOutputFreq_Value,VcooutputI2S

RCC.LSE_VALUE=32768

RCC.LSI_VALUE=32000

RCC.MCO2PinFreq_Value=168000000

RCC.PLLCLKFreq_Value=168000000

RCC.PLLM=4

RCC.PLLN=168

RCC.PLLQ=7

RCC.PLLQCLKFreq_Value=48000000

RCC.PLLSourceVirtual=RCC_PLLSOURCE_HSE

RCC.RTCFreq_Value=32000

RCC.RTCHSEDivFreq_Value=4000000

RCC.SYSCLKFreq_VALUE=168000000

RCC.SYSCLKSource=RCC_SYSCLKSOURCE_PLLCLK

RCC.VCOI2SOutputFreq_Value=384000000

RCC.VCOInputFreq_Value=2000000

RCC.VCOOutputFreq_Value=336000000

RCC.VcooutputI2S=192000000

SH.GPXTI0.0=GPIO_EXTI0

SH.GPXTI0.ConfNb=1

VP_SYS_VS_Systick.Mode=SysTick

VP_SYS_VS_Systick.Signal=SYS_VS_Systick

board=STM32F4DISCOVERY

boardIOC=true

Nawres GHARBI
ST Employee
Posted on June 25, 2018 at 18:33

Hi Evandro, 

Thanks for reporting this issue, the regeneration of makefile will be fixed in a next release. 

For the files overwriting it is a normal behavior as you created a 'new' project that is not aware of added user files.

Posted on June 28, 2018 at 13:27

OK!

on the overwritten files, a New Project was Not created.

I simply changed the project settings. Next, a source code was generated.
PLebe
Associate

The same problem:

  1. Project Settings -> Advansed Settings -> Change UART from HAL to LL.
  2. Message popuped: "This Project File (XXX.ioc) already exist is chosen folder. Owerwrite this file by this new Project?"
  3. Generate Source Code - all user files and user code removed.

How can I change peripheral driver from HAL to LL without project re-creation?