Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list_options() broken in ccs9 #77

Closed
webbcam opened this issue Apr 10, 2019 · 0 comments
Closed

list_options() broken in ccs9 #77

webbcam opened this issue Apr 10, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@webbcam
Copy link
Owner

webbcam commented Apr 10, 2019

Using the list_options() function raises an Exception when using CCSv9.

Context

When using the list_options() function (tiflash options-list on CLI) raises an KeyError Exception for 'beginsWith'. This is due to a change in the device xml files. The flash_properties.py helper needs to be updated to handle this.

This is due to a change in the FlashPropertiesTranslator.xml files in CCS 9 which added FlashProperties that use a 'regex' keyword instead of 'beginsWith'. TIFlash seems to be using the entries which use 'regex' instead of 'beginsWith'.

Process

To reproduce:
CLI: tiflash -d CC1310F128 options-list
Python: tiflash.list_options(devicetype="CC1310F128")
image

Expected result

Should list flash options for device.

Possible Fix

TIFlash should handle the retrieve the used keyword rather than using a hardcoded one e.g. 'beginsWith'


@webbcam webbcam added the bug Something isn't working label Apr 10, 2019
webbcam added a commit that referenced this issue Apr 12, 2019
webbcam added a commit that referenced this issue Apr 12, 2019
@webbcam webbcam closed this as completed Apr 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant