上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 25 下一页
摘要: odd parity 的计算方法,仅供参考。 该实现局限于MCU的大小端,如果大小端不同会导致不同,需要修改源代码。 uint8 l9945_oddParityCalcu(uint32 datain) { uint32 dataIn_uint32; uint32 result_uint32 = 0; 阅读全文
posted @ 2020-10-14 17:06 panrui 阅读(801) 评论(1) 推荐(0)
摘要: 经过实际使用中发现,bit field的使用不具备可移植性。 而且可能会由于编译过程中出现的alignment或者memory hole之类的问题,导致编译出的程序运行和预期不一致(也就是发生错误)。 此类问题比较底层,所以在实际对bit field的使用中应该小心,并加强测试。 阅读全文
posted @ 2020-10-14 13:37 panrui 阅读(144) 评论(0) 推荐(0)
摘要: c语言编译中,可能会出现以下报错: multiple storage classes in declaration specifiers 可能是 extern 修饰符 和 static 修饰符对一个function进行混用修饰,会导致问题。同时,再加入类似 __inline__ 或者 inline的 阅读全文
posted @ 2020-09-24 14:43 panrui 阅读(5494) 评论(0) 推荐(0)
摘要: 在.h文件中使用以下代码 extern __inline__ Mcal_WdtCalcSeqPassword(uint16 SeqPassword){ /*IFX_MISRA_RULE_08_05_STATUS=Allowed for inline functions defined in head 阅读全文
posted @ 2020-09-24 14:29 panrui 阅读(219) 评论(0) 推荐(0)
摘要: ld文件是传统的c语言开发中的重要一环。 __attribute__ ((section (".calram"))) __attribute__ ((section (".text"))) //.calflash 2 .text cal_flash_addr0 = ORIGIN(cal_pfls0_ 阅读全文
posted @ 2020-09-23 18:56 panrui 阅读(567) 评论(0) 推荐(0)
摘要: Tasks View The Tasks view lets you create your own tasks. In addition to having the Tasks view automatically add TODO and FIXME tasks from comments in 阅读全文
posted @ 2020-09-17 16:52 panrui 阅读(190) 评论(0) 推荐(0)
摘要: 解决方法为,将相对路径改为绝对路径既可以解决该问题。 相对路径的风格如下: "..\1_ToolEnv\0_Build\1_Config\Gnuc_overlay_bmhd_App2.lsl" 阅读全文
posted @ 2020-09-11 15:18 panrui 阅读(1046) 评论(0) 推荐(0)
摘要: LIN开发 首先,应当阅读规范。可以从官方网站免费获取到《LIN Specification Package Revision 2.1 November 24, 2006》。 TCANLINPro配合适配器(需要购买)发现功能良好。主从机模式的各个工作模式都支持。能够达到测试效果。 同时,使用软件示 阅读全文
posted @ 2020-09-04 16:52 panrui 阅读(721) 评论(0) 推荐(0)
摘要: 首先需要完成对TC275的Mcal关于FEE和FLS部分的基本配置。 可能还需要对Resource和Mcu模块进行最基本的配置。在集成过程中有以下需要注意的地方(可能是由于tc275的mcal的McalLib相关的公共资源的架构比较老): tc275的mcal的基本配置。已经能够正常使用生成配置的* 阅读全文
posted @ 2020-09-04 10:59 panrui 阅读(3244) 评论(1) 推荐(0)
摘要: openssl相关 涉及到对称加密、非对称加密、数字签名等。 https://www.openssl.org/ https://tls.mbed.org/ssl-library https://github.com/ARMmbed openssl enc -aes128 -e -in Remembe 阅读全文
posted @ 2020-08-31 21:52 panrui 阅读(179) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 25 下一页