Skip to main content
MM..1
Super User
Jun 15, 2021 3:27 PM UTC
Question

CubeMX 6.2.1 RC2 latest User constants error

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
Jun 16, 2021 7:53 AM UTC

Hello @MM..1​ 

Thanks for your post,

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

Khouloud

Khouloud ZEMMELI
ST Employee
Jun 16, 2021 4:12 PM UTC

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
Jul 10, 2021 2:52 PM UTC

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
Aug 13, 2021 8:03 AM UTC

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