Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Integrating Semihosting(STM32F407) and STM32CubeMX generated code(printf need to be used on console of Eclipse)
Integrating Semihosting(STM32F407) and STM32CubeMX generated code [message #1759537] Wed, 12 April 2017 16:04 Go to next message
Abin Jacob is currently offline Abin JacobFriend
Messages: 6
Registered: March 2017
Junior Member
Hello Everyone,

A code is generated for "STM32F407 discovery board" using "STM32CubeMX". I found out that semihosting is possible in Eclipse by a much relatively easier way. Please check the first comment in this by Liviu, who mentions about using "Freescale Kinetis KLxx C/C++ Project" same as for "STM32F407XX C/C++ Project"

Now, to STM32F407 board I have connected a motor and speed sensor. I need to display speed of rotating motor on the console using printf.

But, the problem is code generated from STM32f407 board do not consider semihosting. And in order to enable semihosting, we need to follow steps like "File->new C project->Project Type->STM32F4Xxx C/C++ Project"->Toolchains->Cross ARM GCC->next->then comes the option of semihosting under 'trace output' and 'system calls' options "

After, few more "next" and finish. Headers, binaries and libraries are added as visible under the "Project Explorer" window.

My questions are:

1. Is there a process in first-hand by which i can use semihosting on already generated source code from "STM32CubeMX".

2. Or do I need to first enable semihosting and then do something with "STM32CubeMX generated code" to attach it with semihosting process.

3. What option need to be selected under "Target Processor Setting" stage while following "file->new c project" steps. Here I refer options mainly as 'system calls' and 'trace output'.

How do I perform this operation.

Operating System is Linux(Ubuntu 15.04) and Eclipse is "Neon.2 Release (4.6.2)"

Please avoid my level of knowledge in this subject.
Kindly advise.

Regards,
Abin Jacob

[Updated on: Wed, 12 April 2017 16:27]

Report message to a moderator

Re: Integrating Semihosting(STM32F407) and STM32CubeMX generated code [message #1759590 is a reply to message #1759537] Thu, 13 April 2017 14:01 Go to previous messageGo to next message
Abin Jacob is currently offline Abin JacobFriend
Messages: 6
Registered: March 2017
Junior Member
Any ideas..about this? 3000 people have viewed it, but why do no one replies?

[Updated on: Thu, 13 April 2017 14:13]

Report message to a moderator

Re: Integrating Semihosting(STM32F407) and STM32CubeMX generated code [message #1759604 is a reply to message #1759590] Thu, 13 April 2017 18:31 Go to previous messageGo to next message
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 742
Registered: August 2014
Senior Member
This is off-topic here. The semihosting setup belongs to the JTAG connection you're using. Maybe there are better responses in a ST group.

--

Tauno Voipio
Re: Integrating Semihosting(STM32F407) and STM32CubeMX generated code [message #1759630 is a reply to message #1759604] Fri, 14 April 2017 07:29 Go to previous message
Abin Jacob is currently offline Abin JacobFriend
Messages: 6
Registered: March 2017
Junior Member
Thank you Tauno, now I atleast know where to ask the same question.

Regards,
Abin Jacob
Previous Topic:How to use CubeMX generated source code in Eclipse IDE
Next Topic:Deleted project files resurrected
Goto Forum:
  


Current Time: Sat Apr 27 02:11:47 GMT 2024

Powered by FUDForum. Page generated in 0.02722 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top