-
Notifications
You must be signed in to change notification settings - Fork 25
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
Unstable generation results #36
Comments
yeah it's a known problem, i've seen this before. My guess is some HashMap somewhere that causes the randomness, switching to BTreeMap should fix it. |
Okay, I'll see if I can find the time to fix this. Interestingly enough, the |
@Dirbaio I looked into this issue, and indeed it turned out being a I fixed the While digging into this issue, I wondered weather the current code is generating the docstring that one would actually want (at least in the merge-transformation)... In the minimal test-case in the branch above, we have 2 registers ( Wile merging, the description of the first to-be-merged register will be taken, resulting in:
The "in-memory" bit-representation of the register can't actually know what value one needs to set as I either would proposed to:
Let me know your opinion on this ;) |
I'm experiencing some strange behaviour from the chiptool.
Repro
Checkout https://github.com/igiona/nrf-pac/tree/TestFlakyChiptool
You can commit these changes, repeat the steps above, and you will see other changes coming out similar to:
The doc-string doesn't stay constant and keep "toggling" every tool run.
Expected behaviour
The generated code stays constant after each run
Debugging notes
I did not invest too much time in debugging. What for now I can say is:
If you search the SVD file for
<name>PAYLOAD</name>
, you will find only 2 entries: one for clear and one for set, with the 2 descriptions that are "flickering" in the generated lib.rs.The tool seems to pick the doc-string "randomly" the doc-string, whereas the function code stays constant.
Maybe someone of you has already experienced this?
The text was updated successfully, but these errors were encountered: