BasicMicro - Forums

www.basicmicro.com
It is currently Sat Feb 04, 2012 6:57 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Nano 40 programming question
PostPosted: Fri Aug 20, 2010 4:14 pm 
Offline
Citizen

Joined: Wed Aug 20, 2008 9:57 am
Posts: 27
Thanks to Basic Micro's fast shipping, I now have some Nano 40s, a USB programmer board, and a dev board.
I'm want to program the Nano 40 on my system board (not the dev board). I have a three pin header on the board to connect to the USB interface board.
There must be a sequence of power up to get the bootloader's attention.
Here is the way I envision changing code on my system board:

1. Power down my system
2. Connect USB interface to my 3 pin header
3. Run Studio
4. Power up my board

At this point I believe that Studio has told the bootloader that I want to reprogram the Nano 40 and it is standing by to accept code from Studio.

Now, I finish downloading code and I want the program to run. Do I just unplug the USB interface and the bootloader lets my program run? Or, do I have to power down my system, remove the programmer and then power up again to get the new code to run?

Ideally, like the old days of the ISP Pro, I would like leave the programmer connected and have the program automatically run at the end of download. This lets me quickly change code and see results without having to disconnect anything or cycle power.

Pete


Top
 Profile  
 
 Post subject: Re: Nano 40 programming question
PostPosted: Fri Aug 20, 2010 10:36 pm 
Offline
Site Admin
User avatar

Joined: Thu Mar 01, 2001 11:00 am
Posts: 784
Location: Temecula, CA
Not quite right. The nano programmers 3 pins are signal, reset and ground. So what happens is the nano programmer resets the Nano processor about 25ms before it tries to enter boot mode. If the programmer cannot reset the Nano chip it will never get into boot mode because the Nano chip only checks for attempts to enter boot mode for about 100ms after a reset.

As for running your code after programming, it should start running right away(ie about 100ms after reseting at the end of programming which is done automatically). You can leave the programmer attached or remove it at your convenience.

_________________
Nathan Scherdin
Basic Micro - Robotic Technology Evolved


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group

phpBB SEO