cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L0: wrong address of COMP registers in svd file

Andreas Barth
Associate
Posted on July 02, 2018 at 13:33

Hello! I use MDK from Keil and noticed, that the address of the COMPn_CSR registers in the SystemViewer have wrong addresses.

I checked the SVD files in the latest STM32L0xx_DFP V2.0.0. The problem is the base address of the COMP peripheral. That is already the 'offset' of the first COMP1_CSR, which also has its own offset:

    <peripheral>

      <name>COMP</name>

      ...

      <baseAddress>0x40010018</baseAddress>

      ...

      <registers>

        <register>

          <name>COMP1_CSR</name>

          ...

          <addressOffset>0x18</addressOffset>

As far as I know, this SVD files are based on data provided by ST or directly provided to Keil by ST. So, I would like to asked, are there already newer files with corrected COMP peripheral addresses available or can you fix this in future files?

Thank you!

1 REPLY 1
Khouloud GARSI
Lead II

Posted on July 02, 2018 at 17:59

Hello 

andreasb.

‌,

I will check this point and update you ASAP.

Many thanks for your feedback.

Khouloud.