-
Notifications
You must be signed in to change notification settings - Fork 127
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
provide an enum for registers #46
Comments
Sounds like a good idea / enhancement. Something like a registers
|
Does the JLink API provide anything similar?
…On Tue, Dec 11, 2018, 1:00 PM Ford ***@***.*** wrote:
Sounds like a good idea / enhancement. Something like a registers enum
with
class Registers(enum):
ARM_CORTEX_R5_R0 = 0
<...>
ARM_CORTEX_R5_CPS
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFtLiBN9I0OihDRgaDDBig47c8gKVYiGks5u4ADigaJpZM4ZNRv8>
.
|
There's the
|
Oh sorry I didn’t see those two functions... Sorry again, RTFD the next time |
Ah, super sorry about getting back to you late on this. I think probably using the |
No problem. Ok, I will add this feature. What do you think about this proposition:
This has the downside to break backward compatibility with current/previous versions of the module, but it keeps a clear interface. Otherwise, if you prefer to keep backward compatibility, I could add functions like |
Hm, personally, I would just override
|
Release with patch should be available in v0.3.0: https://github.com/square/pylink/releases/tag/v0.3.0 |
Great, thanks! I guess this issue can be closed? |
Sounds good. |
* refactor register_read method (#46). refactor register_read_multiple method (#46). refactor register_write method (#46). refactor register_write_multiple method (#46). * refactor according to @hkpeprah review. * add docstring to _get_register_index_from_name method. * prevent side effects due to mutability of list. * add unit tests. * implement cp15_present function. * implement cp15_register_read function. * add test for cp15_present function * implement cp15_register_write_function
Hi,
I would like to know if it would be possible to provide an enumeration to clarify the calls to
register_read(self, register_index)
. I guess that calling this function withregister_index = 0
the value of register r0 will be returned, but I'm not sure what index should be used for CPS register, more generally what index should be used for banked registers. I guess that an enum like shown bellow might help the users:I know it is possible to read the banked register r8_fiq with GDB, even if the controller is not in FIQ mode, but I don't know if it would be possible using the DLL.
here's a link showing different registers available for a cortex-r5 controller (only as example).
Thanks for your feedback
The text was updated successfully, but these errors were encountered: