lugl4313820 发表于 2022-1-22 14:59

【国民技术N32G457评测】1、开箱+点灯

本帖最后由 lugl4313820 于 2022-1-22 15:14 编辑

<p style="margin-top: 0px; margin-bottom: 0px; text-align: center;"><span style="font-family: '黑体'; font-size: 24pt; color: #000000; font-weight: bold;">N32G45XVL-STB&nbsp;&nbsp;</span><span style="font-family: '黑体'; font-size: 24pt; color: #000000; font-weight: bold;">开箱+点灯</span></p>

<p>&nbsp;</p>

<p style="text-align: left; margin-top: 0; margin-bottom: 0;"><span style="font-size:16px;"><span style="font-family: 宋体; color: rgb(0, 0, 0); font-weight: bold;">&nbsp; &nbsp;</span><span style="font-family:宋体;"><span style="color: rgb(0, 0, 0); font-weight: bold;">非常感谢《eeworld电子工程世界》开发板评测项目评委们对我的信任,这是我的第三个评测项目,今天开发板已经到货,现将开箱情况汇报如下:</span></span></span></p>

<p></p>

<p><span style="font-size:16px;">收到的包装外盒有压得有点变形,但是开发板还是完好无损的。做工与用料也是非常的扎实。点赞的就是还送了USB线。</span></p>

<p><span style="font-size:16px;">插上电源后,电源灯亮,但是LED灯没有闪烁。可能是出厂没有下载固件的原因吧。</span></p>

<p><span style="font-size:10.5pt"><span style="font-family:Calibri"><b><span style="font-size:16.0000pt"><span style="font-family:宋体"><span style="color:#000000"><span style="font-weight:bold"><font face="宋体">打</font>RT-Thread Studio 新建项目(选择开发板)</span></span></span></span></b></span></span></p>

<p></p>

<p><span style="font-size:16px;"><span style="font-family:Calibri"><span style="font-family:宋体"><font face="宋体">修改</font><font face="Calibri">drv_gpio.c 的#define N32F10X_PIN_NUMBERS 100 // 默为48 根据说明修改为100</font></span></span>&nbsp;&nbsp;</span></p>

<p><span style="font-size:16px;">修改main.c的LED1宏</span></p>

<p><span style="font-size:16px;">/* defined the LED1 pin: PB5 */<br />
#define LED1_PIN &nbsp; &nbsp;91 &nbsp;</span></p>

<p></p>

<p><span style="font-size:16px;">编译通过 :</span></p>

<p></p>

<p><span style="font-size:16px;">下载:</span></p>

<p> <span style="font-size:16px;">&nbsp;&nbsp;LED1成功闪烁!</span></p>

<p><span style="font-size: 16px;">这次官方提供了齐全的资料:</span></p>

<p><span style="font-size:10.5pt"><span style="font-family:Calibri"><u><span class="15" style="font-size:12.0000pt"><span style="font-family:宋体"><span style="color:#0000ff"><span style="text-decoration:underline"><span style="text-underline:single"><font face="宋体">官方提供:国民技术</font>N32G457xx资料包 - 国产芯片交流 - 电子工程世界-论坛 </span></span></span></span></span></u></span></span></p>

<p><span style="font-size: 16px;"><a href="https://bbs.eeworld.com.cn/thread-1192762-1-1.html#pid3118606" target="_blank">https://bbs.eeworld.com.cn/thread-1192762-1-1.html#pid3118606</a></span></p>

<p><span style="font-size: 16px;">拿到开发板,给我的印象还是非常好的。</span></p>

<p><span style="font-size: 16px;">而使用RT_Thread 入门也是非常的快。</span></p>

<p><iframe allowfullscreen="true" frameborder="0" height="510" src="https://training.eeworld.com.cn/shareOpenCourseAPI?isauto=true&amp;lessonid=32280" style="background:#eee;margin-bottom:10px;" width="700"></iframe><br />
&nbsp;</p>

<p>&nbsp;</p>

fxyc87 发表于 2022-1-24 08:47

<p><strong>RT-Thread Studio开发确实挺方便的,比MDK要方便。</strong></p>

fxyc87 发表于 2022-1-24 13:21

