Migration from True Studio to CubeIDE failed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-02 3:15 AM
I've just migrated from True Studio to CubeIDE (and newest CubeMX from 5.x). It worked pretty well, no major issuesm however generated code is totally crap!
- it totally do not work, nor even reach main()
- it is smaller - hex has 160kB instead of >400kB
- when I've run debugger it starts and then disappear, with strange disassembly view
- breakpoints are not triggered
My project is mix of C and C++, it compiles without warnings (except warnings made by autogenerated CubeMX code).
I've tried migration several times without any differences.
Any idea how to diagnose what is issue is that? Or maybe even how to fix?
My project if for STM32F767VI STM32H767VI + FreeRTOS.
best regards
Mikolaj Tutak
- Labels:
-
STM32CubeIDE
-
STM32F7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-02 10:36 AM
STM32H767VT is not a valid STM32 reference ... ? please correct if aiming to get help.
TrueStudio import to STM32CubeIDE is supported by File > Import > Import Atollic TrueStudio project.
Some application note is promoted on www.st.com: https://www.st.com/resource/en/user_manual/dm00613834-migration-guide-from-truestudio-to-stm32cubeide-stmicroelectronics.pdf
TrueStudio project is not .ioc file (STM32CubeMX proprietary format) aware. STM32CubeIDE is. Maybe some trouble here: are you relying once imported on some code generation process ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-07 12:42 PM
That's true, I mean STM32F767VI. I reverted to True Studio 9.3.0 and project works fine with latest CubeMX. Changing to CubeIDE fails. I've noticed that newlib has been upgraded fro, 2.5.0 to 3.0.0.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-07 7:29 PM
> hex has 160kB instead of >400kB
This can be symptom of missing startup .s file and SystemInit()
Please check that the .s file is properly compiled and debugger breaks if you put a breakpoint on Reset_Handler
Also, check that the linker script has been migrated and it references .isr_vector
-- pa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-08 3:14 AM
According to me TrueStudio to STM32CubeIDE conversion / import is not revisiting at all primary sources (startup, linker files). Such conversion process only adapt .project & .cprojects files (original ones are copied adding _org to file extension)
If @Nixz​ has jeopardized sources based on some code generation process ... such is another story ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-08 3:21 AM
Newlib possibly upgraded but according to me fully backward compliant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-11-08 5:00 AM
Sources were regenerated by CubeMX with CubeIDE target then I've reimported them. I believe after this should work fine. Startup .s file were generated with different name but with same content. Maybe this code wasn't included during compile time so linker removed most of the code (including main). Have to check this.
