cancel
Showing results for 
Search instead for 
Did you mean: 

ModusToolbox Mbed SDK

JunhuangL_41
Employee

Hi,

    After import the blink demo from Mbed to MTB, it could success compile but fail to program.

    The same as another capsense demo.It could success in Mbed but the same fail in MTB.

    All the steps are the same as user guide.

Here's the fail details, looks something config not complete?The board is CY8CKIT_062_WIFI_BT.

0000937:WARNING:common:STLink and CMSIS-DAPv2 probes are not supported because no libusb library was found.

0000939:INFO:board:Target type is cy8c6xx7

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

0001213:ERROR:gdb_server:uncaught exception: 'CY8C6xx7' 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_CY8C6xx7.py", line 221, in create_cy8c6xx7_core

    core0 = CortexM_CY8C6xx7(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: 'CY8C6xx7' object has no attribute 'options'

-Thanks for your support.

0 Likes
Reply
1 Solution
DheerajK_81
Moderator
Moderator

What is the version of Python and PyOCD installed? Ensure that you have Python 2.7.9 or later and PyOCD 0.16.1 or later. Download libusb from here​ and place the DLL in your Python installation folder next to python.exe. Make sure to use the same 32- or 64-bit architecture as your Python installation

Regards,

Dheeraj

View solution in original post

0 Likes
Reply
3 Replies
DheerajK_81
Moderator
Moderator

Please refer to the "Mbed OS to ModusToolbox Flow" section in the ModusToolbox user guide present at this link: https://www.cypress.com/file/455211/download​. Let me know if you are able to program using the DAPLink mode.

Regards,

Dheeraj

0 Likes
Reply
JunhuangL_41
Employee

Hi Dheeraj,

   I have followed this guide to build success but meet error, AttributeError: 'CY8C6xx7' object has no attribute 'options',when execute program.

    Look like something missing in CY8C6xx7.

0 Likes
Reply
DheerajK_81
Moderator
Moderator

What is the version of Python and PyOCD installed? Ensure that you have Python 2.7.9 or later and PyOCD 0.16.1 or later. Download libusb from here​ and place the DLL in your Python installation folder next to python.exe. Make sure to use the same 32- or 64-bit architecture as your Python installation

Regards,

Dheeraj

View solution in original post

0 Likes
Reply