AnsweredAssumed Answered

Dear Sir/Madam, I meet one problem.

Question asked by chen wei on Mar 19, 2018
Latest reply on Mar 27, 2018 by Maureen Helm

 When I use pyocd flashtool to burn mcuboot.bin into flash of frdm_k64f board, there has one fatal error,lists as follow:

 [root@localhost zephyr]# pyocd-flashtool -t k64f -ce -a 0x0 mcuboot.bin  INFO:root:DAP SWD MODE initialised INFO:root:K64F not in secure state Traceback (most recent call last):   File "/usr/bin/pyocd-flashtool", line 9, in <module>     load_entry_point('pyOCD==0.8.1a1', 'console_scripts', 'pyocd-flashtool')()   File "/usr/lib/python3.4/site-packages/pyOCD/tools/", line 152, in main     frequency=args.frequency, blocking=False)   File "/usr/lib/python3.4/site-packages/pyOCD/board/", line 265, in chooseBoard     mbed.init()   File "/usr/lib/python3.4/site-packages/pyOCD/board/", line 51, in init   File "/usr/lib/python3.4/site-packages/pyOCD/target/", line 123, in init     self.aps[0].init(bus_accessible=True)   File "/usr/lib/python3.4/site-packages/pyOCD/coresight/", line 111, in init     super(MEM_AP, self).init(bus_accessible)   File "/usr/lib/python3.4/site-packages/pyOCD/coresight/", line 87, in init     self.init_rom_table()   File "/usr/lib/python3.4/site-packages/pyOCD/coresight/", line 92, in init_rom_table     self.rom_table.init()   File "/usr/lib/python3.4/site-packages/pyOCD/coresight/", line 178, in init     self.read_id_registers()   File "/usr/lib/python3.4/site-packages/pyOCD/coresight/", line 116, in read_id_registers     regs = self.ap.readBlockMemoryAligned32(self.top_address + PIDR4, IDR_COUNT)   File "/usr/lib/python3.4/site-packages/pyOCD/coresight/", line 344, in readBlockMemoryAligned32     resp += self._readBlock32(addr, n/4)   File "/usr/lib/python3.4/site-packages/pyOCD/coresight/", line 205, in _readBlock32     resp =, reg)   File "/usr/lib/python3.4/site-packages/pyOCD/pyDAPAccess/", line 590, in reg_read_repeat     assert isinstance(num_repeats, six.integer_types) AssertionError [root@localhost zephyr]#    


Why this error happened and How to resolve it? thanks you!