Tutorial: Starting out with Hammer

  1. Category
    Introduction
    Views
    127,500
    Replies
    8
     

    Starting out with Hammer

    Difficulty
    Beginner
    Estimated Time
    10 - 30
    Skills Required
    Knowledge of Linux (beginner to intermediate)
    Parts Required
    TinCanTools Hammer Kit
    Tools Required
    Working Linux system
    Starting out with a new microcontroller can be daunting and very overwhelming. I've experienced this feeling as I start out with embedded systems using ARM7 (NXP LPC2148) and ARM9 (Hammer, Samsung S3C2410A) microcontrollers. So here is a tutorial on how to get started with Hammer.

    Hammer runs full Linux with kernel 2.6.22 or later. To start out with Hammer, All development tools are available for Linux only at this time, so it is expected that you already have experience with Linux. If you don't have experience with Linux, you will need to start learning it if you want to do serious work with embedded systems like Hammer. Get one of the LiveCDs that many Linux Distributions are offering now, such as Knoppix, Kubuntu, Ubuntu, Fedora, etc

    I strongly suggest getting the complete Hammer Kit.I know it is more expensive than just getting a Hammer by itself, but believe me, you will be thankful for getting the whole kit. There will not be any other parts you will need to purchase. The kit is complete, and even includes a wall power supply. You also get the Flyswatter JTAG unit, which can also be used with other ARM7/ARM9 processors wth the appropriate cable. With other processors, I have always had to piece things together to get everything I need, but this is not true with the Hammer Kit - everything you need is included and guaranteed to be compatible with the Hammer in all ways.

    You will also find more information and tutorials on the official Hammer Wiki, which is a work in progress.

    Hammer comes preprogrammed with Linux and kernel 2.6.22 or later, so you will be able to do some stuff right out of the box.

    So, let's get started!

    1) Unpack your Hammer Kit and inventory the contents to besure you have everything.

    You should have the following:

    • Hammer: Samsung S3C2410A ARM9 CPU board in a 40-pin DIP package.
    • Hammer Carrier: prototyping board designed for use with the Hammer CPU board.
    • Flyswatter: USB based JTAG programmer for the Hammer CPU board.
    • [email protected] Power Supply: 5V power supply for the Hammer Carrier board.
    • USB Cable A to B: USB cable for the Flyswatter.
    • RS232 Serial Cable – serial cable to connect the Hammer Carrier to a PC/terminal
    • JTAG ribbon cable (14 pin - 2 x 7, length = 8 inches)
    • Hammer Kit CD.

    2) Connect the AC adapter to a power outlet and plug the barrel connector on the other end into the Hammer Carrier. The power light on the board should light up. If the power light doesn't light up, unplug everything very quickly!

    3) Connect the included RS-232 serial cable from a serial port on your PC to the DB9 connector on the Hammer Carrier Board. The default speed is 115200 Bps, 8 bits, no parity, so make sure your PC serial port is setup properly.

    4) Press CR (RETURN) on your keyboard and you should get a "Hammer login:" prompt.

    If you do not see the "Hammer login: prompt, there is something wrong and some basic troubleshooting will be required.

    5)There are no password protected accounts so just enter "root" and press CR to login. You should now be logged in to Hammer.

    6) Enter "ls -l" (no quotes) and press CR (RETURN or ENTER) on your keyboard. You should see a directory listing.

    Once you have a connection with Hammer, you can use basic Linux commands. You won't be able to do a lot with Hammer at this point because you have not configured it for what you want to do. This will be covered in later pages.

    I hope this helps you get started with Hammer, and I will update this as required to clarify any points that are not clear.

    (Page 1 of 2)
    Attached Files
    • buildroot01
    • buildroot02
    I can handle complexity. It's the simple things that confound me.
    Do everything in moderation, ESPECIALLY, moderation..
    Sometimes the only way to win, is not to play.. -- Stephen Falken


