Download - In System Programming Using TX & Rx _NXP Micro Controllers_ Flash Magic _ Win7_Hyperterminal
In System Programming using Tx & Rx
(Using FlashMagic tool)
Circuit
http://www.ece.ubc.ca/~jesusc/P89V51RD2_System.jpg
Schematic
• Flash Magic is a PC tool for programming flash based microcontrollers from NXP using a serial or Ethernet protocol while in the target hardware.
• Minimum Requirements:-• Windows NT/2000/XP/Vista• COM Port or Ethernet interface• 16Mb RAM• 10Mb Disk Space
Starting FlashMagic …..
Reset circuit options:
• If you want FlashMagic to reset your device then check it.
• Else if you want to go for manual reset then uncheck it. (Of course , for this , You should be having reset circuit)
Step1- Communications(1) ‘Select Device’ .. Select an appropriate one for you.
I selected 89V51RD2.
(2) ‘COM Port ’ Selection
• Now select COM Port which is available in your PC .
• Check it by following the steps for Windows7:-
• Go to ‘Device Manager’
• As you can see there’s one COM port available in my PC. So I can use COM1.
Caution:
• Mind well that other application isn’t using the COM1.
• E.g. If Hyperterminal is running , there’s possibility of it.
• Okay , Now we continue our set up of FlashMagic.
(3)‘Baud Rate’ …. Select an appropriate baud rate.
• If baud rate is high then you may get warning:
(4)‘Interface’…. ‘None’ option is for ISP.
Step2- Erase
Step3- Select Hex File
Step4- Options
Step5- Start!
• If you’re going for manual reset , you’ll get message:
-> So , You’re required to press reset switch now.
• Now your device is been programmed…. Bingo…..
• Wait , wait …. It’s this much straight forward if all things goes smoothly…. But….. you may get some errors. Like :-/
• Unable to connect at specific baud rate• Failed to read device signature.
• Visit:www.flashmagictool.com/autobaud
Many of your doubts may get solved.
Things to take care• Don’t forget turning on power supply.!• Don’t click on ‘YES’ when the message displayed:
‘Running the program may harm your device’. There’s chance to loose your motherboard also.
• Test your RS-232 doing loopback test :- Jumper pins 2 and 3 together then run Hyperterminal and see if you get an echo. If so, most likely your serial port and cabling are working fine.
-> Use LOW VALUE resistor in RESET circuit. High value resistance will make your device in reset mode all the time.
Windows 7 isn’t having hyperterminal , so ????• open any XP system & copy 4 following files :- 1)-C:\Program Files\Windows NT\HYPERTRM.EXE
2-C:\Windows\Help\HYPERTRM.CHM3-C:\Windows\Help\HYPERTRM.HLP4-C:\Windows\System32\hypertrm.dll
• Then open win7 system create a folder name of "HyperTerminal" under Program files & then paste 4 files.
• Create shotcut -"C:\Program Files\HyperTerminal\HYPERTRM.EXE"
• open short cut . Hyperminial is ready.
• References:• http://www.ece.ubc.ca/~jesusc/P89V51RD2_System.jpg• http://social.technet.microsoft.com/Forums/en/ITCG/thread/
9a378d29-8185-4494-acbd-42dbd2ab1594• www.flashmagictool.com/autobaud
• Thank you. - Suket Thakkar (6th Sem. ECE , Dharmsinh Desai University ,
Nadiad, Gujarat.)