<p>D:\RT-ThreadStudio&gt;cd /d D:\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\RealThread\PyOCD\0.1.3&nbsp;<br />
D:\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\RealThread\PyOCD\0.1.3&gt;pyocd.exe flash --target=N32G457VEL7 --erase=auto --frequency=1000000 D:\RT-ThreadStudio\workspace\SoftDCDC_Power\Debug\rtthread.bin&nbsp;<br />
0023526:CRITICAL:__main__:Read timed out<br />
Traceback (most recent call last):<br />
&nbsp; File &quot;pyocd\probe\cmsis_dap_probe.py&quot;, line 147, in open<br />
&nbsp; File &quot;pyocd\utility\concurrency.py&quot;, line 28, in _locking<br />
&nbsp; File &quot;pyocd\probe\pydapaccess\dap_access_cmsis_dap.py&quot;, line 592, in open<br />
&nbsp; File &quot;pyocd\probe\pydapaccess\cmsis_dap_core.py&quot;, line 135, in dap_info<br />
&nbsp; File &quot;pyocd\probe\pydapaccess\interface\pywinusb_backend.py&quot;, line 161, in read<br />
pyocd.probe.pydapaccess.dap_access_api.DAPAccessIntf.DeviceError: Read timed out<br />
The above exception was the direct cause of the following exception:<br />
Traceback (most recent call last):<br />
&nbsp; File &quot;pyocd\__main__.py&quot;, line 362, in run<br />
&nbsp; File &quot;pyocd\__main__.py&quot;, line 520, in do_flash<br />
&nbsp; File &quot;pyocd\core\session.py&quot;, line 302, in __enter__<br />
&nbsp; File &quot;pyocd\core\session.py&quot;, line 416, in open<br />
&nbsp; File &quot;pyocd\probe\cmsis_dap_probe.py&quot;, line 167, in open<br />
&nbsp; File &quot;&lt;string&gt;&quot;, line 3, in raise_from<br />
pyocd.core.exceptions.ProbeError: Read timed out<br />
执行完毕, 耗时:34439ms.</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>求指点,我安装rt-thread studio 后,一直下载不成功,编译是正常的</p>

<p>楼主没有遇到过这个问题么?</p>

<p>我查了一下是pyocd不支持这个芯片,</p>

<p>我连续安装了四次软件,仍然不行,</p>

lugl4313820 发表于 2022-1-24 13:30

fxyc87 发表于 2022-1-24 13:21
D:\RT-ThreadStudio&gt;cd /d D:\RT-ThreadStudio\repo\Extract\Debugger_Support_Packages\RealThread\PyOC ...

<p>我也遇到过,拨下USB再插上,就可以解决了。</p>

fxyc87 发表于 2022-1-24 13:45

lugl4313820 发表于 2022-1-24 13:30
我也遇到过,拨下USB再插上,就可以解决了。

<p>太尴尬了,哈,果然重插USB就好了</p>

<p>我重装4次rt-thread studio软件,花了今天一上午,哈,没好,</p>

<p>谢谢。</p>

lugl4313820 发表于 2022-1-24 17:26

fxyc87 发表于 2022-1-24 13:45
太尴尬了,哈,果然重插USB就好了

我重装4次rt-thread studio软件,花了今天一上午,哈,没好,

谢 ...

<p>其实我是在用stm32用st_link的总结出来的,有时明明插得好好的,就是没有认识到MCU,拨下来,再插上就好,有时得好几次才行。</p>

freebsder 发表于 2022-1-24 21:07

fxyc87 发表于 2022-1-24 08:47
RT-Thread Studio开发确实挺方便的,比MDK要方便。

<p>rt thread studio有rtthread的运行时诊断功能吗?</p>

fxyc87 发表于 2022-1-25 09:04

freebsder 发表于 2022-1-24 21:07
rt thread studio有rtthread的运行时诊断功能吗?

<p>这个我还没试,但感觉目前支持不是太好</p>

<p>N32G457的外设寄存器都显示不出来。</p>

freebsder 发表于 2022-1-26 19:22

fxyc87 发表于 2022-1-25 09:04
这个我还没试,但感觉目前支持不是太好

N32G457的外设寄存器都显示不出来。

<p>不是有svd那个东西?</p>

fxyc87 发表于 2022-2-1 13:05

freebsder 发表于 2022-1-26 19:22
不是有svd那个东西?

<p>正常的我SDK安装包下载完后一切都是自动搞好的,但默认装好SDK后没有</p>
页: [1]
查看完整版本: 【国民技术N32G457评测】1、开箱+点灯