/var/www/restricted/ssh/stm32/www/stm32circle/ STM CircleOS forum / Can Ride7 be used with C++

Username:     
Password:     
             

Forum

# 1   2010-03-12 09:23:05 Can Ride7 be used with C++

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Can Ride7 be used with C++

I can only see "C Source" and "C Header" in file type field among the file's properties. Is there some way to insert a new file type. Some kind of XML file or somthing? Or i can rewrite the project file manualy for it?
I realy don't want to rewrite the whole AT command parser by hand.

Offline

 

# 2   2010-03-17 08:12:17 Can Ride7 be used with C++

behnaz
Member
Registered: 2007-11-16
Posts: 16

Re: Can Ride7 be used with C++

Hello ntrf.zns,

Yes there is :
1. Save your Ride\config\projectmanager.config

2. Types element contain the definition of different types of files. You can insert there something like this:
<NodeXXX Header="XXX File" Extension="xxx" Path="Yes" InBuild="Yes" InDebug="Yes" IsLeaf="Yes"/>

3. The Defs element contain the options and menus for this type of file. You can insert and modify your specific options

<Set Header="NodeXXX" Desc="XXX file">
      <Section Header="Internal" Hidden="1">
        <Property Header="Icon" Type="PT_STRING" Value="$(RkitInst)\config\resources\sourceTXt.bmp"/>
        <Property Header="Menu" Type="PT_INT" Value="530"/>
        <Property Header="Header" Type="PT_STRING" Value="XXX file"/>
        <Property Header="Open" Type="PT_INT" Value="33039"/>
      </Section>
      <Section Header="General" Desc="Info">
        <Property Header="Header" Desc="File name" Type="PT_STRING" ReadOnly="1"/>
        <Property Header="Path" Desc="Path" Type="PT_STRING" ReadOnly="1"/>
        <Property Header="Type" Desc="Type" Type="PT_CHOICE" Value="XXX File">
          <Enum Header="XXX file" Value="NodeXXX"/>
          <Enum Header="Text file" Value="NodeText"/>
          <Enum Header="HTML file" Value="NodeHTM"/>
          <Enum Header="PDF file" Value="NodePDF"/>
          <Enum Header="C Source file" Value="NodeC"/>
          <Enum Header="Assembly file" Value="NodeASM"/>
          <Enum Header="C Include file" Value="NodeH"/>
          <Enum Header="Assembly include file" Value="NodeInc"/>
          <Enum Header="Library file" Value="NodeLib"/>
          <Enum Header="Application file" Value="NodeApp"/>
          <Enum Header="Object file" Value="NodeObj"/>
        </Property>
        <Property Header="NodePath" Desc="NodePath" Type="PT_STRING" Hidden="1"/>
        <Property Header="NodeDir" Desc="NodeDir" Type="PT_STRING" Hidden="1"/>
        <Property Header="NodeName" Desc="NodeName" Type="PT_STRING" Hidden="1"/>
        <Property Header="NodeFilename" Desc="NodeFilename" Type="PT_STRING" Hidden="1"/>
        <Property Header="NodeExt" Desc="NodeExt" Type="PT_STRING" Hidden="1"/>
      </Section>
    </Set>


This will basically consider the xxx files as a

Offline

 

# 3   2010-03-17 08:14:05 Can Ride7 be used with C++

behnaz
Member
Registered: 2007-11-16
Posts: 16

Re: Can Ride7 be used with C++

Sorry I missed the end of the post,

This basically will define the xxx files as text files...
Is that you meant to do?

Offline

 

# 4   2010-03-17 08:39:04 Can Ride7 be used with C++

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: Can Ride7 be used with C++

Thanks for the advice.

I found that it's ok to use CPP files as C files. The only modification required is an aditional -fno-exceptions flag for compiler at project level. So i guess it will work if i put NodeC in that row and it will read and process those files the same way as C source.

Offline

 

# 5   2010-03-17 09:11:59 Can Ride7 be used with C++

VincentC
Administrator
Registered: 2007-11-08
Posts: 149

Re: Can Ride7 be used with C++

Hi,

Just a little clarification...

