Sample project/resources for GCC/Linux

lalit
Posts: 8
Joined: 14 Apr 2017, 18:14

17 Apr 2017, 17:41

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
Last edited by lalit on 19 Apr 2017, 22:25, edited 1 time in total.

AlsoJoe
Posts: 19
Joined: 20 Mar 2017, 11:35

18 Apr 2017, 18:02

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.

icserny
Posts: 1
Joined: 19 Apr 2017, 00:55

19 Apr 2017, 01:07

Coocox CoIDE uses GCC (GCC-ARM-Embedded) compiler and provides sample codes and module libraries as well. It worths a try...

lalit
Posts: 8
Joined: 14 Apr 2017, 18:14

19 Apr 2017, 13:31

@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

Dylan Hsieh
Posts: 31
Joined: 22 Mar 2017, 09:54

24 Apr 2017, 14:07

Hi,

The attachment file is a very simple project under GCC/Linux, maybe you could modify it to fit your develop environment.
Attachments
m451_gcc_example.tar.gz
(585.13 KiB) Downloaded 2081 times

lalit
Posts: 8
Joined: 14 Apr 2017, 18:14

24 Apr 2017, 15:39

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

Dylan Hsieh
Posts: 31
Joined: 22 Mar 2017, 09:54

26 Apr 2017, 17:47

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.

lalit
Posts: 8
Joined: 14 Apr 2017, 18:14

27 Apr 2017, 13:01

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

Dylan Hsieh
Posts: 31
Joined: 22 Mar 2017, 09:54

28 Apr 2017, 09:42

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!

lalit
Posts: 8
Joined: 14 Apr 2017, 18:14

27 Jul 2017, 21:41

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

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 16 guests