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

Reduce DFP packs by zipping SVD files #269

Open
tarek-bochkati opened this issue Dec 7, 2023 · 0 comments
Open

Reduce DFP packs by zipping SVD files #269

tarek-bochkati opened this issue Dec 7, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@tarek-bochkati
Copy link
Contributor

I am thinking a lot on how to reduce the DFP Packs size.

I have logged these issues:
[SVD] optional peripherals
[Question] does SVD specification allows entity inclusions ?

but there is one simple solution, which is to have SVD files zipped inside the pack.
and the tool should unzip at the runtime.

<?xml version="1.0" encoding="UTF-8"?>
<package ... >
  <vendor>STMicroelectronics</vendor>
  <name>stm32u5xx_dfp</name>
  <!-- ... -->
  <devices>
    <family Dfamily="STM32U5 Series" Dvendor="STMicroelectronics:13">
      <subFamily DsubFamily="STM32U575/585">
        <device Dname="STM32U575ZI">
          <debug svd="SVD/STM32U575.zip"/>
          <!-- ... -->
        </device>
<!-- ... -->

I have done the measurement, for STM32U5xx SVD files:
zipping each file individually the size decreased from ~100MB to ~3MB

Despite that this can be complex for tools to adapt, the gain on the disk space is huge and worth investigation.

@jkrech jkrech added the enhancement New feature or request label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants