Page 1 of 3

Sample project/resources for GCC/Linux

Posted: 17 Apr 2017, 17:41
by lalit
Hi,
Do you have any project which can be used with GCC or any resources that can help me in porting the code to GCC?

[EDIT]
I'm mainly trying to setup Nuvoton environment in linux. But it looks like there is no linux support for ICP tool, do you guys have it planned?

Regards

Re: Sample project/resources for GCC

Posted: 18 Apr 2017, 18:02
by AlsoJoe
Hi lalit, may I ask the reason of using GCC?
As far as I know, it cannot Debug when using GCC instead of using Keil or IAR.

Re: Sample project/resources for GCC

Posted: 19 Apr 2017, 01:07
by icserny
Coocox CoIDE uses GCC (GCC-ARM-Embedded) compiler and provides sample codes and module libraries as well. It worths a try...

Re: Sample project/resources for GCC

Posted: 19 Apr 2017, 13:31
by lalit
@AlsoJoe : The reason is that most of our systems are linux based, so using GCC will make our system OS independent and also free of charges. I can use gdb to debug, it works pretty well, just needs some getting used to.

@icserny: I have tried CoIDE, although it doesn't have any linux port, I think it is possible to bring out the whole system of compiling and debugging and port it to any eclipse based system, I just wanted to know if you guys had any documentation that could maybe help me in the process. Thanks for pointing out though.

Regards

Re: Sample project/resources for GCC/Linux

Posted: 24 Apr 2017, 14:07
by Dylan Hsieh
Hi,

The attachment file is a very simple project under GCC/Linux, maybe you could modify it to fit your develop environment.

Re: Sample project/resources for GCC/Linux

Posted: 24 Apr 2017, 15:39
by lalit
Hi,
Thanks for the code, I have been able to compile my code fine by reversing CoIDE code and now using your code. How are you uploading the code to controller as there is no linux utility for that? Maybe I am not able to find it, can you provide a link to that if possible?

Regards

Re: Sample project/resources for GCC/Linux

Posted: 26 Apr 2017, 17:47
by Dylan Hsieh
Hi,

Unfortunately, NUVOTON doesn't have any tool to uploading the code to controller under LINUX for now, I think the best way is compile the source code and generate the HEX file or BIN file under LINUX and then use the "NuMicro ICP Programming Tool" under WINDOWS to upload the code.

Re: Sample project/resources for GCC/Linux

Posted: 27 Apr 2017, 13:01
by lalit
Yeah thought so, thanks for all the help. Can anyone from NUVOTON comment on this, do you guys have any plan on introducing tools for linux in any near future?

Regards

Re: Sample project/resources for GCC/Linux

Posted: 28 Apr 2017, 09:42
by Dylan Hsieh
Hi,

As I know that NUVOTON actually have plan to let user develop their project under LINUX and it's still under development, so I can't sure when will it be released. But I'll give your request to them to speed up developing.

Thanks for your suggestion!

Re: Sample project/resources for GCC/Linux

Posted: 27 Jul 2017, 21:41
by lalit
Hi,
Can you repost the source code which was attached in the post above? I am trying to make things work on Eclipse, it would seem there is some issue during linking, as the hex generated is not working.

Thanks and Regards