Skip to main content
JPiet.3
Associate III
November 9, 2023
Solved

CubeMX ioc-File corrupt

  • November 9, 2023
  • 4 replies
  • 3684 views

Dear Sir and Madam,

I started a new project with STM32H745 from scratch. After implementation of all pin function and names, I worked on the clock tree. During this, I saw, one UART must be changed to the FDCAN interface. While doing this, CubeMX was getting frozen. Killing CubeMX and open the same file again show me the error 

Spoiler
Cannot read field "defaultValue" because of "rparam" is null.

Doing the same on a PC from a colleague runs in the same trouble.

The projectfile and the message is atteched. If someone able to reconstruct my file?

I use CubeMX Version 6.9.2 under Windows 11

 

Thanks,

Jan

This topic has been closed for replies.
Best answer by Peter BENSCH

Well, if I comment out lines 1007 and 1008 (containing the string USB_OTG_FS.) with a preceding # in your IOC, it can be loaded successfully. However, it looks like the USB configuration information has been corrupted.

Maybe this will help you as a starting point?

Regards
/Peter

4 replies

Technical Moderator
November 9, 2023

Hello @JPiet.3 

Can you please provide more details about the steps you followed in order to reproduce your issue.

Thank you,

Souhaib

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
JPiet.3
JPiet.3Author
Associate III
November 9, 2023

Not complete in detail, but the following last step I keeped in mind.

I wanted to change the pin-function from UART to FDCAN (PINS PH13, PH14). When I was switching to the categories connectivity, no click with the mouse button was recognized. After different tries, I killed CubeMX to start it again.

Peter BENSCH
Peter BENSCHBest answer
Technical Moderator
November 9, 2023

Well, if I comment out lines 1007 and 1008 (containing the string USB_OTG_FS.) with a preceding # in your IOC, it can be loaded successfully. However, it looks like the USB configuration information has been corrupted.

Maybe this will help you as a starting point?

Regards
/Peter

JPiet.3
JPiet.3Author
Associate III
November 10, 2023

Thanks a lot, it works. Good to know, it is not necessary to rebuild the complete project :)

Jan