cmsis-svd / cmsis-svd-data

Aggregration of ARM Cortex-M (and other) CMSIS SVDs
Apache License 2.0
37 stars 17 forks source link

AlifSemi: Add SVD files from official DFP #43

Open VincentDary opened 3 weeks ago

VincentDary commented 3 weeks ago

Add AlifSemi SVD files from official DFP https://github.com/alifsemi/alif_ensemble-cmsis-dfp/tree/main/Debug/SVD

To check the SVD files authenticity, follow these instructions:

$ git clone https://github.com/alifsemi/alif_ensemble-cmsis-dfp.git
$ cd alif_ensemble-cmsis-dfp/Debug/SVD
$ sha512sum *.svd > ../../../alifsemi_svd_s_sha512.txt
$ cd ../../..
$ git clone https://github.com/VincentDary/cmsis-svd-data.git
$ cd cmsis-svd-data
$ git checkout alifsemi
$ cd data/AlifSemi
$ sha512sum -c ../../../alifsemi_svd_s_sha512.txt
AE101F4071542LH_CM55_HE_View.svd: OK
AE302F40C1537LE_CM55_HE_View.svd: OK
AE302F40C1537LE_CM55_HP_View.svd: OK
AE302F80C1557LE_CM55_HE_View.svd: OK
AE302F80C1557LE_CM55_HP_View.svd: OK
AE302F80F5582AE_CM55_HE_View.svd: OK
AE302F80F5582AE_CM55_HP_View.svd: OK
AE302F80F5582LE_CM55_HE_View.svd: OK
AE302F80F5582LE_CM55_HP_View.svd: OK
AE302F80F55D5AE_CM55_HE_View.svd: OK
AE302F80F55D5AE_CM55_HP_View.svd: OK
AE302F80F55D5LE_CM55_HE_View.svd: OK
AE302F80F55D5LE_CM55_HP_View.svd: OK
AE512F80F5582AS_CM55_HE_View.svd: OK
AE512F80F5582AS_CM55_HP_View.svd: OK
AE512F80F5582LS_CM55_HE_View.svd: OK
AE512F80F5582LS_CM55_HP_View.svd: OK
AE512F80F55D5AS_CM55_HE_View.svd: OK
AE512F80F55D5AS_CM55_HP_View.svd: OK
AE512F80F55D5LS_CM55_HE_View.svd: OK
AE512F80F55D5LS_CM55_HP_View.svd: OK
AE722F80F55D5AS_CM55_HE_View.svd: OK
AE722F80F55D5AS_CM55_HP_View.svd: OK
AE722F80F55D5LS_CM55_HE_View.svd: OK
AE722F80F55D5LS_CM55_HP_View.svd: OK
$ echo $?
0

alifsemi_svd_s_sha512.txt

Update 2024-10-31 :

BenBE commented 3 weeks ago

Any chance to drop the final _View? As this will likely interfere with finding these chips by their serial automagically …

What's the difference between the HE and HP versions of each file?

CM55 is CortexM55?

VincentDary commented 3 weeks ago

There is some differences between interrupt names between HE and HP. For examples with AE302F40C1537LE:

$ diff -u  AE302F40C1537LE_CM55_HE_View.svd AE302F40C1537LE_CM55_HP_View.svd
...
-        <name>DMA2_IRQ0</name>
+        <name>DMA1_IRQ0</name>
         <description>Interrupt request 0. One per DMA request interface (32 in total).</description>
         <value>0</value>
       </interrupt>
       <interrupt>
-        <name>DMA2_IRQ1</name>
+        <name>DMA1_IRQ1</name>
         <description>Interrupt request 1. One per DMA request interface (32 in total).</description>
         <value>1</value>
       </interrupt>
       <interrupt>
-        <name>DMA2_IRQ10</name>
+        <name>DMA1_IRQ10</name>
         <description>Interrupt request 10. One per DMA request interface (32 in total).</description>
         <value>10</value>
       </interrupt>
...
VincentDary commented 3 weeks ago

Yes I think CM55 stand for Arm Cortex-M55.

VincentDary commented 3 weeks ago

Ok in this case I drop the _View pattern, maybe also the CM55 pattern, this just a a little bit more work for the maintenance of the files if there are updates.

BenBE commented 3 weeks ago

I'd suggest removing it from the filename too.

This would leave us with AE101F4071542LH_HE.svd instead of AE101F4071542LH_CM55_HE_View.svd, which would make this SVD accessible as AE101F4071542LH_HE (which IMHO is much more reasonable).

If there are any non-Cortex-M55 chips from this vendor, we could do two directories CM55 and another similar to SiliconLabs being split into the individual series.

VincentDary commented 3 weeks ago

Ok with you @BenBE , fix done, thanks for your feedbacks.

BenBE commented 3 weeks ago

Naming LGTM.