Continue to Site

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.

  • 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.

Learning Atmel ARM micros

Status
Not open for further replies.
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
 

Attachments

  • Crossworks.JPG
    Crossworks.JPG
    107.2 KB · Views: 625
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.
 
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!
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top