cmsis-svd / cmsis-svd-data

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

Chipsea/CS32F03{0,1,6}x.svd,CS32F103xB.svd: Add Chipsea SVDs from official DFP pack archives #45

Open VincentDary opened 3 weeks ago

VincentDary commented 3 weeks ago

To check the SVD file authenticity, follow these instructions:

  $ wget https://chipsea-obs.obs.cn-south-1.myhuaweicloud.com/uploads/Chipsea.CS32F03x_DFP.2.0.5_1667981844.zip
  $ unzip Chipsea.CS32F03x_DFP.2.0.5_1667981844.zip
  $ unzip Chipsea.CS32F03x_DFP.2.0.5/Chipsea.CS32F03x_DFP.2.0.5.pack -d Chipsea.CS32F03x_DFP.2.0.5.pack.extract
  $ cd Chipsea.CS32F03x_DFP.2.0.5.pack.extract/SVD/
  $ sha512sum CS32F03*.svd > ../../chipsea_CS32F03x_DFP_sha512.txt

  $ wget https://chipsea-obs.obs.cn-south-1.myhuaweicloud.com/uploads/ChipSea.CS32F1xx_DFP.2.0.3_1667977264.zip
  $ unzip ChipSea.CS32F1xx_DFP.2.0.3_1667977264.zip
  $ unzip ChipSea.CS32F1xx_DFP.2.0.3.pack -d ChipSea.CS32F1xx_DFP.2.0.3.pack.extract
  $ cd ChipSea.CS32F1xx_DFP.2.0.3.pack.extract/SVD
  $ sha512sum CS32F103xB.svd > ../../chipsea_CS32F103xB_sha512.txt

  $ git clone ttps://github.com/VincentDary/cmsis-svd-data.git
  $ git checkout chipsea
  $ cd data/Chipsea
  $ sha512sum -c ../../../chipsea_CS32F03x_DFP_sha512.txt
  CS32F030x.svd: OK
  CS32F031x.svd: OK
  CS32F036x.svd: OK
  $ echo $?
  0
  $ sha512sum -c ../../../chipsea_CS32F103xB_sha512.txt
  CS32F103xB.svd: OK
  $ echo $?
  0

chipsea_CS32F03x_DFP_sha512.txt chipsea_CS32F103xB_sha512.txt

There is no license provided by the PACK archives, but there is a license link artifact in the file TIM/TIM_TimeBase/cs32f0xx_int.h, which is the following, the license link give 404 not found. The license is probably a modified version of the MCD-ST.

  /**
    * @file    TIM/TIM_TimeBase/cs32f0xx_int.h
    * @brief   This file contains the headers of the interrupt handlers.
    * @author  ChipSea MCU Group
    * @version V1.0.0
    * @date   2021.11.01
    * @copyright CHIPSEA TECHNOLOGIES (SHENZHEN) CORP.
    * @note
    * <h2><center>&copy; COPYRIGHT 2021 ChipSea</center></h2>
    *
    * Licensed under MCD-CS Liberty SW License Agreement V1, (the "License");
    * You may not use this file except in compliance with the License.
    * You may obtain a copy of the License at:
    *
    *        http://www.chipsea.com/software_license_agreement_liberty_v1
    *
    * Unless required by applicable law or agreed to in writing, software
    * distributed under the License is distributed on an "AS IS" BASIS,
    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    * See the License for the specific language governing permissions and
    * limitations under the License.
    *
    */