Search found 466 matches

by Mattias Norlander
Mon Oct 08, 2018 9:41 am
Forum: TrueSTUDIO for STM32 discussions
Topic: Redirect UART to use printf and scanf
Replies: 1
Views: 894

Re: Redirect UART to use printf and scanf

Hi,

They are not defined as weak but since the build system will choose implementation in source files before trying to link from libraries you can just implement them as you want. In TS the recommended way is to generate the syscalls.c file from File > New > Other > syscalls...
by Mattias Norlander
Mon Oct 08, 2018 9:36 am
Forum: Atollic TrueSTUDIO tool discussions
Topic: C/C++ General - Language Mappings
Replies: 4
Views: 407

Re: C/C++ General - Language Mappings

Hi, Aha, ok. In that case the answer is no. You cannot have g++ by default eat .c files. The only way is to rename to .cc or .cpp. One way - probably the best option - is to create a cppmain.cpp. In this file you declare extern "C". Then have this main.cpp called from main.c file generated...
by Mattias Norlander
Mon Oct 08, 2018 9:17 am
Forum: TrueSTUDIO for STM32 discussions
Topic: Program 'gcc' not found in PATH
Replies: 8
Views: 2697

Re: Program 'gcc' not found in PATH

Thanks tma,

I am sure it is if people care to google ;)
Interesting feedback. It is difficult to narrow down these types of issues since different companies have differently looking PC environments and we simply cannot test it all.
by Mattias Norlander
Mon Oct 08, 2018 9:13 am
Forum: Atollic TrueSTUDIO tool discussions
Topic: Compile a single file from project
Replies: 4
Views: 705

Re: Compile a single file from project

OK - a small clarification. We have removed the "build automatically" entry in the "project" menu, this was done to clean up the stock Eclipse GUI which is difficult enough for new users. Maybe could be reconsidered today since Eclipse has won a lot of ground in the embedded spac...
by Mattias Norlander
Mon Oct 08, 2018 9:01 am
Forum: Embedded target code development discussions
Topic: CMSIS with CubeMx
Replies: 5
Views: 5288

Re: CMSIS with CubeMx

In TrueSTUDIO go into the Project Properties --> C/C++ General --> Paths and Symbols --> Source Location. Here you can see which source-folders that are on the build path. Look into these folders. Do they include the source code for the DSP functions? If not - then there is your issue, the source fi...
by Mattias Norlander
Fri Oct 05, 2018 4:12 pm
Forum: Atollic TrueSTUDIO tool discussions
Topic: C/C++ General - Language Mappings
Replies: 4
Views: 407

Re: C/C++ General - Language Mappings

Dont touch Language mappings
Instead do this:
- First make sure to copy all (take screenshots) build settings for C Compiler.
- Then go: File > New > Convert to a C/C+ Project
- Now add all "C Compiler" settings to "C++ Compiler"
by Mattias Norlander
Fri Oct 05, 2018 4:06 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: Can't Enable SWV
Replies: 36
Views: 4877

Re: Can't Enable SWV

You can obtain trace data in different ways on ARM cores: ETM/ETB: M3/M4/M7, typically requires a more expensive debug probe. For TS only J-Trace/J-Link is supported. SWV: M3/M4/M7, works with ST-Link/J-Link in TS MTB: M0+, works with any JTAG/SWD probe but I dont think any STM32 implements this tra...
by Mattias Norlander
Fri Oct 05, 2018 3:52 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: Program 'gcc' not found in PATH
Replies: 8
Views: 2697

Re: Program 'gcc' not found in PATH

TrueSTUDIO sets its own environmental variables when running, so no need for the Windows Path variable (in theory apparently only). Verify that you have the gcc installed in the ARMTools\bin folder. Sometimes we have seen anti-virus tools eating the compiler :roll: If you re-install TS try disabling...
by Mattias Norlander
Fri Oct 05, 2018 3:48 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: Trace on STM32F767
Replies: 1
Views: 215

Re: Trace on STM32F767

Never tried ETM trace on the F7 boards. But you must use JTAG, not SWD. SWD = 2pins only: CLK and I/O. For ETM trace you need 1/2/4 trace pins on top of the clk/io and other pins. Try that.
by Mattias Norlander
Fri Oct 05, 2018 3:42 pm
Forum: TrueSTUDIO for STM32 discussions
Topic: Debug Issues (new to True |Studio)
Replies: 2
Views: 424

Re: Debug Issues (new to True |Studio)

It is most likely because Optimization of your project by default is set to -Os. Set it to -O0. Now your code will not be optimized --> better sync between C code and actual instructions --> Debugger can now resolve assembly instructions to C code and accurately show which line that you break on or ...

Go to advanced search