square / pylink

Python Library for device debugging/programming via J-Link
https://pylink.readthedocs.io/en/latest/
Other
334 stars 125 forks source link

Downloading Firmware image to Cortex Fails #195

Closed engrnader closed 3 months ago

engrnader commented 3 months ago

Hi, When downloading .bin or .axf using jlink.flash_file(firmware_image, 0x0) fails to download to DUT's memory. I'm using this correctly? Alternatively, when using jlink commander provided by SEGGER and use the following command,

loadbin <firmware_path.bin> 0X0

works perfectly.

Can someone assist me with this?

hkpeprah commented 3 months ago

Can you paste your code, and logs? Verbose logging can be enabled by doing the following:

import logging

logging.basicConfig(level=logging.DEBUG)
engrnader commented 3 months ago

This issue has been resolved.