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
//#ifdef __USE_CMSIS //#include "LPC177x_8x.h" //#endif #include "LPC177x_8x.h" volatile uint32_t msTicks; void SysTick_Handler(void) { msTicks++; } __INLINE static void Delay (uint32_t dlyTicks) { uint32_t curTicks; curTicks = msTicks; while ((msTicks – curTicks) < dlyTicks); } __INLINE static void LED_Config(void) { LPC_GPIO1->FIODIR = 0xB0000000; /* LEDs PORT1 are Output */ } __INLINE static void LED_On (uint32_t led) { LPC_GPIO1->FIOPIN |= (led); /* Turn On LED */ } __INLINE static void LED_Off (uint32_t led) { LPC_GPIO1->FIOPIN &= ~(led); /* Turn Off LED */ } int main (void) { if (SysTick_Config(SystemCoreClock / 1000)) /* Setup SysTick Timer for 1 msec interrupts */ { while (1); /* Capture error */ } LED_Config(); while(1) { LED_On ((1<<18)); /* Turn on the LED. */ Delay (100); /* delay 100 msec */ LED_Off ((1<<18)); /* Turn off the LED. */ Delay (100); /* delay 100 msec */ } } |