8000 Error programming PIC Clicker · Issue #8 · thotypous/mikroe-uhb · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Error programming PIC Clicker #8
Open
@MinnML

Descr 6AA0 iption

@MinnML

Hello,
I am using a PIC Clicker from MikroElektronika with PIc18F47J53 processor.
I could easily use the tool to get the device ifo:

McuType: 'PIC18FJ'
EraseBlock: 0x400
WriteBlock: 0x40
BootRev: 0x1300
BootStart: 0x1e000
DevDsc: 'PIC Clicker'
McuSize: 0x1fff8

But when I tried to load some sample code even the hex files compiled by MikroElektronika, I got this error:

DEBUG:mikroeuhb.hid.linux:opening device vendor=1234, product=1
INFO:mikroeuhb.hid.linux:USB device 1234:0001 plugged
INFO:mikroeuhb.hid.linux:USB ID matches the expected one
DEBUG:mikroeuhb.device:send cmd: stx, cmd=INFO, addr=0x00000000, counter=0x0000
DEBUG:mikroeuhb.device:recv data: 2b010308f8ff01000300040440000500130600e001000750494320436c69636b65720000000000000000005c58301aae1189d1225e1a710fbcb1e07a2a1ffb0f
McuType: 'PIC18FJ'
EraseBlock: 0x400
WriteBlock: 0x40
BootRev: 0x1300
BootStart: 0x1e000
DevDsc: 'PIC Clicker'
McuSize: 0x1fff8

DEBUG:mikroeuhb.device:send cmd: stx, cmd=BOOT, addr=0x00000000, counter=0x0000
DEBUG:mikroeuhb.device:recv cmd: stx, cmd=BOOT, addr=0xfff80803, counter=0x0001
DEBUG:mikroeuhb.device:send cmd: stx, cmd=SYNC, addr=0x00000000, counter=0x0000
DEBUG:mikroeuhb.device:recv cmd: stx, cmd=SYNC, addr=0xfff80803, counter=0x0001
DEBUG:mikroeuhb.devkit:data trespassing block limits: addr=0x3f4, write_len=0xc
DEBUG:mikroeuhb.devkit:data trespassing block limits: addr=0x7f8, write_len=0x8
DEBUG:mikroeuhb.devkit:data trespassing block limits: addr=0xbfe, write_len=0x2
DEBUG:mikroeuhb.devkit:data trespassing block limits: addr=0xff8, write_len=0x8
DEBUG:mikroeuhb.devkit:data trespassing block limits: addr=0x13f8, write_len=0x8
Traceback (most recent call last):
  File "/usr/local/bin/mikroe-uhb", line 4, in <module>
    __import__('pkg_resources').run_script('mikroe-uhb==0.2', 'mikroe-uhb')
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 658, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 1445, in run_script
    exec(script_code, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/mikroe_uhb-0.2-py2.7.egg/EGG-INFO/scripts/mikroe-uhb", line 58, in <module>
    
  File "/usr/local/lib/python2.7/dist-packages/mikroe_uhb-0.2-py2.7.egg/EGG-INFO/scripts/mikroe-uhb", line 55, in main
    
  File "build/bdist.linux-x86_64/egg/mikroeuhb/device.py", line 136, in program
  File "build/bdist.linux-x86_64/egg/mikroeuhb/hexfile.py", line 28, in load
  File "build/bdist.linux-x86_64/egg/mikroeuhb/devkit.py", line 165, in write
  File "build/bdist.linux-x86_64/egg/mikroeuhb/devkit.py", line 134, in _write_phy
  File "build/bdist.linux-x86_64/egg/mikroeuhb/devkit.py", line 121, in _find_blk
IndexError: invalid block 120 at address 0x1fff8

Any clue on what might be causing this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0