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

svdpatch collect array requires base address as string #12

Open
albertmoravec opened this issue Aug 4, 2019 · 0 comments
Open

svdpatch collect array requires base address as string #12

albertmoravec opened this issue Aug 4, 2019 · 0 comments

Comments

@albertmoravec
Copy link

When running svdpatch against register with modified base address written as number I get the following error:

Traceback (most recent call last):
  File "scripts/svdpatch.py", line 883, in <module>
    main()
  File "scripts/svdpatch.py", line 876, in main
    process_device(svd, root)
  File "scripts/svdpatch.py", line 855, in process_device
    update_fields)
  File "scripts/svdpatch.py", line 400, in process_peripheral
    p.collect_in_array(rspec, rmod)
  File "scripts/svdpatch.py", line 511, in collect_in_array
    int(rtag.findtext('addressOffset'), 0)])
TypeError: int() can't convert non-string with explicit base
Makefile:38: recipe for target 'svd/stm32f427.svd.patched' failed
make: *** [svd/stm32f427.svd.patched] Error 1

Input used to generate this error:

OTG_HS_GLOBAL:
  _modify:
    DIEPTXF3:
      addressOffset: 0x10C
  
  _array:
    DIEPTXF[12345]: {}

If I put the address in quotes like this: addressOffset: 0x10C everything works fine.

@adamgreig adamgreig transferred this issue from stm32-rs/stm32-rs Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant