Skip to content

Commit

Permalink
fix update link
Browse files Browse the repository at this point in the history
  • Loading branch information
qitas committed Jun 3, 2021
1 parent b42c54b commit fafd4e0
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 61 deletions.
26 changes: 13 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
<html>
<head>
<meta charset="utf-8">
<title> SoC芯</title>
<link rel="shortcut icon" href="./src/favicon.ico"/>
<link rel="bookmark" href="./src/favicon.ico"/>
<title> 芯芸</title>
<link rel="shortcut icon" href="src/favicon.ico"/>
<link rel="bookmark" href="src/favicon.ico"/>
<style> h4{text-align: center;color: rgb(179, 37, 96);} </style>

<link rel="stylesheet" href="./src/css/clock.css" media="screen" type="text/css" />
<link rel="stylesheet" href="./src/css/3keys.css" media="screen" type="text/css">
<link rel="stylesheet" type="text/css" href="./src/css/input_blink.css">
<link rel="stylesheet" href="src/css/clock.css" media="screen" type="text/css" />
<link rel="stylesheet" href="src/css/3keys.css" media="screen" type="text/css">
<link rel="stylesheet" type="text/css" href="src/css/input_blink.css">
</head>

<body>
<a href="https://github.com/SoCXin"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/a6677b08c955af8400f44c6298f40e7d19cc5b2d/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677261795f3664366436642e706e67" alt="Searching on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png"></a>
<input type="text" placeholder="探索芯世界">
<script type="text/javascript" src="js/input_blink.js"></script>
<script type="text/javascript" src="src/js/input_blink.js"></script>
<div style="text-align:center;clear:both;">
</div>
<svg version="1.1" id="clock" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
Expand Down Expand Up @@ -158,8 +158,8 @@
</g>
</g>
</svg>
<script src='./src/js/snap.svg-min.js'></script>
<script src="./src/js/clock_time.js"></script>
<script src='src/js/snap.svg-min.js'></script>
<script src="src/js/clock_time.js"></script>
<div style="text-align:left;clear:both;">
><div id="workarea">

Expand All @@ -171,15 +171,15 @@
<svg height="40" width="150" xmlns="http://www.w3.org/2000/svg">
<rect id="shape" height="40" width="150" />
<div id="text">
<a href="https://www.soc.xin/mbed"><span class="spot"></span>编辑编译</a>
<a href="https://www.soc.xin/mbed"><span class="spot"></span>开发</a>
</div>
</svg>
</div>
<div class="svg-wrapper">
<svg height="40" width="150" xmlns="http://www.w3.org/2000/svg">
<rect id="shape" height="40" width="150" />
<div id="text">
<a href="https://www.soc.xin/link"><span class="spot"></span>调试下载</a>
<a href="https://www.soc.xin/link"><span class="spot"></span>调试</a>
</div>
</svg>
</div>
Expand All @@ -188,7 +188,7 @@
<svg height="40" width="150" xmlns="http://www.w3.org/2000/svg">
<rect id="shape" height="40" width="150" />
<div id="text">
<a href="https://www.soc.xin/dfu"><span class="spot"></span>设备更新</a>
<a href="https://www.soc.xin/dfu"><span class="spot"></span>升级</a>
</div>
</svg>
</div>
Expand All @@ -197,7 +197,7 @@
<svg height="40" width="150" xmlns="http://www.w3.org/2000/svg">
<rect id="shape" height="40" width="150" />
<div id="text">
<a href="https://www.soc.xin/time/"><span class="spot"></span>配置发行</a>
<a href="https://www.soc.xin/time/"><span class="spot"></span>配置</a>
</div>
</svg>
</div>
Expand Down
90 changes: 47 additions & 43 deletions link/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,29 +52,42 @@
</head>
<body>
<a href="https://www.soc.xin/"><img style="position: absolute; top: 0; right: 0; border: 0;" src="../src/soc.png"></a>
<fieldset>
<legend><a href="https://www.st.com/zh/development-tools/st-link-v2.html">STLink for STM32</a></legend>
<p>
<button id="connect">Connect</button>
<button id="runHalt" disabled>Halt</button>
<button id="step" disabled>Step</button>
<button id="reset" disabled>Reset</button>
</p>

<p>
<fieldset>
<legend><a href="https://www.st.com/zh/development-tools/st-link-v2.html">固件烧录</a></legend>
<!-- <details id="flashDisplay">
<summary>固件烧录</summary> -->
<label>
起始地址:
<input type="text" id="flashWriteAddress" title="Flash address to write to (hex)" size="10" pattern="0x[A-Fa-f0-9]+" required/>
</label>
<label>
烧录文件:
<input type="file" id="flashBinaryFile" required/>
</label>
<button id="flash" disabled>Flash</button>
<!-- </details> -->
</fieldset>
<fieldset>
<legend><a href="https://www.st.com/zh/development-tools/st-link-v2.html">逐步调试</a></legend>
<details id="probeInfo">
<summary>Debugger - Disconnected</summary>
<summary> Disconnected</summary>
Product Name: <span id="productName"></span><br/>
Manufacturer: <span id="mfgName"></span><br/>
Serial Number: <span id="serialNumber"></span><br/>
</details>
</p>

