cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX bugs

shippo
Associate II
Posted on April 06, 2014 at 14:25

Hi all,

I just started developing with the STM32F4 Discovery board and I've been trying to use STM32CubeMX for code generation.

Until now, almost every configuration I tested didn't work, that means STM32CubeMX (I'll call it MX from now on) didn't generate the code but crapped out mid generation.

Even the simplest configuration I could think of doesn't work (HSE with 8MHz crystal + 1 GPIO output). This

http://pastebin.com/cdUhHbr3

 contains the MX log file from this simple test. Other times it's mostly FileNotFoundException, I can post those logs too.

Could someone please tell me if it's the software or just me not using it right.

My system is: Windows 7 x64, Java 8; I tried it also on a Windows 8 VM, same thing.

Sincerely, Peter
7 REPLIES 7
stm32cube-t
Senior III
Posted on April 09, 2014 at 12:20

Thank you for reporting this issue. We will fix it asap.

For now, please use Java 7 (1.7_45 or newer install from

http://www.oracle.com/technetwork/java/javase/downloads/java-se-jre-7-download-432155.html

)

talbi.amel
Associate II
Posted on April 09, 2014 at 15:16

Hello Peter,

Could you please provide us your configuration file (.ioc generated by the tool).

Best regards,

Amel.

shippo
Associate II
Posted on April 16, 2014 at 22:05

Hallo Amel,

sorry for the late reply, here is the link to the file contents:

<

http://pastebin.com/W9tVSntp

>

This was not the only error by the way, it's a bit of a mystery to me when this thing works and when it just stops mid-generation. Most of the time it's a FileNotFoundException or something similar where some *.tmp file is not found.

One more thing, how do I set the Java version to use for a particular program, so that I can test it with Java 7?

Peter

shippo
Associate II
Posted on April 17, 2014 at 00:14

In the meantime I did some tests (I figured out the Java 7 thing by myself),

it seems this really is nondeterministic if the code generation succeeds or not...

Attached are some log files with both Java 7 and 8 (both 64-bit) for the exact same configuration (which can be found

http://pastebin.com/iXH1QDqu

).

I just opened the project file, hit the Generate button and collected the logs. If the generation failed I deleted all the generated (mostly *.tmp) files and tried again.

Hope this helps somehow.

Greetings, Peter

________________

Attachments :

STM32CubeMX_logs.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzR8&d=%2Fa%2F0X0000000bLu%2FOTpw2IQJhnyMAGb_7knGwGE1BTUqd9xxz4TTF2nFAo4&asPdf=false
talbi.amel
Associate II
Posted on April 21, 2014 at 22:46

Hello Peter,

Thank you for your reply.

I confirm that there is an issue using Java 8 and it will be fixed in the new release V4.2 of the STM32CubeMX (will be available in the next few days).

For java7, we are not able to reproduce the issue. Please try to create a new project or save your project as a new one and then generate the code.

Best regards,

Amel. 

steven
Associate
Posted on June 02, 2014 at 00:05

I am having the same issues. I am using JRE7 and STM32CubeMX 4.2. I was able to generate code for the first project I created, and nothing since.  I have tried numerous new projects, deleting and re-downloading the STM32Cube_FW_F4_V1.1.0 firmware, and I am not making any progress

Any more word on this?  Can you give me any help?

shippo
Associate II
Posted on June 07, 2014 at 13:19

What worked for me is smashing on the code generation button until it completes (you get the ''code generated'' popup).

I don't know if this will work for all projects, but it did work for one project almost always.