MTB error while trying to program/Debug the blinky example from guide

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
SKUK
Employee
Employee
10 sign-ins 10 questions asked 5 questions asked

I have followed all steps from guide but getting below error while trying to program/Debug the project. I have pyOCD version=0.21 and Python version (2.7.14) and lib usb in

folder of python .exe. All my installations are 32 bit. What could be going wrong?

0000649:INFO:board:Target type is cy8c6xxa

0000687:INFO:dap:DP IDR = 0x6ba02477 (v2 rev6)

0000697:INFO:ap:AP#0 IDR = 0x84770001 (AHB-AP var0 rev8)

0000717:INFO:ap:AP#1 IDR = 0x84770001 (AHB-AP var0 rev8)

0000726:INFO:ap:AP#2 IDR = 0x24770011 (AHB-AP var1 rev2)

0000736:INFO:rom_table:AP#0 ROM table #0 @ 0xf1000000 (designer=034 part=102)

0000746:INFO:rom_table:AP#1 ROM table #0 @ 0xf0000000 (designer=034 part=102)

0000756:INFO:rom_table:[0]<e00ff000:ROM class="1" designer=43b part=4c0>

0000756:INFO:rom_table:  AP#1 ROM table #1 @ 0xe00ff000 (designer=43b part=4c0)

0000766:INFO:rom_table:  [0]<e000e000:SCS-M0+ class="14" designer=43b part=008>

0000766:INFO:rom_table:  [1]<e0001000:DWT-M0+ class="14" designer=43b part=00a>

0000777:INFO:rom_table:  [2]<e0002000:BPU class="14" designer=43b part=00b>

0000777:INFO:rom_table:[1]<f0002000:CTI class="9" designer=43b part=9a6 devtype=14 archid=1a14 devid=0:0:1040800>

0000787:INFO:rom_table:[2]<f0003000:MTB-M0+ class="9" designer=43b part=932 devtype=31 archid=0a31 devid=0:0:0>

0000797:INFO:rom_table:AP#2 ROM table #0 @ 0xe00ff000 (designer=034 part=102)

0000797:INFO:rom_table:[0]<e0080000:CTI class="9" designer=43b part=906 devtype=14 archid=0000 devid=0:0:40800>

0000807:INFO:rom_table:[3]<e008e000:TPIU-M3 class="9" designer=43b part=923 devtype=11 archid=0000 devid=0:0:ca1>

0000807:INFO:rom_table:[4]<e007f000:ROM class="1" designer=034 part=102>

0000807:INFO:rom_table:  AP#2 ROM table #1 @ 0xe007f000 (designer=034 part=102)

0000817:INFO:rom_table:  [0]<e000e000:SCS-M4 class="14" designer=43b part=00c>

0000817:INFO:rom_table:  [1]<e0001000:DWT class="14" designer=43b part=002>

0000827:INFO:rom_table:  [2]<e0002000:FPB class="14" designer=43b part=003>

0000837:INFO:rom_table:  [3]<e0000000:ITM class="14" designer=43b part=001>

0000837:INFO:rom_table:  [4]<e0042000:CTI class="9" designer=43b part=906 devtype=14 archid=0000 devid=0:0:40800>

0000850:INFO:rom_table:  [5]<e0041000:ETM-M4 class="9" designer=43b part=925 devtype=13 archid=0000 devid=0:0:0>

0000851:ERROR:gdb_server:uncaught exception: 'CY8C6xxA' object has no attribute 'options'

Traceback (most recent call last):

  File "c:\python27\lib\site-packages\pyocd\tools\gdb_server.py", line 287, in run

    with session:

  File "c:\python27\lib\site-packages\pyocd\core\session.py", line 287, in __enter__

    self.open()

  File "c:\python27\lib\site-packages\pyocd\core\session.py", line 367, in open

    self._board.init()

  File "c:\python27\lib\site-packages\pyocd\board\board.py", line 83, in init

    self.target.init()

  File "c:\python27\lib\site-packages\pyocd\core\coresight_target.py", line 158, in init

    seq.invoke()

  File "c:\python27\lib\site-packages\pyocd\utility\sequencer.py", line 201, in invoke

    resultSequence = call()

  File "c:\python27\lib\site-packages\pyocd\target\builtin\target_CY8C6xxA.py", line 412, in create_cy8c6xx7_core

    core0 = CortexM_CY8C6xxA(self, self.aps[1], self.memory_map, 0)

  File "c:\python27\lib\site-packages\pyocd\coresight\cortex_m.py", line 409, in __init__

    Target.__init__(self, session, memoryMap)

  File "c:\python27\lib\site-packages\pyocd\core\target.py", line 98, in __init__

    self.halt_on_connect = session.options.get('halt_on_connect')

AttributeError: 'CY8C6xxA' object has no attribute 'options'

0 Likes
1 Solution
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

This is a known issue on the latest PyOCD 0.21.0. You can track this issue here: Target cy8c6xxa: pyocd-gdbserver: does not work with latest version 0.21.0 · Issue #680 · mbedmicro/...

Please revert back to PyOCD 0.20.1 which is working by using the following command:

pip install pyocd==0.20.1

We will let you know once the issue is fixed.

Regards,
Dheeraj

View solution in original post

2 Replies
DheerajK_81
Moderator
Moderator
Moderator
First comment on KBA First comment on blog 5 questions asked

This is a known issue on the latest PyOCD 0.21.0. You can track this issue here: Target cy8c6xxa: pyocd-gdbserver: does not work with latest version 0.21.0 · Issue #680 · mbedmicro/...

Please revert back to PyOCD 0.20.1 which is working by using the following command:

pip install pyocd==0.20.1

We will let you know once the issue is fixed.

Regards,
Dheeraj

SKUK
Employee
Employee
10 sign-ins 10 questions asked 5 questions asked

Dheeraj,

Thanks this worked. I thought latest is greatest but not always the case.Also mixing up 32 bit and 64 bit installation could create issues. So its good to put that info in guide.

Thanks,

Sanjeev