Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in
F
FMSH Project Generator
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • huangzean
  • FMSH Project Generator
  • Issues
  • #2

Closed
Open
Opened Nov 11, 2021 by huangzean@huangzean
  • Report abuse
  • New issue
Report abuse New issue

[功能改进] 支持从芯片的pack包导入相关配置文件

器件的pack包中包含如下的信息:

<devices>
        <family Dfamily="FM33LC0XX Series" Dvendor="FMSH:159">
            <processor DcoreVersion="r2p1" Dfpu="0" Dendian="Little-endian" Dmpu="0" Dcore="Cortex-M0"/>
            ...
            <subFamily DsubFamily="FM33LC0XX">
                <debug svd="SVD\FM33LC0XX.SVD"/>
		<compile header="Device/Include/fm33lc0xx.h" define="FM33LC0xx"/>
                <!-- FM33LC01X-->
                <device Dname="FM33LC01X">
                    <memory size="0x10000" default="1" startup="1" id="IROM1" start="0x00000000"/>
                    <memory size="0x4000" default="1" id="IRAM1" start="0x20000000" init="0"/>
                    <algorithm name="Flash\FM33LC01X_FLASH64.FLM" start="0x00000000" size="0x10000" default="1" />
                </device>
                <!-- FM33LC02X-->
                <device Dname="FM33LC02X">
                    <memory size="0x20000" default="1" startup="1" id="IROM1" start="0x00000000"/>
                    <memory size="0x6000" default="1" id="IRAM1" start="0x20000000" init="0"/>
                    <algorithm name="Flash\FM33LC02X_FLASH128.FLM" start="0x00000000" size="0x20000" default="1" />
                </device>
                <!-- FM33LC04X-->
                <device Dname="FM33LC04X">
                    <memory size="0x40000" default="1" startup="1" id="IROM1" start="0x00000000"/>
                    <memory size="0x6000" default="1" id="IRAM1" start="0x20000000" init="0"/>
                    <algorithm name="Flash\FM33LC04X_FLASH256.FLM" start="0x00000000" size="0x40000" default="1" />
                </device>
            </subFamily>
        </family>
    </devices>

需要关注的是processor标签的属性,以及device标签的内容。

  • 通过device标签可以得知芯片的分类,和RAM/ROM/烧写算法信息
  • 通过processor标签属性可以得到CPU信息。
  • 另外,通过subFamily标签中的compile->define信息,可以得到芯片需要包含的宏定义信息
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
1
Labels
Doing
Assign labels
  • View project labels
Reference: huangzean/fmsh-project-generator#2