go_away

Author Topic: Axon not working?  (Read 971 times)

0 Members and 1 Guest are viewing this topic.

Offline emosemanTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
Axon not working?
« on: August 10, 2009, 10:08:40 PM »
I just got done getting my USB Tiny put together and loaded the Axon 1.05 source, and used the blinking led example for the control.c:

void control(void)
{
  int i;
  
  PWM_Init_timer1_LED(8);
  PWM_timer1_On_LED();
  while (1)
  {
    for (i=110; i<255; i++)
    {
      PWM_timer1_Set_LED(i);
    }
    for (i=255; i> 110; i--)
    {
      PWM_timer1_Set_LED(i);
    }
  }
}

The green led never turns off...

In the Axon.c code the method calls should turn the green status led off after initialization, but it is never turning off.  So I'm assuming it is never completing initialization, but I don't see anywhere in the initialization code that has a condition to wait.

How can I debug this thing?  Is there anyway to get feedback using the isp?

I just loaded a new version of the code after removing the LED_on method call and after the code is done being written to the board (i.e. make program) the green status led just pops on and that's it no blinking or anything.

I'm out of ideas... :)

Well maybe not entirely...

I just tried loading the axon_test.hex from the site and it loads and verifies just fine, then the green status led turns on solid, but after a few seconds there is a blink.  It isn't much, but at least there is some change! :)

Now I'm out of ideas again...

--
Evan
« Last Edit: August 10, 2009, 10:14:15 PM by emoseman »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,663
  • Helpful? 169
    • Society of Robots
Re: Axon not working?
« Reply #1 on: August 12, 2009, 01:19:24 PM »
Use the latest code, then do this:
http://www.societyofrobots.com/robotforum/index.php?topic=8749.msg68432#msg68432

sorry, bug fixes sometimes create new bugs . . .

Offline emosemanTopic starter

  • Jr. Member
  • **
  • Posts: 22
  • Helpful? 0
Re: Axon not working?
« Reply #2 on: August 12, 2009, 08:53:26 PM »
All is well again!

No need to apologize!  Your code saves me and others huge amounts of time, thank you for putting it  all together.

--
Evan

 


Get Your Ad Here

data_list