Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Apatbol

#1
Hello !


I have a USB-Dongle, a Derivative Board for 89LPC922 and 2 questions....


Question 1: Interface Configuration

In Flashmagic, in the frame "Step 1 - Communication"
What interface shall I choose ?
   For ISP -> "None (ISP)", or "FDI USB-Dongle" ?
   For ICP -> "FDI-USB-ICP" or "FDI USB-Dongle" ?


Question 2: Oscillator Configuration

The USB-Dongle has a 12 MHz oscillator, and my board has a 7,3728 MHz
oscillator.
In flashmagic, for the configuration of the oscillator, what should be
the value ?

Shall I put "12", or "7,3728" or "7.3728" ?
(more generally, if there is a decimal, what figure shall be used ? "."
or "," ?)



I haven't found the related answers on the forum, so it is why I try to
reach the forums.

Thanks !

Apatbol
#2
Dear All,

I'm currently making some circuits with 89LPC922 (these µC are completly new for me...).
For some of them, I can programm them via ISP once... then, no way to reprogram them..

As I have about 50 circuits to make, I try to understand why I am burning time and µC (meaning money)...

Hereafter is a summary of my understanding of ISP, and potential ICP solution to recover my 12 already burnt µC... (and not burn the following ones !).

According to the Datasheet of the LPC922, there is 3 ways to flash the µC:

Parrallel programming : Programmed or erased using the parallel method by using an EPROM programmer which supports the device.

ISP programming : Depending on the Boot Status Bit, after a reset, the execution jump to a bootloader (located at the Boot Vector).
This BootLoader (sort of small program) allow to write or erase in the memory of the µC. This boot loader is pre-programmed at the factory into the BootVector address (located in 1FH) and can be erased by the user. There is the possibility in Flashmagic to protect the chip against the erasure of this bootloader (at this point, my problems started... :-\).
The ISP function uses five pins (VDD, VSS, TXD, RXD, and RST).
To enter the ISP mode (= put BootStatus Bit at 1), 2 possibilities:
  - Pulses on RST entry (3 pulses method)
  - Break detect (7 pulses method)

ICP programming : It is a bit similar to ISP, but in this case we do not rely on a bootloader, but on a hardware function implemented in the µC. So whatever has been done with ISP, ICP should allow to recover (it is a kind of idiotproof mode..  ;D).
The used pins are : P0.4/PDA programming Data pin, P0.5/PCL programming clock pin, P1.5/RST ICP mode entry pin, VDD needed for ICP mode entry, VSS.

The solution ?

I have bought a nice USB-dongle from FDITeam (which does not work with W7-64 bits... obliged to re-install an old WinXP... :'().

According to what is written just above, I should be capable to enter ICP mode to reprogram the bootloader, the adress of the bootloader (BootVector, at adress 1FH), and also the program I want to flash...


My questions:
- Is my summary/reasonning correct (I hope it can help some other people...)
- Where can I find a bootloader ? (the hex file)

Some additions as  soon as I have reinstalled XP and tried the ICP mode with USB-Dongle !

Regards

Apatbol...