Skip to content

Correct ethernet registers errors due to incorrect SVD file#458

Open
pat-rogers wants to merge 1 commit intoAdaCore:masterfrom
pat-rogers:ethernet_svd_registers_errors
Open

Correct ethernet registers errors due to incorrect SVD file#458
pat-rogers wants to merge 1 commit intoAdaCore:masterfrom
pat-rogers:ethernet_svd_registers_errors

Conversation

@pat-rogers
Copy link
Copy Markdown
Contributor

@pat-rogers pat-rogers commented Mar 24, 2026

In stm32_svd-ethernet.ads for F7x:

  • for the Ethernet MAC frame filter register, ie MACFFR_Register, correct a component name, a type, and a size in MACFFR_Register to match the documentation. Component "RAM" should be "PAM", and PCF should be a 2-bit quantity (requiring a change to the size of the unused bits reserved at the end). See RM0385 Rev 8 Table 282 page1646.

  • for the Ethernet MAC debug register, ie MACDBGR_Register, the package from SVD does not correspond to the documentation at all. Therefore we change this register definition manually. See RM0385 Rev 8 pages 1610 and 1611.

  • likewise, for the Ethernet MAC MII data register, ie MACMIIDR_Register, change component name to match documentation. See RM0385 Rev 8 Table 282 page1646.

We also need to change the SVD file itself, in the svd2ada project.

@pat-rogers pat-rogers changed the title Correct ethernet registers' decls due to incorrect SVD file Correct ethernet registers' decl errors due to incorrect SVD file Mar 24, 2026
@pat-rogers pat-rogers changed the title Correct ethernet registers' decl errors due to incorrect SVD file Correct ethernet registers errors due to incorrect SVD file Mar 24, 2026
* for the Ethernet MAC frame filter register, ie MACFFR_Register, correct a component
  name, a type, and a size in MACFFR_Register to match the documentation. Component
  "RAM" should be "PAM", and PCF should be a 2-bit quantity (requiring a change
  to the size of the unused bits reserved at the end)

* for the Ethernet MAC debug register, ie MACDBGR_Register, the package from
  SVD does not correspond to the documentation at all. Therefore we change
  this register definition manually. See RM0385 Rev 8 pages 1610 and 1611.

* likewise, for the Ethernet MAC MII data register, ie MACMIIDR_Register, change
  component name to match documentation

We also need to change the SVD file itself, in the svd2ada project.
@pat-rogers pat-rogers force-pushed the ethernet_svd_registers_errors branch from 7b1f111 to 3c54b39 Compare April 14, 2026 21:51
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

Successfully merging this pull request may close these issues.

1 participant