3050311118 发表于 2014-6-15 09:08:56

问下AVRDUDE的ISP下载能用在LGT上么?

可以的话 那真是太好了

goodcode 发表于 2014-6-15 12:21:29

用我的那个固件可以


#------------------------------------------------------------
# LGT8F0*A
#------------------------------------------------------------

part
    id               = "lgt8f08a";
    desc             = "LGT8F08A";
    stk500_devcode   = 0x70;
    avr910_devcode   = 0x76;
    signature      = 0x1e 0x93 0x07;
    pagel            = 0xd7;
    bs2            = 0xc2;
    chip_erase_delay = 10000;
    pgm_enable       = "1 0 1 01 1 0 0    0 1 0 10 0 1 1",
                     "x x x xx x x x    x x x xx x x x";

    chip_erase       = "1 0 1 01 1 0 0    1 0 0 xx x x x",
                     "x x x xx x x x    x x x xx x x x";

    timeout                = 200;
    stabdelay                = 100;
    cmdexedelay                = 25;
    synchloops                = 32;
    bytedelay                = 0;
    pollindex                = 3;
    pollvalue                = 0x53;
    predelay                = 1;
    postdelay                = 1;
    pollmethod                = 0;

    pp_controlstack   =
        0x0E, 0x1E, 0x0F, 0x1F, 0x2E, 0x3E, 0x2F, 0x3F,
        0x4E, 0x5E, 0x4F, 0x5F, 0x6E, 0x7E, 0x6F, 0x7F,
        0x66, 0x76, 0x67, 0x77, 0x6A, 0x7A, 0x6B, 0x7B,
        0xBE, 0xFD, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00;
    hventerstabdelay    = 100;
    progmodedelay       = 0;
    latchcycles         = 5;
    togglevtg         = 1;
    poweroffdelay       = 15;
    resetdelayms      = 2;
    resetdelayus      = 0;
    hvleavestabdelay    = 15;
    resetdelay          = 15;
    chiperasepulsewidth = 0;
    chiperasepolltimeout = 10;
    programfusepulsewidth = 0;
    programfusepolltimeout = 5;
    programlockpulsewidth = 0;
    programlockpolltimeout = 5;

    memory "eeprom"
      size            = 504;
      page_size       = 4;
      min_write_delay = 9000;
      max_write_delay = 9000;
      readback_p1   = 0xff;
      readback_p2   = 0xff;
        read            = "1   0   1   0      0   0   0   0",
                        "0   0   x   x      x   x   xa8",
                        " a7a6a5a4   a3a2a1a0",
                        "o   o   o   o      o   o   o   o";

        write         = "1   1   0   0      0   0   0   0",
                        "0   0   x   x      x   x   xa8",
                        " a7a6a5a4   a3a2a1a0",
                        "i   i   i   i      i   i   i   i";

        mode                = 0x04;
        delay                = 20;
        blocksize        = 128;
        readsize        = 256;
      ;
    memory "flash"
      paged         = yes;
      size            = 8192;
      page_size       = 64;
      num_pages       = 128;
      min_write_delay = 4500;
      max_write_delay = 4500;
      readback_p1   = 0xff;
      readback_p2   = 0x00;
      read_lo         = "0   0   1   0    0   0   0   0",
                        "0   0   0   0a11 a10a9a8",
                        " a7a6a5a4   a3a2a1a0",
                        "o   o   o   o    o   o   o   o";

      read_hi         = "0   0   1   0    1   0   0   0",
                        "0   0   0   0a11 a10a9a8",
                        " a7a6a5a4   a3a2a1a0",
                        "o   o   o   o    o   o   o   o";

      loadpage_lo   = "0   1   0   0      0   0   0   0",
                        "0   0   0   0      x   x   x   x",
                        "x   x   xa4   a3a2a1a0",
                        "i   i   i   i      i   i   i   i";

      loadpage_hi   = "0   1   0   0      1   0   0   0",
                        "0   0   0   0      x   x   x   x",
                        "x   x   xa4   a3a2a1a0",
                        "i   i   i   i      i   i   i   i";

      writepage       = "0   1   0   0      1   1   0   0",
                        "0   0   0   0    a11 a10a9a8",
                        " a7a6a5   x      x   x   x   x",
                        "x   x   x   x      x   x   x   x";

        mode                = 0x21;
        delay                = 10;
        blocksize        = 64;
        readsize        = 256;
      ;

    memory "lfuse"
      size            = 1;
      min_write_delay = 2000;
      max_write_delay = 2000;
      read            = "0 1 0 10 0 0 0   0 0 0 00 0 0 0",
                        "x x x xx x x x   o o o oo o o o";

      write         = "1 0 1 01 1 0 0   1 0 1 00 0 0 0",
                        "x x x xx x x x   i i i ii i i i";
      ;

    memory "hfuse"
      size            = 1;
      min_write_delay = 2000;
      max_write_delay = 2000;
      read            = "0 1 0 11 0 0 0   0 0 0 01 0 0 0",
                        "x x x xx x x x   o o o oo o o o";

      write         = "1 0 1 01 1 0 0   1 0 1 01 0 0 0",
                        "x x x xx x x x   i i i ii i i i";
      ;

    memory "lock"
      size            = 1;
      min_write_delay = 2000;
      max_write_delay = 2000;
      read            = "0 1 0 11 0 0 0   0 0 0 00 0 0 0",
                        "x x x xx x x x   x x o oo o o o";

      write         = "1 0 1 01 1 0 0   1 1 1 xx x x x",
                        "x x x xx x x x   1 1 i ii i i i";
      ;

    memory "calibration"
      size            = 4;
      read            = "0011   1000   00xx   xxxx",
                        "0000   00 a1 a0   oooo   oooo";
      ;

    memory "signature"
      size            = 3;
      read            = "0011   0000   xxxx   xxxx",
                        "xxxx   xx a1 a0   oooo   oooo";
      ;
;

avrdude.conf

3050311118 发表于 2014-6-17 04:36:05

goodcode 发表于 2014-6-15 12:21
用我的那个固件可以




avrdude.conf   改成你这样就可以了么

LGT 发表于 2014-6-17 10:49:16

可以支持avrdude, 但需要配合SWDICE_mkII调试器下载程序。
LGT8F88A:avrdude -cjtag2isp -pm88 -Pusb -Uflash:w:rom.hex:i
LGT8F08A:avrdude -F -cjtag2isp -mp162 -Pusb -Uflash:w:rom.hex:i

goodcode 发表于 2014-6-17 12:49:38

我那玩意也成{:lol:}
avrdude -p lgt8f08a -c usbasp -u -U flash:r:"R:/flash.bin":r

avrdude -p lgt8f08a -c usbasp -U flash:w:"R:/test_firmware.hex":i
avrdude -p lgt8f08a -c usbasp -U flash:w:"R:/大文件例子数据.hex":i

avrdude -p lgt8f08a -c usbasp -U eeprom:r:"R:/eeprom.bin":r
avrdude -p lgt8f08a -c usbasp -U eeprom:w:"R:/eeprom1.bin":r

avrdude -p lgt8f08a -c usbasp -U fuse:r:0x00:m

malsvent 发表于 2014-6-29 13:07:34

goodcode 发表于 2014-6-17 12:49
我那玩意也成
avrdude -p lgt8f08a -c usbasp -u -U flash:r:"R:/flash.bin":r



LGT8F08A限定啊{:lol:}

mybadthing 发表于 2014-8-29 10:51:25

很好的论坛!!!!!!
页: [1]
查看完整版本: 问下AVRDUDE的ISP下载能用在LGT上么?