Announcement

Collapse
No announcement yet.

[Defcon 18] Getting Started with Reflashing?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Defcon 18] Getting Started with Reflashing?

    I've installed Code Warrior, edited the firmware code within the IDE, and connected my badge. What do I do next? Whenever I try to run debug in CodeWarrior I get a ton of syntax errors (ones I know were there before). Also, I'm just confused as to what file gets flashed to the device.

    Anyone have a newbies guide to tinkering with the badge via software? I'm running the tools off the CD under Win XP on my netbook, so there should be no shenanigans there. I know the license for CW expires at the end of August, so I'd like to figure it out before then. :)

  • #2
    Re: Getting Started with Reflashing?

    Originally posted by abyssknight View Post
    I've installed Code Warrior, edited the firmware code within the IDE, and connected my badge. What do I do next? Whenever I try to run debug in CodeWarrior I get a ton of syntax errors (ones I know were there before). Also, I'm just confused as to what file gets flashed to the device.

    Anyone have a newbies guide to tinkering with the badge via software? I'm running the tools off the CD under Win XP on my netbook, so there should be no shenanigans there. I know the license for CW expires at the end of August, so I'd like to figure it out before then. :)
    This is the procedure I used -- I wasn't using debug mode at all, just building images and moving them to the badge.

    1) Read Joe's very important documentation (shows up in Processor Expert under CPUs, or in the User Code\DOC directory in the XML file, and give your code a once-over. In practice, I think you only need to check when you start, and when you uncheck "Freeze Generated Code". For example, I went through those steps when I added one of the clock beans.

    2) Open hyperterminal (or putty, or... whatever terminal you're using). Make a note of the existing COM ports.

    3) Remove the battery, very, very carefully. I found a narrow screwdriver near one of the gold terminals helped. It's very easy to pop the entire holder off the badge, and then you will be sad.

    4) Hold the two buttons and connect the USB to your netbook. You should see two solid red LEDs on the badge. You can let go now.

    5) Open hyperterminal again. Connect to the COM port that showed up when you connected the badge. Connect using 9600,8,None,1,Xon/Xoff.

    6) Send Text File, sending User Code\output\sdm_pROM_xRAM.elf.S. That's the .elf.S, not the other files ending in .S. Send Text File Again. I found that, unless I was really speedy, the first upload would fail. You can either send it again immediately or wait for the TX light to go off and send it then, and then it should finish and restart.

    Hope this helps!

    Comment


    • #3
      Re: Getting Started with Reflashing?

      Thanks, exactly what I needed. I'll give this a try shortly.

      Comment

      Working...
      X