We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi!
I am a total newbie when it comes to ARM processors programming. Since I found out about this products I would like to know with what to start?
I though that for start I would get myself a MCB2370 board and the ULINK2 of the hardware but I don't know what is that I need of the software is MDK-ARM + RL-ARM all that I need or do I also need the DB-ARM package?
Thank you!
Regards, Uros
Uros; I second Alex's suggestion for the ARM specs. No. You do not need the DB-ARM package to support the MDK package. The MDK package is complete except for the target board. The eval board that you choose should have a ULINK or some other JTAG hardware support module for download and debug via JTAG. Most of your present questions might better be answered by Keil's sales people. Bradford
Thank you both for your input, now I have received my MCB2300 (with LPC2378) and a couple of books for ARM programming but I still have a couple of questions, hardware wise. I have been looking through the pinout list of the LPC2378 processor and noticed that for example UART3 RX/TX is on pin numbers 66,67 and 118,122.
How do I know to which pins I should connect my RS232 connector so I can use this port?
Also does this mean that for pins 66,67 to enable I would have to do PINSEL0 = 0x00000011;?
I know these are a complete newbie questions but that I am in ARM technology.
Thanks in advance for any answers!
Re, Uros
Since you are using the MCB2300 with the LPC2378, I suggest that you review the schematic and User's Guide. Both will be on the CD that you received with your Eval board. My reference is on the website at http://www.keil.com/arm/mcb2300/mcb2300-schematic.pdf. On Page 1 of the schematic, RS232 Com 0 connection is to pins 141 and 142. CAN 1 is the alternate function connected to pins 66 and 67. Com 1 is connected to pins 15 and 16. And lastly, CAN 2 is connected to pins 115 and 116. I do not find pins 118 and 122 but I just ran a quick look at the com ports. The user guide will show the jumper settings for the alternate functions if they are supported on your eval board. Most of the time the default jumper settings will get you operating quicker with the example programs. Just leave the jumpers on the factory defaults until you have run several of the example programs to understand the board operation. Bradford
Al,
thanks for fast response. I have gone through this, and I did find these connections (pins 122 and 118 are P4.28 and P4.29, on bottom right of page1 in the PDF). Or am I reading the schematics wrong? The thing that is confusing for ME is that if I put a connector on pins 66(P0.0/CAN_RX1/TXD3/SDA1) and 67(P0.1/CAN_TX1/RXD3/SCA1) I can use it either for a CAN connection OR a RS232(COM) connection, so I give up one or another? And how do I "tell" the application that the connector on that two pins is used for CAN or COM?
Yes, a pin can only be used for one thing at a time. All pins that have multiple functions also have a register that need to be initialized in your program to specify which of the alternative function the pin is expected to have.
In this case, there is two bits/pin to specify alternative functions. In the data sheet, you can find which values you should use. If the LPC23xx chips had been a bit better supported by the Keil environment (any time now...), then you would hav ebeen able to play around with all settings in the IDE, and then just copy the final values from the dialogs into your source code.