Skip to main content
MM..1
Super User
June 15, 2021
Question

CubeMX 6.2.1 RC2 latest User constants error

  • June 15, 2021
  • 6 replies
  • 1080 views

I use user constants in projects entered in CubeMX window. I found two isues with latest MX.

  1. When i open ioc file in CubeIDE firstly after open IDE , then i see user constants OK, but when i move in some settings or close generate and reopen, my constants isnt showed and when i add new old is removed from ioc file.
  2. MX incode checking dont use defined constants and generate error for example in DSI HOST i define user value PACKSIZE 640 and place it to Burst mode packet size ...

This topic has been closed for replies.

6 replies

Khouloud ZEMMELI
ST Employee
June 16, 2021

Hello @MM..1​ 

Thanks for your post,

I'll check the problem then I'll get back to you.

Khouloud

Khouloud ZEMMELI
ST Employee
June 16, 2021

Hi again @MM..1​ ,

You're right, I confirm the first issue using your ioc file (thanks for providing it, it helped me to reproduce the issue :) ).

For the Second one, I cannot reproduce it, the code is well generated as configured in the ioc:

VidCfg.PacketSize = PACKSIZE;

With private define under main.h:

#define PACKSIZE 640

So, can you please provide me more details about the problem?

First issue will be fixed, thanks again for bringing this problem to our attention and for your contribution.

Khouloud

MM..1
MM..1Author
Super User
July 10, 2021

Hi KZ

i mean this and yes when ignore this code is generated ok

0693W00000BdLRPQA3.jpgand please change this portal for i can CTRL V screenshots here. This strange upload system is annoyyyy

Khouloud ZEMMELI
ST Employee
August 13, 2021

Hello @MM..1​ 

Sorry for the delay,

Could you please check with the latest CubeIDE version?

I'll be waiting for your feedback,

Thanks, Khouloud