Hi Richard,
I am not sure how many eclipse CDT user on MS-Window. For me I simply use it to read code.
So maybe you don’t need to check it anyway.
For CDT, I like its debug feature to set breakpoint in editor and show variables’ value.
While sometimes it get problem to connect with gdb and report errors in old Indigo version.
Do it become better in Mars.2?
I am glad to work on the doc if there are some other peoples interested with the plugin.
I could update doc after I make it work in Linux and during using it.
I will try with Eclipse Luna version instead. If still not work, I will contact IT guy for GTK+ help in Linux farm.
CC to mail list.
Best regards.
Soberl.
From: Richard Herveille [mailto:richard....@roalogic.com]
Sent: Tuesday, May 31, 2016 15:21
To: Sober Liu
Cc: Richard Herveille
Subject: Re: Eclipse plugin available for download
* PGP - S/MIME Signed by an unverified key: 05/31/2016 at 12:20:30 AM
Hi Richard,
I am quite sorry for the delay response. I was interrupted for some other tasks.
No problem, I am very excited you’re giving this a go and want to help.
I see in MS-windows, both Indigo and Mars.2 works after I uncheck following option.
<image001.png>
Maybe I should spend some hours to find out how to install a toolchain for risk.
It looks like the MicroSoft definitions are wrong or missing. When I find the time I will take a look.
Since there is no document for this plugin, I am not sure what I can do after create a helloworld project with the template.
I know, I am serious lacking there. I plan to create a wiki on github for this.
If you’re interested, would you like to work on it??
Does the plugin enhance CDT editor, or build/debug follow?
What’s the difference if I create a normal cross-compile project and assign compile as riscv-elf-gcc?
Ok, so the plugin basically contains the instructions to build RISC-V code.
It calls GCC, objdump, the linker, etc.
It has a GUI for setting the switches and options for each tool.
Of course you can do this with the normal cross-compile, but then you have to specify it all yourself. The plugin handles all the quirks for you (at least that’s the intention).
So if you create a RISC-V project you’ll get a GUI with the tool options.
When you click ‘build’ it will call the RISC-V tools.
In debug mode it can link to GDB and debug/step through your code.
For Linux, I see in Indigo there is no new project type entry.
And I cannot run Mars.2 because our GTK+ version is too old. There are copies for most recent GTK+ versions in the server, but active one is 2.10.
I failed to find a way as WAR, e.g., assign a path in eclipse.ini point to later GTK+ version.
Anyway I will find a way later to make it work in Linux as riscv-gnu-toolchains built in Linux.
Hmm, I am not sure about that. I compiled the extension on Mars, maybe that’s the limitation?
Do u expect this discussion in riscv-sw mail thread, or just point to point before some stage?
Maybe riscv-sw is a better place? Then others can chime in on the discussion.
Richard
Thanks.
From: Richard
Herveille [mailto:richard....@roalogic.com]
Sent: Tuesday, May 31, 2016 03:59
To: Sober Liu
Subject: Re: Eclipse plugin available for download
Hi,
Did you manage to get it working?
Did you try the install or source?
Richard
Sent from my iPad
On 25 mei 2016, at 09:45, Sober Liu <sob...@nvidia.com> wrote:
Yes, I am also using CDT. Let me try with 4.5.2.
Have u tried with MS-windows or Linux, or both?
Thanks.
From: Richard Herveille [mailto:richard....@roalogic.com]
Sent: Wednesday, May 25, 2016 15:41
To: Sober Liu
Cc: Richard Herveille
Subject: Re: Eclipse plugin available for download
> Old - S/MIME Signed by an unverified key: 05/25/2016 at 12:41:14 AM
It’s important that you use Eclipse CDT. Eclipse for C Developers.
This is from my “about:"
Eclipse IDE for C/C++ Developers
Version: Mars.2 Release (4.5.2)
Build id: 20160218-0600
Cheers,
Richard
ROA LOGIC
Design Services and Silicon Proven IP
Richard Herveille
Managing Director
Phone +31 (45) 405 5681
Cell +31 (6) 5207 2230
On 25 May 2016, at 09:31, Sober Liu <sob...@nvidia.com> wrote:
OK. Looks like it’s not compatible with Indigo.
Which Eclipse version are u using?
Thanks.
From: Richard Herveille [mailto:richard....@roalogic.com]
Sent: Wednesday, May 25, 2016 15:25
To: Sober Liu
Cc: Richard Herveille
Subject: Re: Eclipse plugin available for download
> Old - S/MIME Signed by an unverified key: 05/25/2016 at 12:24:56 AM
Hi,
If the plugin is installed correctly, then you should see a new entrance when you select "New->C Project” or “New->C++ Project”. There should be 2 new entrances; “RISC-V Embedded Application” and “RISC-V Embedded Static Library”.
Richard
ROA LOGIC
Design Services and Silicon Proven IP
Richard Herveille
Managing Director
Phone +31 (45) 405 5681
Cell +31 (6) 5207 2230
On 25 May 2016, at 09:09, Sober Liu <sob...@nvidia.com> wrote:
Hi Richard,
I tried to install the plugin. I am not sure whether it's working or not.
My eclipse version is: Eclipse IDE for C/C++ Developers, Version: Indigo Service Release 2, Build id: 20120216-1857.
I see the plugin shown in Help->About Eclipse->Installation Details->Installed Software. But how can I use it?
The problem for me is that I don't find any new project type or new entrance in Preference.
Thanks a lot for share.
Best regards.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/2CB4F2A4-5A4F-4766-84A9-A49B6CFC45E7%40roalogic.com.
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
* <richard....@roalogic.com>
* Issuer: COMODO CA Limited - Unverified
* <richard....@roalogic.com>
* Issuer: COMODO CA Limited - Unverified
* <richard....@roalogic.com>
* Issuer: COMODO CA Limited - Unverified
Hi Richard,
With Eclipse Luna, I can use this plugin in Linux.
Let me share what I did to run myHellow project with my local riscv gnu toolchain.
- Set $PATH to contain path of riscv64-unknown-elf/bin
- I have to remove -msoft-float option for both CFLAGS and LDFLAGS. Otherwise I see error log like “can't link hard-float modules with soft-float modules”.
- It reports warning that _start not found. I uses _start/CRT from rocket-chip benchmark currently.
So I also link syscalls.o and crt.o.
Looks like I need to check how I built newlib for riscv.
Now I get myHellow.elf.
How can I make it run/debug? E.g., to use spike, or to run some simulator after dump img files?
Thanks.
Richard
Sent from my iPad
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/2CB4F2A4-5A4F-4766-84A9-A49B6CFC45E7%40roalogic.com.
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
* <richard....@roalogic.com>
* Issuer: COMODO CA Limited - Unverified
* <richard....@roalogic.com>
* Issuer: COMODO CA Limited - Unverified
At my side, when riscv-toolchain in PATH, I can always see new riscv project entry either the “show project types…” checkbox checked or not.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at
https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/b6211ca5-c5b2-4d8b-9e50-f099e0b69093%40groups.riscv.org.
Just to confirm that I did manage to get the plugin working at my end - thanks for the advice.
A few additional questions...(1) Is there any way to configure the toolchain bin folder or is it only picked up from the system PATH setting?
(2) Is there any way to tell the plugin to call riscv32-unknown-elf-gcc etc. instead of it always calling the riscv64 tools?
(3) Is it hardcoded that it adds -mArch=RV32I when -m32 is specified? I need to use -mArch=RV32IM but if I specify that in the configuration then it comes before -mArch=RV32I so I presume that the latter takes precedence?
Thanks a lot.RegardsTommy
On 24 Jun 2016, at 19:05, Tommy Murphy <tommy_...@hotmail.com> wrote:To make progress I have to change the RISC-V GCC/Newlib C Linker > Command from riscv64-unknown-elf-gcc to riscv64-unknown-elf-ld and then also add any C or ld specific options not controlled by GUI elements into the command name itself (e.g. RISC-V GCC/Newlib C Compiler Command = riscv64-unknown-elf-gcc -c -fno-jump-tables and RISC-V GCC/Newlib C Linker > Command = riscv64-unknown-elf-ld).
The plugin also seems to insist on adding -msoft-float to the command line but when I try to link I get:
Reasoning behind using GCC instead of ld directly is that it gives you the C preprocessor.Question is, what would be the preferred tool to use?
Yeah … when no hardware floating point option is selected, -msoft-float is automatically added. I guess that can be disabled for the linker. I’ll have to check the source code.

