Flash Magic Application Note 4 What to do if ISP Does Not Work Embedded Systems Academy 2003, All Rights Reserved

Similar documents
EPM900 - Overview. Features. Technical Data

Flash Magic GUI and Command Line Manual. Manual Revision 1.70

SCB-C08 USB to RS232/422/485 Converter

EARTH PEOPLE TECHNOLOGY. VISIPORT 2 USB To Serial Adapter User Manual

Dwarf Boards. DB100 : LPC USB bootloader

8051 General Purpose Board

MegaAVR-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer

PSIM Tutorial. How to Use SCI for Real-Time Monitoring in F2833x Target. February Powersim Inc.

RS 232 Interface. RS 232 is the Serial interface on the PC. Three major wires for the Serial interface: Transmit Pin 2 Receive Pin 3

3.1 I-7560 Pin Assignment and Specifications: Introduction

STEP X - Name of Step QUICK START GUIDE SP385A-R3, SP390A-R3 USB TO RS CONVERTER 24/7 TECHNICAL SUPPORT AT OR VISIT BLACKBOX.

USB485 USB to RS485 Converter Card

ARM HOW-TO GUIDE Interfacing GPS with LPC2148 ARM

How to connect. Go to Tools / Options / Port Settings (in PlusConfig software) and change the COM port to COM 3. Minelec PlusConfig How to connect

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

USB485. USB to RS485 Converter Card. User Manual for connecting with Windows Vista Version 1.01

Product Manual. USB to Optical Adapter Industrial Isolated RS- 232/422/485. Coolgear, Inc. Version 2.1 December 2018 Model Number: USB-COMi-Si-M

Firmware Reprogramming Guide

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

Introduction & Specifications of Hi-Speed USB to Serial Adapters

AN ELNEC EN ISP-HC08. Application note for In-System Programming of Motorola/Freescale HC08 microcontrollers

Supplement for module D041 incl. ATMega8 Prozessor

ReadMe.pdf for GWSetup, Version GageWay Interface Firmware, Version 2.45

ICD105A 1008 page 1/ r001 ICD105A. Industrial RS-232 to RS-422/485 Converter

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

Supplement for module D061 incl. ATMega128 Prozessor

HandsOn Technology -- HT-MC-02 MODEL: HT-MC-02

P89V51RD2 Development Board May 2010

VirtualSCADA VSU-485G USB to RS422/485 Isolated Converter User Manual

LM058 Bluetooth v2.0, v2.1 RS232 Serial Adapter - SMA Connector Standalone (With Embedded Bluetooth v2.0 / v2.1 Stack)

TRAINING GUIDE LEVEL 3 MODBUS WRITE IMPORT COMMAND

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

How2Use DT-51 AT89C51XXX BMS. By: IE Team. Picture1 The layout of DT-51 AT89C51XXX BMS

BARIX IO12. I/O to RS-485 Modbus converter for commercial interfacing, control and home automation applications PRO D UCT MANUAL. Version: 2.

User Guide. Date Apr BlueEva+C11/G2. Stollmann. E + V GmbH. User Guide

Manual 601: : USB/RS232. Specifications. Contents. Options

Select a Data Communication Interface

Commercial-grade Interface Converter User Manual

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

Installation Guide of Hi-Speed USB to Industrial Single RS-422/485 Adapter

PIC24 Bully Bootloader Documentation

USBG-8COM-PRO 8-Port USB to RS-232, 422, 485 Auto Setup Adapter Manual. Features & Specifications. Specifications

This is the procedure to use the Clone module as a serial converter: To enable communication you must set the following parameters in the drive.

UTS485 & ULOG485 USB Converter Owner's Manaul

ISOLATED RS-232 TO RS-422/485 CONVERTER

Easy Kit Board Manual

Wiring Section 3-3. NQ-Series communication ports support various types of (serial) communication.

ISDA/ISDA4 Protocol Driver Manual. Table of Contents

Introduction & Specifications of Hi-Speed USB to Industrial Dual Ports RS-422/485 Adapter

User Manual Revision: A04 June 23, QuEST Rail LLC.

Installation Guide of Hi-Speed USB to Industrial I/O Adapter

RM024 DVK USER GUIDE VERSION 1.2

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

PL2303TB USB-to-Serial Bridge Controller Demo Board User Manual

AN10258 How to use the LPC900 In-circuit programming (ICP)

Serial communication

This 4-port RS-422/485 Adapter is provided with an external switching power adapter in the package.

WiFi to RS-232 adapter user manual

19.1. Unit 19. Serial Communications

LM048 Bluetooth v2.0, v2.1 RS232 Serial Adapter Standalone (With Embedded Bluetooth v2.0 / v2.1 Stack)

UTS400 series USB Converter

CSCI 6907 PROJECT PROPOSAL LIGHTS OUT MANAGEMENT

D8000 SERIES QUICK START GUIDE

USB to RS-485/RS-422 Interface Converter. User Manual

BOARD LEVEL PRODUCTS GPIB<->RS-422/RS-485 INTERFACE BOARD

