Recognition Problem

Discussion to talk about software related topics only.
jokes304
Posts: 23
Joined: Wed Jun 02, 2010 12:13 pm

Recognition Problem

Post by jokes304 »

My device was working fine a few minutes ago, but I tried to send my program to it and for some reason it can not locate the device. It can not find it anywhere. Is there a way to hard reset the device to before I reloaded the program on to it?
v8dave
Posts: 333
Joined: Thu Dec 31, 2009 8:31 pm

Re: Recognition Problem

Post by v8dave »

This sounds like you have not included the AUTOUPDATE feature when you created your application. I did this the first time too. To allow auto update over Ethernet you have to include this in your software! You can select this from the Project create wizard whne creating a new application.

BUT, as you have already lost this connection you need to create your application with this or do what I did and create a new DUMMY project from the wizard and include the AUTOUPDATE option. Then compile that programme. Now you have to use the serial debug port to access the monitor. When it boots up, it will show something like Waiting 2 seconds to start "A" to abort. Press A when you see this and now you can select the option to upload your programme to flash. Type HELP for a list of menu commands. Send the small DUMMY programme you just created as this will likely be smaller than you main application and will upload much faster. Use MTTY to upload your file.

I found out about all this purely by trying it out before I spotted some help on here about it but I can't remember where it is. Someone else did the same thing with their Netburner!

Good luck
Dave...
jokes304
Posts: 23
Joined: Wed Jun 02, 2010 12:13 pm

Re: Recognition Problem

Post by jokes304 »

The program has the autoUpdate included and was working before this happened. I edited the program like normal to advance my work and now it doesn't work.
rsg
Posts: 54
Joined: Thu May 15, 2008 5:36 am

Re: Recognition Problem

Post by rsg »

You must also make sure you call it - by any chance, did you delete commented line from the following snip-it?

Code: Select all

  // Set up networking, etc.
  InitializeStack();
  if (EthernetIP == 0)
    GetDHCPAddress();
  OSChangePrio(MAIN_PRIO);
  EnableAutoUpdate();    // <<---  Is this still in your app startup?
  StartHTTP();
  EnableTaskMonitor();

#ifndef _DEBUG
  EnableSmartTraps();
#endif
jokes304
Posts: 23
Joined: Wed Jun 02, 2010 12:13 pm

Re: Recognition Problem

Post by jokes304 »

No, it is still there. Thats why I am so confused.
jokes304
Posts: 23
Joined: Wed Jun 02, 2010 12:13 pm

Re: Recognition Problem

Post by jokes304 »

I just tried to do what you said through MTTTY, but could not even get it to abort. It was not taking any input from my keyboard.
v8dave
Posts: 333
Joined: Thu Dec 31, 2009 8:31 pm

Re: Recognition Problem

Post by v8dave »

That's strange. The boot loader should be working and detect the A. You are sending CAPITAL A as the lowercase a does not work on my unit.

I have found that I had to set the stop bits to 2 to get it to work before. Give that a try too.

Dave...
jokes304
Posts: 23
Joined: Wed Jun 02, 2010 12:13 pm

Re: Recognition Problem

Post by jokes304 »

I tried sending a caps locked 'A' and just using the shift key. Neither work. I don't know what I did to the MOD5234. Thanks for the idea on the stop bits, but that too did not work.
rnixon
Posts: 833
Joined: Thu Apr 24, 2008 3:59 pm

Re: Recognition Problem

Post by rnixon »

On my dev board the UART0 RX signal can come from the USB or DB9 connector. Transmit always works to both ports, but you can only have one RX connected or they will fight. So make sure you have the correct RX jumper setting for the serial port you are using.
jokes304
Posts: 23
Joined: Wed Jun 02, 2010 12:13 pm

Re: Recognition Problem

Post by jokes304 »

Nothing I try is working. I do not know what is wrong with my device. Is there any way to manually reset and clear the device?
Post Reply