LPCOpen and custom board with LPC4337

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPCOpen and custom board with LPC4337

1,364 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by HCTEK on Tue May 20 08:49:47 MST 2014
Hi,

first of all, I am quite new in the world of programming microcontrollers so if I say someting that does not make sense, please, let me know.

I have a custom board with a LPC4337 chip (http://www.wvshare.com/product/Open4337-C-Package-B.htm) and I have been testing it following the examples in LPCopen package for LPC Link 2. To program my board I use the LPC Link 2 and a custom made "converter" JTAG 20 pin to 10 pin.

From the documents that I have read here in LCPware and by searching in google, I was able to perform a blinky LED ("blinkyLED") using timers (this example was without LCPOpen and using the CMSIS libraries without custom modification).

Next I tried to use the LPCopen package. First, I modified the "board.h" file to basically configure the LEDs. In "board_sysinit.c" file I also change the "pinmuxing" for the board LEDs. Next, I create a LPCOpen C project, where I linked the board project. The  "main" file was the "systick.c" file in "periph_blinky" example for the LPC Link 2 board. When I try to debug the program It always give an error of "No source available 0x...."  (image "ide" and "ide2" ). I think tht the problem may be in the function "Chip_SetupXtalClocking" at "board_sysinit.c" file because if I put a breakpoint there, the program did not crash. Afterwards I resume and the error appear. I tried other examples and it always give me errors.

What I am doing wrong or what I need to change in my code?

All the files are attatched in the topic.

Best Regards

Original Attachment has been moved to: withLPCOpen.zip

Original Attachment has been moved to: blinkyLED.zip

Labels (1)
0 Kudos
Reply
4 Replies

1,220 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by TheFallGuy on Sun Dec 07 12:39:54 MST 2014
Would really help if you told what the error was.

Also, have you read
http://www.lpcware.com/content/faq/lpcxpresso/debug-design
0 Kudos
Reply

1,220 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by rnunes on Sun Dec 07 12:29:56 MST 2014
I bought this board and now I'm trying to program it in LPCXPresso IDE using a LPC LINK tooked from an embedded artists LPC1769 board. I've already connected all of the pins that I need, leaving 3.3V and EXTPOW disconnected (I'm powering the board through USB).

Also, I've connected DBGEN and TRST to a pull up 10k resistor.

When I try to debug in in LPCXpresso IDE it just blocks. Did you have any problem with that part? Thanks
0 Kudos
Reply

1,220 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by HCTEK on Wed May 21 01:49:01 MST 2014
thanks for your reply, the hard fault tips help me to find the problem. I change the clock initialization to setup the internal IRC.


0 Kudos
Reply

1,220 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by lpcxpresso-support on Tue May 20 23:26:00 MST 2014
In the first place, the following FAQ gives some tips about porting LPCOpen to your own board:

http://www.lpcware.com/content/faq/how-do-i-port-lpcopen-new-baord

{with other LPCOpen specific FAQs at http://www.lpcware.com/faq_filter/lpcopen}

With regards to your hard fault, the following may provide you with some useful tips for tracking down the source:

http://www.lpcware.com/content/faq/lpcxpresso/debugging-hard-fault

Regards,
LPCXpresso Support
0 Kudos
Reply