EASY219 / IEC CANopen Master / Slave

Integrity Instruments Application Notes. Release 1

The Atmel ATmega328P Microcontroller

Installation Guide of Hi-Speed USB to Octal RS-232/422/485 Adapter

User Guide Feb 5, 2013

USB-16COMi-M 16-Port RS-422/485 USB Serial Adapter User Manual. Features and Specifications. Power Supply

EasySYNC Ltd. USB to Serial Converters Manual

Installation Guide of Hi-Speed USB-to-Optically Isolated RS-422/485 Adapter

485DRCI. Industrial RS-232 to RS-422/485 Converter B&B ELECTRONICS PRODUCT INFORMATION. Specifications Serial Technology

TRP-C08. USB to RS232/422/485 Isolated Converter. User s Manual. Printed Sep.2014 Rev 1.4

USER S MANUAL. PH232Ex1. #1 RS-232 Serial Port to Ethernet, Terminal Server/Client. Doc No: PH232Ex1-UM-001 IPEX. (IP Electronix)

DFS/Cutter. Debugging Communication Problems

EasySYNC Ltd. USB to Serial Converters Manual

USB-COMi-TB USB to Industrial Single RS-422 / 485 Adapter Manual. Specifications and Features

BV511 Hardware Guide ByVac ByVac Revision 1.0

SAB-TFBGAxxx Quick Start Guide. This document applies to SAB-TFBGA100, SAB-TFBGA180, and SAB-TFBGA208.

ARDUINO UNO REV3 Code: A000066

Manual. Specifications. Contents. Options

Emulating an asynchronous serial interface (ASC0) via software routines

Volume 1 Hardware Manual

ET-BASE AVR (ATmega8535)

ZeptoBit Isolated USB-UART Adapter Datasheet

User Manual A08. User Manual

USB to Single RS-422/485 Adapter - with optical isolation and surge protection (USB-COMi-SI)

LM300 Manager User Manual. Document Version: 1.1 LM300 Firmware Version: Bluetooth Firmware Version:

MEV Limited USB232/485 INSTRUCTION MANUAL

Installation and operation manual ReciFlow Gas

CoolMaster Programmers Reference Manual (PRM)

EZL-200F Application Notes (003) Serial Interface (RS232/RS422/RS485)

INSTALLATION GUIDE Maxiflex P3e CPU M1262F

PACSystems* RX3i IC695CMM002 and IC695CMM004

AVR Standalone ISP Chip Copier Instructions

FW UPGRADE SPECIFICATION

Rotacam ASR58. User Manual

Transcription:

Flash Magic Application Note 4 What to do if ISP Does Not Work Embedded Systems Academy 2003, All Rights Reserved 1. Introduction This application note describes steps to take and items to check when In-System Programming does not appear to be working. The information contained in this application note has been drawn on several years of supporting Flash Magic and includes the common problems. 2. First Steps Ensure the crystal frequency entered is accurate. For example, if you are using 11.0592MHz, then enter 11.0592, not 11.0000 or 11. If you are using high-speed communications mode with the correct frequency entered, then try connecting with the feature turned off. Make sure the device is reset again into ISP mode if needed before attempting to connect. If you have the half-duplex communications feature turned on and you do not need it, then turn it off. It only slows down the serial communications. If you are using a baud rate higher than 9600, lower it to 9600, reset the device into ISP mode (if applicable) and try again. The baud rate at which you are able to successfully connect to the device depends on which device you are using, the crystal frequency you are using and how many clocks per cycle the device is configured for. If you are already using 9600 baud, or lowering to 9600 baud does not work, then try 4800 baud. If your crystal frequency is 6MHz or below, try the baud rates below 4800 baud. Ensure you have the correct device selected in Flash Magic. Some of the devices have very similar names. If you change the device then ensure you reset the device into ISP mode if applicable before trying again. Ensure the COM Port selected in Flash Magic is the correct one you are using. Check the datasheet and Philips Application Note AN461 for details of the requirements to place the device into ISP mode using hardware methods. Ensure the voltages on the necessary pins are at the expected levels. Ensure the power supply to the device is stable, within the allowed range, and free from glitches. Ensure your ground is stable and it is not floating. A floating ground will cause devices to behave erratically or incorrectly. 3. Device Specifics 3.1 89C51Rx2+, 89C51Rx2Hxx, 89C51Rx2xx, 89C5166x Philips presently produces two versions of the Rx2 family: 89C51Rx2Hxx - second generation Page 1

