This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

build stak+jtag ice

dear dudes!
this is my first post
so i want to show you how you can build this staff

1-first of all we will use the same schematic of jtag ice.

2-we will use jtag boot to upgrade our chap.

3-program your devise16 with boot.hex then start ide studio and from tools menu choose dev prog then find the upgrade.ebn in jtag ice folder of your bin studio.
for example C:\Program Files\Program\Tools\JTAGICE.

4-we will read back chal16 flash with another programmer and confirm the last code address in this example the address is 0x2d2d
then open the hex file with notepad and delete the line that start with

:103800000C942A1C0C94471C0C94471C0C94471CC9
and delete following lines till :00000001FF do not delete :00000001FF line and save the file.

5-once again program your chip first erase it and program it with new file.

6-we will set the start address of our firmware that i was written once
jtag last byte + some words
change the following line in makefile

AFSECTION = /section-start=code=0x2da0

7-then compile the code and program the chip without erasing it!

8-then we will use the following code in assembler(in asm folder) and set the fuse byte to SMALLSTART.
in this code we will decide to choose between this or jtag ice respect to pin.6
if pin==0 then start deice
else start jtag ice.

9-again we will program the chip without erasing it and using asm.hex.

10-in chip you can add a led to PORT for showing communications and pins is as follow
ack sack pin of chip16
mip mopa pin of prom
reset port of 16
led port.2 of 6
now you have a cool tool to use.

and do not forget that the crystal is 7.3728MHz

sorry with the complete code and schematic.

i have made this and posted it you can follow the link to donwload it.(you must be loged in and it's free to register).

by the way what is the meaning.