As Behnaz said, after you handle the file extensions thing, compiling should be fine as GCC supports C++.
And programming should be no problem, because the source language makes no difference for programming. (it's just data in the end)

However, you should expect problems during debugging: watching classes, class variables, following execution path during exceptions try/catch/throw, etc. are not validated yet. (and maybe not implemented) For this reason Ride does not officially support C++ for now. We plan to correct this but we have no date to announce.

Best Regards,

Vincent

Offline

 

# 6   2010-03-17 09:24:07 Can Ride7 be used with C++

behnaz
Member
Registered: 2007-11-16
Posts: 16

Re: Can Ride7 be used with C++

If the only things you want to do is to add CPP file to be handled the same way as C files you do not have to do all these.

1. Open Ride\Config\ARM\ARM.config
2. modify the following element
   <Property Header="CFilters" Type="PT_STRING" Default="*.c;*.h;*.cpp"/>

with just adding cpp to the filter list.

Behnaz

Offline

 

# 7   2010-03-17 09:31:02 Can Ride7 be used with C++

behnaz
Member
Registered: 2007-11-16
Posts: 16

Re: Can Ride7 be used with C++

you have also do the same in projectmanager.config

1. Open Ride\Config\projectmanager.config
2. modify <NodeC Header="C Source File" Extension="c;cpp" ...

Behnaz

Offline

 

# 8   2010-03-17 20:34:23 Can Ride7 be used with C++

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: Can Ride7 be used with C++

2 VincentC:

I already got it. It's working fine including debug. And because i don't need exceptions (i inserted -fno-exceptions into compiler options) i have no problems with try/catch or startup function.

Offline

 

# 9   2011-02-09 22:19:30 Can Ride7 be used with C++

MCSolution
New member
Registered: 2010-11-27
Posts: 5

Re: Can Ride7 be used with C++

2 ntrf.zns:

What settings have you changed so that Ride7 treats the *.cpp files as sources to compile?
Or did you simply set the -x c++    option? If yes, where?

Offline

 

# 10   2011-03-07 09:13:40 Can Ride7 be used with C++

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Can Ride7 be used with C++

For your information, the next release of the RKit ARM will manage C++ files (publication in March).

Offline

 

# 11   2011-08-03 16:02:27 Can Ride7 be used with C++

NeuMotiv
New member
Registered: 2011-08-03
Posts: 1

Re: Can Ride7 be used with C++

I I have made the *.cpp additions to the configuration files suggested and I am still uable to build a C++ source n Ride7.

now what?

Offline

 

# 12   2011-08-03 16:10:42 Can Ride7 be used with C++

atitude
Member
From: USA
Registered: 2010-12-18
Posts: 30
Website

Re: Can Ride7 be used with C++

Could Raisonance please share their latest forecast for when RIDE7 will officially support C++? March '11 it was promised to arrive in March. It would really help productivity a lot for some of us.

Alternatively one can go the path of Eclipse, OpenOCD and GCC (and FreeRTOS), as shown on https://sites.google.com/a/stf12.net/de … lipse-demo . But I rather see RIDE7 extended.

Offline

 

# 13   2011-08-19 07:32:16 Can Ride7 be used with C++

VincentC
Administrator
Registered: 2007-11-08
Posts: 149

Re: Can Ride7 be used with C++

Hi,

The current version of the software (RKit-ARM v1.32.11.0116) does support C++.

You can find an example here:
<Ride>\Examples\ARM\REva\STM32F103_Toggle_cpp

And some explanations in the GettingStartedARM doc.

Best Regards,

Vincent

Offline

 

# 14   2011-08-19 21:09:29 Can Ride7 be used with C++

ntrf.zns
Member
From: Belgorod, Russia
Registered: 2009-11-01
Posts: 134

Re: Can Ride7 be used with C++

Did you fixed c++ debug? Last time i checked (over a year ago) C++ files could not be properly debuged. Missing symbols and skiped lines were serious problem.

Offline

 

# 15   2011-08-22 08:40:27 Can Ride7 be used with C++

VincentC
Administrator
Registered: 2007-11-08
Posts: 149

Re: Can Ride7 be used with C++

yes

Offline

 

# 16   2011-08-25 07:41:57 Can Ride7 be used with C++

cucu
New member
Registered: 2011-08-25
Posts: 1
Website

Re: Can Ride7 be used with C++

behnaz :

Hello ntrf.zns,

Yes there is :
1. Save your Ride\config\projectmanager.config

2. Types element contain the definition of different types of files. You can insert there something like this:
<NodeXXX Header="XXX File" Extension="xxx" Path="Yes" InBuild="Yes" InDebug="Yes" IsLeaf="Yes"/>

3. The Defs element contain the options and menus for this type of file. You can insert and modify your specific options

<Set Header="NodeXXX" Desc="XXX file">
      <Section Header="Internal" Hidden="1">
        <Property Header="Icon" Type="PT_STRING" Value="$(RkitInst)\config\resources\sourceTXt.bmp"/>
        <Property Header="Menu" Type="PT_INT" Value="530"/>
        <Property Header="Header" Type="PT_STRING" Value="XXX file"/>
        <Property Header="Open" Type="PT_INT" Value="33039"/>
      </Section>
      <Section Header="General" Desc="Info">
        <Property Header="Header" Desc="File name" Type="PT_STRING" ReadOnly="1"/>
        <Property Header="Path" Desc="Path" Type="PT_STRING" ReadOnly="1"/>
        <Property Header="Type" Desc="Type" Type="PT_CHOICE" Value="XXX File">
          <Enum Header="XXX file" Value="NodeXXX"/>
          <Enum Header="Text file" Value="NodeText"/>
          <Enum Header="HTML file" Value="NodeHTM"/>
          <Enum Header="PDF file" Value="NodePDF"/>
          <Enum Header="C Source file" Value="NodeC"/>
          <Enum Header="Assembly file" Value="NodeASM"/>
          <Enum Header="C Include file" Value="NodeH"/>
          <Enum Header="Assembly include file" Value="NodeInc"/>
          <Enum Header="Library file" Value="NodeLib"/>
          <Enum Header="Application file" Value="NodeApp"/>
          <Enum Header="Object file" Value="NodeObj"/>
        </Property>
        <Property Header="NodePath" Desc="NodePath" Type="PT_STRING" Hidden="1"/>
        <Property Header="NodeDir" Desc="NodeDir" Type="PT_STRING" Hidden="1"/>
        <Property Header="NodeName" Desc="NodeName" Type="PT_STRING" Hidden="1"/>
        <Property Header="NodeFilename" Desc="NodeFilename" Type="PT_STRING" Hidden="1"/>
        <Property Header="NodeExt" Desc="NodeExt" Type="PT_STRING" Hidden="1"/>
      </Section>
    </Set>


This will basically consider the xxx files as a

all is html!i don't understand!

Offline

 

# 17   2011-08-30 06:55:40 Can Ride7 be used with C++

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Can Ride7 be used with C++

Cucu, Behnaz answered at a period when C++ was not correctly managed by Ride. Now it works. Do not take this item no more into account.

Offline

 

# 18   2011-11-20 09:03:51 Can Ride7 be used with C++

piotro
New member
Registered: 2008-03-28
Posts: 2

Re: Can Ride7 be used with C++

Hello,
Where can I get the latest Ride 7 for primer? A have one downloaded from here http://www.stm32circle.com/resources/stm32primer.php and it still does not support cpp files.
Where can i get one that does?

Offline

 

# 19   2011-11-21 08:15:46 Can Ride7 be used with C++

yrt
Administrator
From: Grenoble-France
Registered: 2008-06-11
Posts: 520
Website

Re: Can Ride7 be used with C++

Offline

 

# 20   2011-11-21 19:38:00 Can Ride7 be used with C++

piotro
New member
Registered: 2008-03-28
Posts: 2

Re: Can Ride7 be used with C++

Only version I can find is 1.30.10.0356 and little bit up this topic I read that version 1.32.11.0116 supports cpp files.
When I log into extranet I can download only 7-day eval version of newer software. Is there any way to get version newer than 1.30.10.0356 without 7-day limitation or You have to buy it?

Offline

 

# 21   2011-11-22 07:07:27 Can Ride7 be used with C++

atitude
Member
From: USA
Registered: 2010-12-18
Posts: 30
Website

Re: Can Ride7 be used with C++

It appears that the free RKit tools we had access to the past years are fading away. Last update of the free tools was at the start of the year 2011, and no updates since. Raisonance now only provides tools under a service agreement.

Will the CircleOS be further supported with updates?
Will the EVOPRIMER platform be further supported?

If you want free, unlimited tools for EVOPRIMER, you may want to look at
     http://www.stf12.org/developers/ODeV.html
Apart from being truly free, it opens up the world of FREERTOS and C++.

Offline

 

# 22   2011-11-22 11:31:48 Can Ride7 be used with C++

gussenhovenS
Administrator
Registered: 2007-07-09
Posts: 68

Re: Can Ride7 be used with C++

To respond clearly...
          "Will the CircleOS be further supported with updates?"

CircleOS will continue to be supported by Ride7 and RKit-ARM.

          "Will the EVOPRIMER platform be further supported?"

EvoPrimer, which integrates the Raisonance RLink will continue to be supported by Ride7 and RKit-ARM.

As an owner of a Raisonance tool (EvoPrimer, Open4, RLink, REva) purchased within the past year, you have the access to Ride7 and RKit-ARM software updates under your support agreement with Raisonance.

Offline

 

Board footer