<p>
<details id="targetInfo">
<summary>Target <span id="targetType">-</span> <span id="targetStatus">Unknown</span></summary>

</details>
</p>

<p>
<details id="registerDisplay">
<summary>Registers: <button id="readRegisters" disabled>Read now</button>
Expand Down Expand Up @@ -131,20 +144,6 @@
<input type="checkbox" id="pollMemory" disabled>Read memory when polling (nonfunctional)</input>
</details>
</p>
<p>
<details id="flashDisplay">
<summary>Flash</summary>
<label>
Flash address (hex):
<input type="text" id="flashWriteAddress" title="Flash address to write to (hex)" size="10" pattern="0x[A-Fa-f0-9]+" required/>
</label>
<label>
Firmware binary:
<input type="file" id="flashBinaryFile" required/>
</label>
<button id="flash" disabled>Flash</button>
</details>
</p>
<p>
<details id="pollingDisplay">
<summary>Polling - Idle</summary>
Expand All @@ -167,36 +166,39 @@
</label>
</form>
</details>
</p>
<p>
<details id="semihostingDisplay">
<summary>Semihosting - off</summary>
<input type="checkbox" id="semihostingEnabled">Enable semihosting</input>
<label for="semihostingOutput">Semihosting output</label>
<textarea id="semihostingOutput" readonly></textarea>
</details>
</p>
<p>
<details id="logWrapper">
<details id="logLevel">
<summary>Logging Level - Normal</summary>
<form id="logLevelForm">
<label class="radio">
<input type="radio" name="logLevel" value="0" />Quiet - show warnings and errors only
</label>
<label class="radio">
<input type="radio" name="logLevel" value="1" checked />Normal - show pertinent information
</label>
<label class="radio">
<input type="radio" name="logLevel" value="2" />Verbose - show additional information
</label>
<label class="radio">
<input type="radio" name="logLevel" value="3" />Debug - show low-level troubleshooting information
</label>
</form>
</details>
<summary>Log</summary>
<div id="log" class="log"></div>
</fieldset>
<fieldset>
<legend><a href="https://www.st.com/zh/development-tools/st-link-v2.html">info & log</a></legend>
<!-- <details id="logWrapper"> -->
<details id="logLevel">
<summary>Level - Normal</summary>
<form id="logLevelForm">
<label class="radio">
<input type="radio" name="logLevel" value="0" />Quiet - show warnings and errors only
</label>
<label class="radio">
<input type="radio" name="logLevel" value="1" checked />Normal - show pertinent information
</label>
<label class="radio">
<input type="radio" name="logLevel" value="2" />Verbose - show additional information
</label>
<label class="radio">
<input type="radio" name="logLevel" value="3" />Debug - show low-level troubleshooting information
</label>
</form>
</details>
</p>
<!-- <summary>Log</summary> -->
<div id="log" class="log"></div>
<!-- </details> -->
<dialog id="mcuDialog">
<form id="mcuForm" method="dialog">
<table>
Expand All @@ -214,5 +216,7 @@
<button type="submit">Select MCU variant</button>
</form>
</dialog>
</fieldset>
</fieldset>
</body>
</html>
10 changes: 5 additions & 5 deletions link/src/lib/stm32devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
export default [
{
'part_no': 0xc20,
'core': 'CortexM0',
'core': 'Cortex-M0',
'idcode_reg': 0x40015800,
'devices': [
{
Expand Down Expand Up @@ -73,7 +73,7 @@ export default [
},
{
'part_no': 0xc60,
'core': 'CortexM0+',
'core': 'Cortex-M0+',
'idcode_reg': 0x40015800,
'devices': [
{
Expand Down Expand Up @@ -141,7 +141,7 @@ export default [
},
{
'part_no': 0xc23,
'core': 'CortexM3',
'core': 'Cortex-M3',
'idcode_reg': 0xE0042000,
'devices': [
{
Expand Down Expand Up @@ -398,7 +398,7 @@ export default [
},
{
'part_no': 0xc24,
'core': 'CortexM4',
'core': 'Cortex-M4',
'idcode_reg': 0xE0042000,
'devices': [
{
Expand Down Expand Up @@ -578,7 +578,7 @@ export default [
},
{
'part_no': 0xc27,
'core': 'CortexM7',
'core': 'Cortex-M7',
'idcode_reg': 0xE0042000,
'devices': [
{
Expand Down

0 comments on commit fafd4e0

Please sign in to comment.