大家好,我正在使用带SPC5 Studio的SPC560C50L3 MCU。我正在尝试添加一个库文件,该文件使用大量堆栈和堆使用动态分配到我的应用程序中。由于堆栈溢出,我的代码常常陷入其中。现在我可以在user.ld文件中更改堆栈大小。但是如何在运行时检查堆栈和堆使用情况?任何建议都会有所帮助。问候THOMAS。 #spc560#stack-overflow以上来自于谷歌翻译以下为原文 Hello Everyone,I am working on SPC560C50L3 MCU with SPC5 Studio. I am trying to add a library file which uses heavy stack and heap using dynamic allocations into my application. My code used to stuck in between due to stack overflow. Now I am able to change the stack size in the user.ld file. But how do I check the stack and heap usage at run time ? Any suggestion would be helpful.RegardsTHOMAS. #spc560 #stack-overflow
2019-01-25 14:16
大家好,我想为SDCC项目生成寄存器映射定义头文件,最好是所有STM8 MCU。是否有任何数据库(XML,MDB,无论如何)可以生成它而不会损害任何许可证?提前致谢! #sdcc以上来自于谷歌翻译以下为原文 Hello all,I would like to generate register map definition header files preferably for all STM8 MCUs to for the SDCC project.Is there any database (XML, MDB, whatever) from what I could generate it without hurting any license?Thanks in advance! #sdcc
2019-05-17 11:24
嗨,我使用VISA lib作为USB封装器与Agilent34972a进行通信,并使用SCPI命令读取通道101:116,如下所示:1。重置设备* RST 2. SYST:REM 3. * CLS 4.设置扫描的通道号ROUT:SCAN(@ 101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116)5.设置自动量程上SENSE:VOLT:DC:RANG:AUTO ON,(@ 101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116)6.设置采样时间为100ms SENSE:VOLT:DC:APER 0.00001,(@ 101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116)7。触发扫描TRIG:COUNT INF 8.开始读READ?我观察到当我以100ms的间隔使用viRead函数读取USB端口时,我不会每次都获得所有通道的数据。我得到了零。我已经为viRead设置了80ms的超时时间,所以我每隔100ms就调用一次。上述方法有什么问题?在开始读数之前我是否遗漏了配置仪表的任何内容?有没有更好的方法,以便我能够以非常高的采样率收集所有数据表?请帮帮我。提前致谢。 以上来自于谷歌翻译 以下为原文Hi, I am using VISA lib as wrapper over USB to communicate with Agilent34972a and using SCPI commands to read channels 101:116 as follows: 1. Reset device *RST 2.SYST:REM 3.*CLS 4. Set channel numbers for scan ROUT:SCAN (@101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116) 5. Set auto ranging on SENSE:VOLT:DC:RANG:AUTO ON,(@101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116) 6. Set sampling time to 100ms SENSE:VOLT:DC:APER 0.00001,(@101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116) 7.Trigger scan TRIG:COUNT INF 8.Start read READ? I am observing that when I read USB port using viRead function at a interval of 100ms, I do not get data each time for all channels. I get zeros. I have set timeout of 80ms for viRead so that I call poll it for every 100ms. What is wrong in above approach? Am I missing anything in configuring meter before starting readings? Is there any better approach so that I can get all the data meter is collecting with very high sampling rate? Please help me. Thanks in advance.
2018-09-19 16:38