• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
返回

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • 请教一下大神内核源码中的containerof该怎样去实现呢

    内核中源码是这样的#define container_of(ptr, type, member) ({\ const typeof( ((type *)0)->member ) *__mptr

    2022-05-07 11:00

  • 请问哪位大神可以详细介绍JavaScript浅拷贝和深拷贝?

    JavaScript数据类型JavaScript浅拷贝和深拷贝

    2020-11-05 07:16

  • Linux内核编码大括号和空格的放置

    。(大多数)关键字后要加一个空格。值得注意的例外是sizeof、typeof、alignof和__attribute__,这些关键字在一定程度上看起来更像函数(它们在Linux里也常常伴随小括号使用,尽管在C

    2019-05-10 05:39

  • EZBL EEPROM仿真

    大家好。在我的项目中,我使用EZBL(简单Bootloader V2.04)进行应用程序更新。在文档文件中说明EZBL库还实现了EEPROM仿真机制。我已经尝试过文档中的例子,它工作得很好,但是当更多的参数被添加到结构中时,只有第一个参数被写入Flash。下面是我使用的代码:在执行EZBLLWORKELDROM ObjutoScript之后,仅在Flash中保存了参数RealDestBulink,另一个值是0xFFFF。此外,在EZBL文档中,EEPROM仿真模块可以处理具有多个参数的结构。您知道为什么会发生这种情况吗? 以上来自于百度翻译 以下为原文 Hi Everyone.In my project I'm using the EZBL (Easy bootloader v2.04) for application update. In documentation files is stated that ezbl library has also the EEPROM emulation mechanism implemented. I've tried the example from documentation and it works fine, but when more parameters are added to the structure, only the first one is written in FLASH. Here is the code I'm using:#include #include "ezbl_integration/ezbl.h"EZBL_AllocFlashHole(emuEEData, 3072, 0x800, -1);struct{ unsigned int ledsToBlink; unsigned int test;} eeVars;int main(void){ EZBL_ReadROMObj(&eeVars, EZBL_FlashHoleAddr(emuEEData)); eeVars.ledsToBlink=1; eeVars.test=0; EZBL_WriteROMObj(EZBL_FlashHoleAddr(emuEEData), &eeVars); while(1) {Idle(); }} After the execution of EZBL_WriteROMObj funciton, only the parameter ledsToBlink is saved in FLASH, the other value is 0xFFFF. Also, in EZBL docs is stated that EEPROM emulation module can handle structures with multiple parameters.Do you have any idea why is this happening?

    2018-10-08 15:55

  • 几种数据库的大数据批量插入解决方法

    在之前只知道SqlServer支持数据批量插入,殊不知道Oracle、SQLite和MySql也是支持的,不过Oracle需要使用Orace.DataAccess驱动,今天就贴出几种数据库的批量插入解决方法。

    2020-11-04 07:59

  • IDF4.2.1的编译器优化bug导致panic怎么处理?

    uart_ll_is_tx_idle(uart_dev_t *hw){ typeof(hw->status) status = hw->status; return ((status.txfifo_cnt

    2024-06-21 10:55

  • inline关键字被优化导致此类函数被布局在flash内,怎么处理?

    static inline bool uart_ll_is_tx_idle(uart_dev_t *hw){ typeof(hw->status) status

    2024-06-21 12:03

  • 如何将RK3288的debug口从uart2修改为uart3呢

    如何将RK3288的debug口从uart2修改为uart3呢?有哪些修改步骤?

    2022-03-10 07:37

  • 如何用汽车诊断卡对MIT电机做调试?

    如何用汽车诊断卡对MIT电机做调试?

    2021-11-11 07:14

  • 如何更改android串口?

    如何更改android串口?

    2022-03-02 09:08