lpcware

Beginner in programming ARM chips

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by amlwwalker on Wed Jun 26 10:34:36 MST 2013

Hi,


I hope that someone can help me here.


I have bought these two items in an attempt to begin programming and learning about ARM microcontrollers:


<a href="https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/">https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/</a>


<a href="https://www.olimex.com/Products/Modules/LCD/MOD-LCD4.3''/">https://www.olimex.com/Products/Modules/LCD/MOD-LCD4.3''/</a>


I have programmed 8 bit AVRs for about three years as a hobby I am just trying to get the too chain working at this point for ARM, that is open source.


Unfortunately, the example that comes with the board above only works in IAR IDE which, from research is about £2000. I downloaded the trial version to see if I could get the example building but I dont have £2000 available...


When programming AVR's I have used Eclipse so I would like to use this again.


I downloaded


winARM and put it in C drive, so there is:


C:\WinARM


I have Eclipse, and when I start a new project I can see: ARM Windows GCC (GNUARM, WinARM) - so I select this one


I start a new project, and in Project Proeprties I choose cortex M3 Processor. I have set optimization to -Os, and have unticked Thumb (-mthumb)


However I cant find anywhere a very simple - preferably uart/serial example for this chip that I can try. I have downloaded keil, OpenOCD from Olimex, IAR, yaggarto and I have not had any success.


Please can someone help me by giving me a very very simple example that should work on this board so that I atleast have something I can start with - I said uart example before because I know that the uart works from the example that was preprogrammed.


I have installed the drivers for the JTAG above, but I am not sure how to setup eclipse to use the JTAG, any instruction on this would also be really helpful...


Im tearing my hair out here...I have spoken with Olimex and they said that they cant write an example that uses openOCD because their example is heavily reliant on IAR code - which I thought was strange considering they have a tutorial on their website for openOCD setup with other boards of theirs.


If you were wanting to make my life as easy as possible a zip with eclipse preconfigured would be amazing. 


 


What I understand is:


I need Eclipse - Done.


I need WinARM - Done.


I need to configure Eclipse to use WinARM - not sure if I have done that properly - not sure how to check


I need a very simple example that will do something on this board - not done


I need to verfiy that the JTAG works - I dont mind if I do this from command line or from Eclipse, Im just not sure how to test it.


 


THanks again everyone. I would greatly appreciate some help with this. At the moment I feel like I just spent 70 euros on a paper weight.


 


Alex

Outcomes