Page 2 89C51Rx2xx - third generation Note that they are differentiated by the presence or lack of a H after the 2. These devices are very similar but it is important that the correct one you are using is selected in Flash Magic, as they are not identical. Check the part number printed on the device itself to see if the H is present or not. All these devices except the 89C51Rx2xx must have both P2.6 AND P2.7 pulled high during reset when attempting to enter ISP mode. Failure to do this results in anything from partial functioning of the bootloader to complete non-functioning of the bootloader. 3.2 89LPC932 If the Keil MCB900 board is being used, then ensure the power is removed and reapplied after changing the jumpers. Failure to do this could cause the device to enter an unknown state. Read Flash Magic Application Note 3 regarding ISP entry when using the 89LPC932. 4. Additional Steps 4.1 Terminal Test This is a simple and very useful test, which attempts to narrow down where the problem lies. Try connecting to the device using Hyperterminal or any other terminal program, such as Tera Term Pro. Hyperterminal comes with most versions of Windows and is usually available from the Start Menu, under Start Programs Accessories Communications. If it does not appear on the Start Menu, then you may need to install it. The method to do this varies between different versions of Windows, but in general: Click on Start Settings Control Panel Choose Add/Remove Programs Click on Windows Components or similar Search for the checkbox for Hyerterminal and check it. You may need to keep selecting categories and clicking on the Details button to view more choices. Once you have a terminal program running, select the COM Port you are using and create a connection with the following configuration: 8 bits No parity One stop bit No handshaking or flow control 9600 baud or 4800 baud No local echo (if available) If you are using the Start BootROM feature, then send the Start BootROM command your device expects. If the command and/or the full stop response are not echoed back, then the problem potentially lies in your application code. Next: Reset the device into ISP mode if applicable.

Send a single uppercase U. If the device fails to echo the uppercase U back to the terminal program then there is a COM Port, serial cable or device problem. Next check using an oscilloscope: If the U is not arriving at the RxD pin of the device then it is a COM Port or serial cable problem. If the U is arriving, but no U is leaving the TxD pin in response, then the device is not executing the bootloader for some reason. Check how you are placing the device into ISP mode. If the U is leaving the TxD pin of the device but not arriving at the terminal program, then it is a COM port or serial cable problem. If the baud rate of the U is not the baud rate selected in the terminal program, then either the PC COM port is faulty, or there is something like opto-isolators affecting the baud rate. If the device echoes back the U to the terminal program then try sending some ISP commands to the device and seeing if they are echoed back. If any response from the device takes longer than about 10 seconds, then perform the Last Resort steps below. If the device echoes back the U and all ISP commands and responses then the problem likely lies in Flash Magic somewhere. Perform the Last Resort steps below. 4.2 Switching Hardware If the above steps do not give an indication where the problem lies, try using a different device, different COM Port or different PC, with a different version of Windows. 4.3 Hardware ISP Entry using DTR and RTS If you are using the COM Port control signals DTR and RTS to place the device into ISP mode, look at the signals on an oscilloscope and compare them with the waveforms shown in Flash Magic Application Note 1. If there are differences, check your circuit. Ensure the timing for T1 is at least 50ms and T2 is at least 100ms. Try increasing both values to 200ms and 300ms respectively. Try temporarily using switches or jumpers to place the device into ISP mode, rather than using DTR and RTS. Turn off the option in Flash Magic to use DTR and RTS. 4.4 Timeouts Another cause of problems could be that your device is taking a little longer to respond than Flash Magic allows. This problem has been most frequently observed during device erasing or when using some types of USB to RS232 converters or cables. To increase the timeouts in Flash Magic go to the Options menu, choose Advanced Options and click on the Timeouts tab. Check "Use my timeouts for ISP operations" and increase the values displayed in the boxes. Keep increasing the timeouts one or two seconds at a time and retesting. Note that increasing the timeouts has the downside that if something should go wrong during an ISP operation, or if you start Flash Magic with no device connected, then you will have a longer wait before Flash Magic gives up trying. Page 3

The command line also supports the TIMEOUTS directive to allow the timesouts to be increased. See the manual for details of how to use the directive. 5. Last Resort If all of the suggestions in this application note have failed to work, then the last resort is to generate a debug file and send it along with some additional information to Embedded Systems Academy. The following steps describe how to generate a debug file for both the Command Line and Windows versions of Flash Magic. Windows: Page 4 Start Flash Magic When the splash screen appears press F1 to turn the debug mode on. There will be no indication at this point that anything has changed. When the Flash Magic window appears it will say [Debug] at the top indicating the debug mode is turned on. Perform the necessary steps to generate an error message in Flash Magic. If you cannot seem to get anything to work, then simply choose Read Security Bits from the ISP menu Press F2 to turn off the debug mode. Debug mode can be turned on at any time by pressing F1 again. The debug file is always appended. Command line: Use the following directive. It can only be used once on the command line or in a command file. There are no parameters. DEBUG The debug file generated can be found at C:\flashmagic.fmd Email this file to support@esacademy.com along with the following information: Exact text of any error message in Flash Magic Exact name of the device being used Exact crystal frequency The baud rate being used The number of clocks per cycle for devices where it can be changed The details of all tests performed and the results Any additional information that you feel might be helpful Delete the debug file. It is important that all the information listed above is included for the fastest possible resolution to the problem. Note that the debug file may contain and encoded version of your entire hex file or part of it, if you generated it while attempting to program the device. If sending your entire hex file or part of it is a concern then you can either: Use a different hex file and repeat the debug file generation steps

Page 5 Contact us regarding signing an NDA our only concern is solving any problems with Flash Magic