Import example project from Cube makes different Errors

Discussions concerning TrueSTUDIO for STM32 9.0.0 and later versions.

Moderators: Markus Girdland, Mattias Norlander

CaoKhoa
Posts: 9
Joined: Mon Jul 23, 2018 6:18 am

Import example project from Cube makes different Errors

Postby CaoKhoa » Thu Jul 26, 2018 2:55 pm

Hi erveryone,

did anybody try to import example project from STM32CubeMX to Atollic True Studio?

I have try some and get many different errors, which is very frustrating from the first time using the STM32. I have once use Atmel ARM and PIC but no one ever cause such problem in example!!!

Here is the error with Application/LwIP
Description Resource Path Location Type
fatal error: lwip/priv/memp_std.h: No such file or directory STM32746G_DISCOVERY line 49 C/C++ Problem

and here is the error with /Demonstration
Failure at line: 13 in 'Target Software Startup Scripts'. Please Edit the debug configuration settings.
Load failed

I convert them from SW4STM32 to Atollic True Studio.

Anybody please give me some tips Please!!!

Georgy.Moshkin
Posts: 17
Joined: Sun Feb 18, 2018 6:05 am

Re: Import example project from Cube makes different Errors

Postby Georgy.Moshkin » Fri Jul 27, 2018 2:44 am

Did you tried to select Toolchain/IDE = TrueSTUDIO in "Project Settings" of CubeMX? I always import projects this way from Cube.

CaoKhoa
Posts: 9
Joined: Mon Jul 23, 2018 6:18 am

Re: Import example project from Cube makes different Errors

Postby CaoKhoa » Fri Jul 27, 2018 6:29 am

Hi

I think we convert it direct in atollic True Studio right? (http://blog.atollic.com/how-to-import-t ... truestudio)

could you tell me how to choose that setting? or do you have another way?

Thanks

CaoKhoa
Posts: 9
Joined: Mon Jul 23, 2018 6:18 am

Re: Import example project from Cube makes different Errors

Postby CaoKhoa » Fri Jul 27, 2018 8:25 am

Try with the File>Import function but there are still problem with the directory:

Description Resource Path Location Type
fatal error: system_stm32f7xx.h: No such file or directory STM32746G_DISCOVERY line 193 C/C++ Problem

Any helps/tips would be appreciated!!!

Georgy.Moshkin
Posts: 17
Joined: Sun Feb 18, 2018 6:05 am

Re: Import example project from Cube makes different Errors

Postby Georgy.Moshkin » Fri Jul 27, 2018 10:59 am

I think best way is to:
1. open project in stm32CubeMX
2. in menu choose project -> settings -> Toolchain/IDE -> select TrueSTUDIO
3. in menu press project -> generate code

Btw, my Keil projects generated with CubeMX can't be imported in TrueSTUDIO, there is some error and compiling problems.
All works perfect after i made CubeMX generate TrueSTUDIO project and open it in TrueSUDIO. I think it makes sense.

CaoKhoa
Posts: 9
Joined: Mon Jul 23, 2018 6:18 am

Re: Import example project from Cube makes different Errors

Postby CaoKhoa » Fri Jul 27, 2018 11:09 am

Hi

Thanks for your answer, i think you get me wrong. I import project in Atollic (not create a new one from CubeMX).
I done some manually include and it is now buildt without Error. But then no .elf file created.

Georgy.Moshkin
Posts: 17
Joined: Sun Feb 18, 2018 6:05 am

Re: Import example project from Cube makes different Errors

Postby Georgy.Moshkin » Fri Jul 27, 2018 11:33 am

Is your project made with CubeMX? If so, it can be converted to newer cube version and then project code generated.
I had no elf file for keil project too. If anybody have time for this, just need to compare IDE configuration for both cases : working project from Cube and imported project from somewhere else. Surely there is some difference.
I recommend just take IOC file with peripheral configuration, build empty project from CUBE and move old code to new project. Not too much work must be done.

CaoKhoa
Posts: 9
Joined: Mon Jul 23, 2018 6:18 am

Re: Import example project from Cube makes different Errors

Postby CaoKhoa » Fri Jul 27, 2018 12:03 pm

Hi,

no I import example project (SW4STM32 Example Project) from folder STM32Cube\Repository (downloaded after you install cubeMX).


Best regards,

Georgy.Moshkin
Posts: 17
Joined: Sun Feb 18, 2018 6:05 am

Re: Import example project from Cube makes different Errors

Postby Georgy.Moshkin » Fri Jul 27, 2018 2:49 pm

I don't have computer nearby to check what is the problem exactly. I would try to go through all menus and see the difference, maybe only few days later.
Btw, did you tried to build empty project based on cube project? I mean open IOC file in cube, select save copy of project, and then generate it with almost empty main.c. if this works, then you can copy and paste the rest from sw4stm32 example. Not the ideal way though, but it should work.

I think I can spot the problem this way:
1) open cubemx, make some simple project, for example enable swdio pins and one GPIO
2) build project Number-1 for TrueSTUDIO
3) save cube project in other directory and build project for SW4STM32, import it to TrueSTUDIO. Cal this project Number-2.
Project-2 will fail to generate ELF file.
Now just going through differences in project files problem may be localized.

If nobody tries it I will check this few days later or maybe earlier.

CaoKhoa
Posts: 9
Joined: Mon Jul 23, 2018 6:18 am

Re: Import example project from Cube makes different Errors

Postby CaoKhoa » Fri Jul 27, 2018 3:16 pm

Hi,

The new project from CubeMX work normal. I just try to import the example directly from sw4stm32 (so that i did not need to copy and paste each file and adapt manually the code form sw4stm32 in True Studio).

Anyway, im now give up with the sw4stm32 and copy it manually.


Return to “TrueSTUDIO for STM32 discussions”

Who is online

Users browsing this forum: No registered users and 1 guest