--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/21cae052-6ebc-42cf-8f6b-a5ee3034c507%40groups.riscv.org.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/09f3ba06-8be2-46c2-9316-328398e363b0%40groups.riscv.org.
So now I have Eclipse Neon.1 Release (4.6.1) installed, and when I try to install the plugin I get the following error:
Cannot complete the install because one or more required items could not be found.
Software being installed: RISC-V GNU Toolchain 2016.2.0.201604221055 (com.riscv.cdt.feature.feature.group 2016.2.0.201604221055)
Missing requirement: RISC-V GNU Toolchain 2016.2.0.201604221055 (com.riscv.cdt.feature.feature.group 2016.2.0.201604221055) requires 'org.eclipse.cdt.debug.mi.core 0.0.0' but it could not be found
What Eclipse version are you using?
Tim
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/156d8f2b-3505-403c-9a63-d47f6523d4b6%40groups.riscv.org.
So now I have Eclipse Neon.1 Release (4.6.1) installed, and when I try to install the plugin I get the following error:
Cannot complete the install because one or more required items could not be found. Software being installed: RISC-V GNU Toolchain 2016.2.0.201604221055 (com.riscv.cdt.feature.feature.group 2016.2.0.201604221055) Missing requirement: RISC-V GNU Toolchain 2016.2.0.201604221055 (com.riscv.cdt.feature.feature.group 2016.2.0.201604221055) requires 'org.eclipse.cdt.debug.mi.core 0.0.0' but it could not be foundWhat Eclipse version are you using?
Tim
On Wed, Oct 5, 2016 at 12:20 PM, Tommy Murphy <tommy_...@hotmail.com> wrote:
Hi Tim
Which installer?
Eclipse/CDT aka Eclipse for C/C++ Developers should just be a zipped download which you unpack.
And the Roa Logic RISC-V Eclipse plugins are another zip that you point Eclipse at to install as per Richard's first post in this thread.
Anyway - when you get back to it post back with progress or otherwise.
I've been using the plugins for a while and they have been working fine for me.
Regards
Tommy
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
The plug-in probably needs a recompile. I still need to chase up a weird bug that was reported.
Richard
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/96f77967-691c-40d3-8ad9-e71713d15533%40groups.riscv.org.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/96f77967-691c-40d3-8ad9-e71713d15533%40groups.riscv.org.
On 01 Nov 2016, at 08:02, Richard Herveille <richard....@roalogic.com> wrote:
We changed the API. -msoft-float and -mhard-float are no longer options; we removed them to clearly delineate the calling convention from the ISA. The calling convention is selected by -mfloat-abi=soft, -mfloat-abi=single, or -mfloat-abi=double. Independently, the ISA is set with -march.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/70c7d721-6819-463b-990c-7bc21fd894ed%40groups.riscv.org.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/70c7d721-6819-463b-990c-7bc21fd894ed%40groups.riscv.org.
#!/bin/sh
export PATH=$PATH:/path-to-my-riscv-gcc-tools/riscv-unknown-elf-gcc/bin
cd /path-to-my-eclipse/eclipse
./eclipse
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+unsubscribe@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/464a95b8-55d1-4b34-8e7b-b59fe9ccb5b2%40groups.riscv.org.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/51b2abd4-44d8-4f3c-b44d-5fd54f92a06a%40groups.riscv.org.
On 16 Mar 2017, at 13:28, Tommy Murphy <tommy_...@hotmail.com> wrote:Should read> (e.g. i, m, a, f, d, q, g = imafd, c, l, v, b, t etc.)since the --march= argument should be all lower case.
On Thursday, 16 March 2017 12:25:44 UTC, Tommy Murphy wrote:Where XX = 32 or 64 (and eventually 128?) and YYY = whatever options the CPU supports (e.g. I, M, A, F, D, Q, G = IMAFD, C, L, V, B, T etc.)?
Ilp32 means int-long-pointer are all 32bits.
The error msg comes from https://github.com/riscv/riscv-gcc/blob/riscv-next/gcc/config/riscv/riscv.c, around line 3793.
I guess it means u are trying to compile program for platform without FPU, while the toolchain library had expected FPU available (because toolchain maybe build with rv64g).
From: Richard Herveille [mailto:richard....@roalogic.com]
Sent: Thursday, March 16, 2017 9:21 PM
To: Tommy Murphy; RISC-V SW Dev
Cc: Richard Herveille
Subject: Re: [sw-dev] Eclipse plugin available for download
* PGP - S/MIME Bad Signature, Signed by an unverified key
* <richard....@roalogic.com>
* Issuer: COMODO CA Limited - Unverified
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at
https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/27D89888-02F6-46CA-8120-31895FEA7700%40roalogic.com.
My understanding, maybe incorrect, that the toolchain itself have to define whether it will be used for hard-float or soft-float. E.g., its crt need this information and decide whether to init FPU and FPRs. And it’s library also depends on this information to generate FPU instructions or soft-float function calls.
When u trying to compiling a program, it’s too later to assign march=xxx. It acts only a double check to make sure you will not get unexpected result.
I think maybe you need to configure/make 2 toolchain for both hard/soft-float and select one of them under user requests.
> Old - S/MIME Bad Signature, Signed by an unverified key
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/1185D40C-1BA6-46BF-A641-21374EE8BD13%40roalogic.com.
On 16 Mar 2017, at 15:35, Sober Liu <sob...@nvidia.com> wrote:My understanding, maybe incorrect, that the toolchain itself have to define whether it will be used for hard-float or soft-float. E.g., its crt need this information and decide whether to init FPU and FPRs. And it’s library also depends on this information to generate FPU instructions or soft-float function calls.When u trying to compiling a program, it’s too later to assign march=xxx. It acts only a double check to make sure you will not get unexpected result.I think maybe you need to configure/make 2 toolchain for both hard/soft-float and select one of them under user requests.
* -m32/-m64 are gone from RISC-V gcc/binutils, they're unnecessary because of
-march. Whatever documentation they're in is wrong, if you can give me a
pointer I'll fix it.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/ba1b55b0-cf35-48f4-b8a2-7c8c9b4a7c23%40groups.riscv.org.
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/e2459af5-e02b-4b3a-9d77-78ba9d8aa0d3%40groups.riscv.org.
- One of the plugin build steps uses hex2verilog - where does this tool come from as I can't see that it's produced by a "regular" build of the RISC-V tools?
- Do you know if there's any way to override plugin defaults through an external file (e.g. plugin_customization.ini referenced by eclipse.ini?)? For example, I would like -fdata-sections and -ffunction-sections enabled by default and to have the linker passed -Wl,-gc-sections but I can't seem to do this from an external file so have to modify the original plugin. I don't know if these can only be overridden in this way if certain APIs are used to retrieve settings or something like that?
- I have added a "Print Size" build step that uses riscv64-unknown-elf-size to print size stats - this is modelled on (i.e. copied from :-) the GNU ARM Eclipse plugins. Would you be interested in/willing to integrate that into the plugin? If so I can send you the modified plugin.xml.
- With the previous plugin I was able to specify -gc-sections in the linker Other flags but with the latest plugin I have to specify -Wl,-gc-sections. I can't see why but maybe this is something to do with the latest RISC-V tools versus the older ones that I was using before? Rather than a plugin issue per se (or at all)?
- I haven't been able to test the update site installation mechanism for you because I still don't know what URL to specify. Maybe you can clarify?
- When I get a chance I will try the plugin with Eclipse Neon - as I said above it installed OK but I haven't actually tried it.
<plugin.xml>
--
You received this message because you are subscribed to the Google Groups "RISC-V SW Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sw-dev+un...@groups.riscv.org.
To post to this group, send email to sw-...@groups.riscv.org.
Visit this group at https://groups.google.com/a/groups.riscv.org/group/sw-dev/.
To view this discussion on the web visit https://groups.google.com/a/groups.riscv.org/d/msgid/sw-dev/a0009d46-47dc-44df-a067-9b3876ea7713%40groups.riscv.org.