Search found 18 matches

by krkan
Tue Mar 08, 2011 1:33 pm
Forum: Everything ARM and LPC
Topic: Starting with ARM
Replies: 21
Views: 4687

Re: Starting with ARM

"2) I may have missed it, but the LPC2138 datasheet seemed a bit... missing in information. After dealing with PIC datasheets, where you can actually see how to initialize and use the internal "peripherals" (ADC, PWM, SPI, etc.). Where can I find this information?" First try to successfully compile ...
by krkan
Tue Mar 08, 2011 1:10 pm
Forum: Everything ARM and LPC
Topic: Ultimate IMU and rprintf()
Replies: 7
Views: 1620

Re: Ultimate IMU and rprintf()

And the baudrate is...?

What kind of oscillator are you using?

If you have an oscilloscope connect it to the UART Tx line. Try to send 0x55 or 0xAA pattern. Look at the waveforms and measure the duration of 1's or 0's. Calculate the baudrate from that value.
by krkan
Sun Feb 06, 2011 2:14 pm
Forum: Everything ARM and LPC
Topic: JTAG Not Working on Custom LPC2148 Board
Replies: 22
Views: 5078

Re: JTAG Not Working on Custom LPC2148 Board

I am right now working with one Cortex-M3 board and have forgot that there is no RC in LPC21xx. Sorry. Looked at the JTAG pinout, seems to be OK. Since you are using 12V power supply is it from some battery or power line adapter, or you are using step-up converter on the ARM-USB-OCD debugger? As a l...
by krkan
Sun Feb 06, 2011 1:17 pm
Forum: Everything ARM and LPC
Topic: JTAG Not Working on Custom LPC2148 Board
Replies: 22
Views: 5078

Re: JTAG Not Working on Custom LPC2148 Board

Just to eliminate possible problems with the external oscillator - have you tried to use the internal RC oscillator as a main clock source?
That way you can detect if there are any problems with XT2 crystal.
by krkan
Sun Feb 06, 2011 11:41 am
Forum: Everything ARM and LPC
Topic: JTAG Not Working on Custom LPC2148 Board
Replies: 22
Views: 5078

Re: JTAG Not Working on Custom LPC2148 Board

Is JP1 jumper set? Is it attached firmly to the pins? (Some time ago I had some problems with loose jumpers on one development board) Test microcontroller JTAG pins for short-circuits. Take a good look and try to find possible problems regarding soldering process.(Board was soldered by some automati...
by krkan
Fri Feb 04, 2011 11:50 am
Forum: OpenOCD
Topic: Bricked! Debugging LPC1313 with ARM-JTAG-EW
Replies: 3
Views: 1434

Re: Bricked! Debugging LPC1313 with ARM-JTAG-EW

Haven't worked with 13xx, but are you trying to debug the code that is loaded to the flash?

In that case try to connect to the serial bootloader and erase flash memory (and all the protection fuses that can be deleted that way).
by krkan
Sun Jan 30, 2011 2:02 pm
Forum: Everything ARM and LPC
Topic: LPC17xx uIP and Windows XP
Replies: 0
Views: 852

LPC17xx uIP and Windows XP

Recently have been playing with uIP on the Olimex LPC1766 board. I have used uIP examples from the FreeRTOS 6.1.0 and from the NXP port if CMSIS (dated June 18 2010). It seems that the FreeRTOS example (CORTEX_LPC1768_IAR) is sending all of its outgoing packets two times. Also if you are planning to...
by krkan
Thu Jan 27, 2011 7:36 am
Forum: OpenOCD
Topic: Help get Olimex ARM-USB-OCD to run on Eclipce.
Replies: 5
Views: 2711

Re: Help get Olimex ARM-USB-OCD to run on Eclipce.

Been there, done that... Lost a couple of days searching through forums, and then decided to actually read the user manual. :D You have to also take care about a couple of things. openOCD does not keep backwards compatibility with config scripts from its older versions. So, if you decide to use new ...
by krkan
Thu Jan 27, 2011 5:51 am
Forum: Everything ARM and LPC
Topic: i2c using lpc 2368
Replies: 3
Views: 2233

Re: i2c using lpc 2368

Declare I2CSIR function before trying to use it. Currently it is declared after, and that's why you have this error. Look here: http://opencbp.sourceforge.net/en_US.ISO8859-1/books/opencbook/func.prototypes.html#FUNC.EX.ADDR2 But also the rest of that code example looks seriously messed up. ------- ...
by krkan
Thu Jan 27, 2011 3:27 am
Forum: Everything ARM and LPC
Topic: i2c using lpc 2368
Replies: 3
Views: 2233

Re: i2c using lpc 2368

I am not using Keil compiler or IDE with ARM, but have been using it on 8051. So: 1.) You are trying to use something before it is declared in the code (I suppose that you are programming in C and not C++) 2.) Is VICVectAddr0 pointer to a function? 3.) Why are you calling I2CISR(); from the main? 4....
by krkan
Thu Jan 27, 2011 1:47 am
Forum: OpenOCD
Topic: Help get Olimex ARM-USB-OCD to run on Eclipce.
Replies: 5
Views: 2711

Re: Help get Olimex ARM-USB-OCD to run on Eclipce.

"interface" is used for specifying JTAG interface (hardware) that you are using. Take a look inside of the folder where you have installed openOCD. Are there any subfolders with names like "interface","target or "board"? If they exist, in there you'll find configuration scripts for the microcontroll...
by krkan
Thu Jan 27, 2011 1:31 am
Forum: Everything ARM and LPC
Topic: PHYTEC LPC3250 with OLIMEX ARM-USB_TINY and OPENOCD 4.0
Replies: 1
Views: 1152

Re: PHYTEC LPC3250 with OLIMEX ARM-USB_TINY and OPENOCD 4.0

Well it seems that you can not write to that memory after executing reset halt Something from the OpenOCD documentation (user guide http://openocd.berlios.de/web/?page_id=54 ) Once OpenOCD has entered the run stage,a number of commands become available. A number of these relate to the debug targets ...
by krkan
Mon Jan 24, 2011 11:24 am
Forum: Everything ARM and LPC
Topic: Question - Olimex examples and copyright
Replies: 2
Views: 645

Re: Question - Olimex examples and copyright

I have added it to my profile data, but you can also look here:
http://dimkoelectronics.wordpress.com

Yeah, blog, it's sooo 2005. :D
by krkan
Sat Jan 22, 2011 4:33 am
Forum: Everything ARM and LPC
Topic: LPC 1766STK and ARM-JTAG-EW problem
Replies: 14
Views: 5666

Re: LPC 1766STK and ARM-JTAG-EW problem

Yeah, after spending a couple of days in order to make ARM-USB-OCD work somewhat stable in combination with LPC1766 (with GCC and IAR), those commercial JTAG tools do not look so expensive now: :lol:
by krkan
Wed Jan 19, 2011 1:51 am
Forum: Everything ARM and LPC
Topic: LPC 1766STK and ARM-JTAG-EW problem
Replies: 14
Views: 5666

Re: LPC 1766STK and ARM-JTAG-EW problem

BTW, you can try to download programs into flash with a serial programmer (Flash Magic or some other) .
I have worked with IAR 6.10 and there is an menu option "Debug without downloading", so first download it over the serial connection and then debug with the JTAG.