Replies to Tutorial: Starting out with Hammer
  1. Join Date
    Sep 2006
    Location
    Carol Stream, Illinois
    Posts
    1,695

    Re: Starting out with Hammer

    nice tutorial Dale!

    I'm not too sure I fully understand the steps at the end of the first page though... Do I connect the hammer to a computer, or do I connect the monitor and keyboard to the hammer? Could you clarify this a bit in your tutorial?

    thanks

    �In the long history of humankind (and animal kind, too) those who learned to collaborate and improvise most effectively have prevailed�
    - Charles Darwin
        

  2. Re: Starting out with Hammer

    Quote Originally Posted by Alex View Post
    nice tutorial Dale!
    Thanks!

    Quote Originally Posted by Alex View Post
    I'm not too sure I fully understand the steps at the end of the first page though... Do I connect the hammer to a computer, or do I connect the monitor and keyboard to the hammer? Could you clarify this a bit in your tutorial?
    Take a look now. I did make some changes and additions to the first page.

    8-Dale
    I can handle complexity. It's the simple things that confound me.
    Do everything in moderation, ESPECIALLY, moderation..
    Sometimes the only way to win, is not to play.. -- Stephen Falken
        

  3. Join Date
    Sep 2006
    Location
    Carol Stream, Illinois
    Posts
    1,695

    Re: Starting out with Hammer

    awesome Dale, thanks! It totally makes sense now.

    Sometimes I just wish I had extra time to strictly learn more about Linux and embedded systems. I can't wait to read more of your Linux and embedded tutorials

    �In the long history of humankind (and animal kind, too) those who learned to collaborate and improvise most effectively have prevailed�
    - Charles Darwin
        

  4. Re: Starting out with Hammer

    Quote Originally Posted by Alex View Post
    awesome Dale, thanks! It totally makes sense now.

    Sometimes I just wish I had extra time to strictly learn more about Linux and embedded systems. I can't wait to read more of your Linux and embedded tutorials
    Thanks very much! I am still having a terrible time getting pictured added with thumbnails. I just can't seem to do it right for some reason.

    8-Dale
    I can handle complexity. It's the simple things that confound me.
    Do everything in moderation, ESPECIALLY, moderation..
    Sometimes the only way to win, is not to play.. -- Stephen Falken
        

  5. Join Date
    Sep 2006
    Location
    Carol Stream, Illinois
    Posts
    1,695

    Re: Starting out with Hammer

    Basically what it boils down to is to never use the IMG button in the toolbar (). I know it's tempting and really easy to use, but if you want thumbnails to be created, this method will not work.

    I believe there are two options now:

    If you use the "Manage Attachments" button, and add your images that way, then the system will automatically create thumbnails for you.

    Or, just try to put the link to your image directly in the post/thread/tutorial and this will happen:

    http://www.trossenrobotics.com/images/logos/logo100.jpg

    �In the long history of humankind (and animal kind, too) those who learned to collaborate and improvise most effectively have prevailed�
    - Charles Darwin
        

  6. Join Date
    Apr 2008
    Location
    Sacramento, CA, USA Area
    Posts
    5,341

    Re: Starting out with Hammer

    The link method is handy because you can embed the images in the text, whereas the "manage attachments" just crams 'em all on the end.
        

  7. Join Date
    Sep 2006
    Location
    Carol Stream, Illinois
    Posts
    1,695

    Re: Starting out with Hammer

    The link method is handy because you can embed the images in the text, whereas the "manage attachments" just crams 'em all on the end.
    No, it doesn't. It only does that if you don't do anything with the attached images.

    Once you attach images (using "manage attachments"), they are all accessible using the paperclip icon () in the toolbar. All you have to do is put your cursor wherever you want the image to appear, click the paperclip icon, which will bring up a dropdown box, then select the image you would like to show at that spot in your thread/post/tutorial and bam

    �In the long history of humankind (and animal kind, too) those who learned to collaborate and improvise most effectively have prevailed�
    - Charles Darwin
        

  8. Join Date
    Apr 2008
    Location
    Sacramento, CA, USA Area
    Posts
    5,341

    Re: Starting out with Hammer

    [good-natured sarcasm mode]
    Ahh! The ol' "paper clip icon". Now that's an intuitive interface. I always use a physical paperclip to embed images directly within my printed documentation. I guess the "glue stick icon" was taken? How about the "hot glue gun" icon?
    [/sarcasm]

    I stand/sit corrected, thanks! I didn't realize that. I think copy/paste link will be more intuitive for me and probably get used more - but it's good to know how it works, thanks!
        

Closed Tutorial