Topics

add pyocd user scripy cause pylint issue


FrankLi
 

Thanks mbolivar give the solution:
# 'target' is global
# pylint: disable=undefined-variable


FrankLi
 

Hi guys,
    Since to flash on mm_swiftio is not supported by pyocd, I want to override the flash algorithm for an external flash by using user script.
    The user script use pyocd global "target" cause pylint issue in zephyr Check. 
************* Module pyocd_user
boards/arm/mm_swiftio/burner/pyocd_user.py:9:15: E0602: Undefined variable 'target' (undefined-variable)
    Is there any way to solve or bypass this problem? Thanks!
    You can find the modify https://github.com/zephyrproject-rtos/zephyr/pull/22536
    Add refer to https://github.com/mbedmicro/pyOCD/blob/master/docs/user_scripts.md