Loading...
 
Skip to main content

System Workbench for STM32


Project generator failure in Ac6 SW.

Finally I've found some time to debug this issue and the problem is not the Java version or any configuration. The reason is inside the eclipse plugin code. Inside the SetProjectStructureWizardPage class there are two Strings:

private static String Middlewares_ST = "Middlewares\\ST";
private static String Middlewares_Third_Party = "Middlewares\\Third_Party";

The problem is that during the search for external software, like FreeRTOS or StemWin in firmware directory the code checks if the path contains these strings. It works fine on Windows, but not on Linux, where all file paths contain only slashes '/'. I used some disassemblation of Java code and after changing these strings to:

private static String Middlewares_ST = "Middlewares/ST";
private static String Middlewares_Third_Party = "Middlewares/Third_Party";

it started to work again.

I guess that the SW4STM32 developers doesn't care about Linux users - this issue was found about one month ago and there is still no update fixing this bug, even though it is quite easy to fix it having the full code. If it would help someone I can provide changed Java class files that should solve this problem, however it would be nice to have some SW4STM32 update...

Krzysiek