Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
5 years, 1 month ago.
pyocd error:5368870913
I use frdm-kl25z as programmer to recover bricked bootloader (frdm-k66f)
firmware in frdm-kl25Z is https://armmbed.github.io/DAPLink//firmware/0253_k20dx_frdmkl25z_0x8000.bin
file to be install as bootloader for frdm-k66f board , i use https://www.nxp.com/assets/downloads/data/en/snippets-boot-code-headers-monitors/0244_k20dx_bl_0x8000.bin i found it here https://www.nxp.com/design/microcontrollers-developer-resources/ides-for-kinetis-mcus/opensda-serial-and-debug-adapter:OPENSDA#FRDM-K66F)
i got following error,
C:\>pyocd flash D:\frdm\0244_k20dx_bl_0x8000.bin -t k20d50m
0020479:CRITICAL:main:init error: 536870913
Traceback (most recent call last):
File "c:\python27\lib\site-packages\pyocd\main.py", line 343, in run
self._COMMANDS[self._args.cmd](self)
File "c:\python27\lib\site-packages\pyocd\main.py", line 480, in do_flash
file_format=self._args.format)
File "c:\python27\lib\site-packages\pyocd\flash\loader.py", line 160, in program
self._loader.commit()
File "c:\python27\lib\site-packages\pyocd\flash\loader.py", line 508, in commit
keep_unwritten=self._keep_unwritten)
File "c:\python27\lib\site-packages\pyocd\flash\flash_builder.py", line 449, in program
sector_erase_count, page_program_time = self._compute_sector_erase_pages_and_weight(fast_verify)
File "c:\python27\lib\site-packages\pyocd\flash\flash_builder.py", line 623, in _compute_sector_erase_pages_and_weight
self._analyze_pages_with_crc32(fast_verify)
File "c:\python27\lib\site-packages\pyocd\flash\flash_builder.py", line 602, in _analyze_pages_with_crc32
self._enable_read_access()
File "c:\python27\lib\site-packages\pyocd\flash\flash_builder.py", line 221, in _enable_read_access
self.flash.init(self.flash.Operation.VERIFY)
File "c:\python27\lib\site-packages\pyocd\flash\flash.py", line 250, in init
raise FlashFailure('init error: %i' % result, result_code=result)
FlashFailure: init error: 536870913
-------
does it need to cut pin 7 from ribbon cable as mention in (http://keithhack.blogspot.com/2013/10/cheap-arm-programmer.html) ??
what is issue , please guide.