1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Learning Atmel ARM micros

Discussion in 'ARM' started by SimonB, Sep 20, 2009.

  1. SimonB

    SimonB New Member

    Joined:
    Sep 20, 2009
    Messages:
    15
    Likes:
    0
    Ahhhhhhhhhhhhh!:mad::mad::mad:

    The PDSR register still does not toggle. Attached is a screenshot showing this point....

    I have compiled all the startup files and the PIO and PMC registers are set properly. Ports still not responding..

    Any ideas....?

    Simon
     

    Attached Files:

  2. DirtyLude

    DirtyLude Well-Known Member

    Joined:
    Aug 5, 2003
    Messages:
    1,904
    Likes:
    56
    Location:
    Toronto, Canada
    I have no idea what the 'Autos' window does. What does the Registers window say below it for PIOA?

    Otherwise, if those are correct watch's something is off with your hardware. Those 0xcdcdcdcd values should not be there at all. Most of those registers like PIO_MDSR are hardwired to default to 0x00000000 on reset. The fact that you haven't touched them and they are reporting non-reset values means there's something wrong.
     
  3. SimonB

    SimonB New Member

    Joined:
    Sep 20, 2009
    Messages:
    15
    Likes:
    0
    It now works!

    I have a confession to make that might seem very obvious to you. With all the other micros I have played with (PICs, 8051, 68000 and some others) you can step through the code without needing to connect to the hardware.

    It looks like the ARM is different - although I did have the hardware connected when evaluating with the IAR platform. I need to look more into this.

    With the Crossworks compiler, it took some effort to get the compiler pointing to the right J-LINK files, but now it works and my LED is flashing under compiler control.

    I really appreciate your help and patience with getting me through this. Now I have overcome the simple (read: stupid) stuff, hopefully I can move forward a bit faster!
     

Share This Page