导航

    Freqchip开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 最新
    1. 主页
    2. zhouzhigang
    3. 帖子
    Z
    • 继续与 zhouzhigang 聊天
    • 开始与 zhouzhigang 的新会话
    • 举报资料
    • 资料
    • 关注
    • 粉丝
    • 屏蔽
    • 主题
    • 帖子
    • 最佳
    • 群组

    zhouzhigang 发布的帖子

    • 请问如何协商BLE的连接参数

      代码里好像没有看到初始配置的接口

      // Link parameter update success event
      typedef struct
      {
      uint8_t conidx; //!< Connection index
      uint16_t con_interval; //!< Connection interval
      uint16_t con_latency; //!< Connection latency value
      uint16_t sup_to; //!< Supervision timeout
      }gap_evt_link_param_update_t;

      发布在 FR801xH
      Z
      zhouzhigang
    • RE: 需要一个彻底关断UART调试输出的方法

      你好,我们目前用到了所有的I/O,请问这样重定位是否有影响?

      发布在 FR801xH
      Z
      zhouzhigang
    • 需要一个彻底关断UART调试输出的方法

      我们的项目用到了所有的I/O,所以UART调试是复用的,当前UART日志的输出都是通过接口 co_printf ,建议开放该接口

      直接用一个什么都不执行的语句宏定义替代 co_printf,同时关闭休眠时UART的配置 ,发现有一个软件特性会受到影响,还没找到原因,理论上应该没影响才对

      发布在 FR801xH
      Z
      zhouzhigang
    • 请问LED2的电压可以调整么?

      比如直接输出VBAT?

      发布在 FR801xH
      Z
      zhouzhigang
    • RE: 买开发板?

      可以通过官方公众号申请

      0_1583315003635_4b874133-b2c5-4e27-919b-6a35eb474067-image.png

      发布在 FR801xH
      Z
      zhouzhigang
    • llc_write_bytes 接口好像有问题

      0_1583314359185_f6ae53bd-d054-4443-bba5-afdfe9d4c956-image.png

      研究IIC接口,API写的有点怪,因为我有个器件操作是没有REG ADDR的,所以还要修改API

      这个多字节写的API,buffer 这个操作,感觉有问题,可能会越界,我只是看,因为板子还没回来,还没有调试

      发布在 FR801xH
      Z
      zhouzhigang
    • RE: 请问如何软件控制LDO_OUT 的输出

      LDO可以控制,实际测试不能写入 0x10,系统无法运行

      问题:请问如何关闭这个LDO?输出 0

      发布在 FR801xH
      Z
      zhouzhigang
    • RE: 请教低功耗管理

      按照描述,直接增加上述代码,没有测试成功,我要等些时间再测试,当前调试其他模块

      发布在 FR801xH
      Z
      zhouzhigang
    • RE: 请教低功耗管理

      上述已经解决,是system_sleep_disable引起的,注释掉可以到7个uA

      新问题:系统如何进入POWER OFF mode呢?

      发布在 FR801xH
      Z
      zhouzhigang
    • RE: 请问如何软件控制LDO_OUT 的输出

      从代码看这个API配置寄存器 PMU_REG_ADKEY_ALDO_CTRL ,但找不到该寄存器的说明,该API也没有给出value如何配置

      发布在 FR801xH
      Z
      zhouzhigang
    • 请问如何软件控制LDO_OUT 的输出

      请问如何软件控制LDO_OUT 的输出

      发布在 FR801xH
      Z
      zhouzhigang
    • 请教低功耗管理

      使用本周的SDK

      使用 example/dev1.0/ble_multi_role 工程
      编译使用 GNU ARM GCC 6.2

      为了测试低功耗,把如下函数做了屏蔽,也就是软件不做任何事
      void user_entry_after_ble_init(void)
      {
      co_printf("BLE Multi Role\r\n");

          co_printf("POWER SAMVE EN:%d\r\n", __jump_table.system_option&SYSTEM_OPTION_SLEEP_ENABLE);
      
      
      
      // User task initialization, for buttons.
      //user_task_init();
      
      // Application layer initialization, can included bond manager init, 
      // advertising parameters init, scanning parameter init, GATT service adding, etc.    
      //multi_role_init();
      

      }

      硬件板子采用电池供电,拔掉 3V3_LDO的跳线,因为我还不知道如何关闭这个LDO,软件默认是打开的

      运行结果:
      1)系统重启后能进入低功耗,电流为 7uA左右
      2)过上20s左右,系统会退出低功耗,电流为 3mA左右,再也进入不了低功耗

      问题:为什么会出现2)

      测试2:如果让BLE进入广播模式,系统无法进入低功耗模式,使用原始的广播配置。

      问题:为什么这个时候无法进入低功耗?

      发布在 FR801xH
      Z
      zhouzhigang
    • 请问如何在启动阶段判断CHG引脚是否在充电?

      实际测试,充电器在位,在RESET开机阶段,PMU这个中断的上报是概率的
      attribute((weak)) attribute((section("ram_code"))) void charge_isr_ram(uint8_t type)

      问题1:请问有没有读取充电接口状态的接口或者寄存器?
      问题2:开启和关闭充电,以及电流是否软件无需控制?

      发布在 FR801xH
      Z
      zhouzhigang
    • RE: 20200227下载的SDK使用GCC ble_simple_peripheral编译不过,其他project可以编译通过

      当前我再使用 dev1.0/ble_multi_role 工程做开发,这个工程是没问题的。 但我看好像只有ble_simple_peripheral支持开发板所有的 外设功能,使用GCC编译不过,也可能你们没有提供GCC的lib

      发布在 FR801xH
      Z
      zhouzhigang
    • RE: 20200227下载的SDK使用GCC ble_simple_peripheral编译不过,其他project可以编译通过

      你好,我用的是GNU ARM GCC,你们推荐的 6.2 版本,不是KEIL

      发布在 FR801xH
      Z
      zhouzhigang
    • 20200227下载的SDK使用GCC ble_simple_peripheral编译不过,其他project可以编译通过

      C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc>make clean
      rm -rf build

      C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc>make
      mkdir build
      cd build && mkdir ble_simple_peripheral
      Compiling: ../code/proj_main.c
      Compiling: ../code/ble_simple_peripheral.c
      Compiling: ../code/user_task.c
      Compiling: ../../../../components/modules/button/button.c
      Compiling: ../../../../components/ble/profiles/ble_audio_profile/speaker_service.c
      Compiling: ../../../../components/ble/profiles/ble_simple_profile/simple_gatt_service.c
      Compiling: ../../../../components/modules/peripherals/oled/lcd.c
      Compiling: ../../../../components/modules/peripherals/audio/speaker.c
      Compiling: ../../../../components/modules/adpcm_ms/adpcm_ms.c
      Compiling: ../../../../components/modules/decoder/decoder.c
      Compiling: ../../../../components/modules/peripherals/sht3x_temp_humi/sht3x.c
      Compiling: ../../../../components/modules/peripherals/sht3x_temp_humi/sht3x_sw_i2c.c
      Compiling: ../../../../components/modules/peripherals/sht3x_temp_humi/sht3x_common.c
      Compiling: ../../../../components/modules/peripherals/sht3x_temp_humi/sht3x_sw_i2c_implementation.c
      Compiling: ../../../../components/modules/peripherals/capb18_air_pressure/capb18-001.c
      Compiling: ../../../../components/modules/peripherals/gyro/gyro_driver.c
      Compiling: ../../../../components/driver/driver_iic.c
      Compiling: ../../../../components/driver/driver_pmu.c
      Compiling: ../../../../components/driver/driver_keyscan.c
      Compiling: ../../../../components/driver/driver_pmu_qdec.c
      Compiling: ../../../../components/driver/driver_rtc.c
      Compiling: ../../../../components/driver/driver_uart.c
      Compiling: ../../../../components/driver/driver_wdt.c
      Compiling: ../../../../components/driver/driver_i2s.c
      Compiling: ../../../../components/driver/driver_ssp.c
      Compiling: ../../../../components/driver/driver_codec.c
      Compiling: ../../../../components/driver/driver_exti.c
      Compiling: ../../../../components/driver/driver_timer.c
      Compiling: ../../../../components/modules/platform/source/exception_handlers.c
      Compiling: ../../../../components/modules/platform/source/app_boot_vectors.c
      Compiling: ../../../../components/modules/patch/patch.c
      c:/program files (x86)/gnu tools arm embedded/6.2 2016q4/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/bin/ld.exe: cannot find -lgyro_alg
      collect2.exe: error: ld returned 1 exit status
      make: *** [../../../../components/toolchain/gcc/Makefile.common:156: build/ble_simple_peripheral.out] Error 1

      C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc>pause
      请按任意键继续. . .

      修改MAKEFILE对应的 -lgyro_alg 为 -gyro_alg 还是编译不过
      C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc>make
      mkdir build
      cd build && mkdir ble_simple_peripheral
      Compiling: ../code/proj_main.c
      Compiling: ../code/ble_simple_peripheral.c
      Compiling: ../code/user_task.c
      Compiling: ../../../../components/modules/button/button.c
      Compiling: ../../../../components/ble/profiles/ble_audio_profile/speaker_service.c
      Compiling: ../../../../components/ble/profiles/ble_simple_profile/simple_gatt_service.c
      Compiling: ../../../../components/modules/peripherals/oled/lcd.c
      Compiling: ../../../../components/modules/peripherals/audio/speaker.c
      Compiling: ../../../../components/modules/adpcm_ms/adpcm_ms.c
      Compiling: ../../../../components/modules/decoder/decoder.c
      Compiling: ../../../../components/modules/peripherals/sht3x_temp_humi/sht3x.c
      Compiling: ../../../../components/modules/peripherals/sht3x_temp_humi/sht3x_sw_i2c.c
      Compiling: ../../../../components/modules/peripherals/sht3x_temp_humi/sht3x_common.c
      Compiling: ../../../../components/modules/peripherals/sht3x_temp_humi/sht3x_sw_i2c_implementation.c
      Compiling: ../../../../components/modules/peripherals/capb18_air_pressure/capb18-001.c
      Compiling: ../../../../components/modules/peripherals/gyro/gyro_driver.c
      Compiling: ../../../../components/driver/driver_iic.c
      Compiling: ../../../../components/driver/driver_pmu.c
      Compiling: ../../../../components/driver/driver_keyscan.c
      Compiling: ../../../../components/driver/driver_pmu_qdec.c
      Compiling: ../../../../components/driver/driver_rtc.c
      Compiling: ../../../../components/driver/driver_uart.c
      Compiling: ../../../../components/driver/driver_wdt.c
      Compiling: ../../../../components/driver/driver_i2s.c
      Compiling: ../../../../components/driver/driver_ssp.c
      Compiling: ../../../../components/driver/driver_codec.c
      Compiling: ../../../../components/driver/driver_exti.c
      Compiling: ../../../../components/driver/driver_timer.c
      Compiling: ../../../../components/modules/platform/source/exception_handlers.c
      Compiling: ../../../../components/modules/platform/source/app_boot_vectors.c
      Compiling: ../../../../components/modules/patch/patch.c
      build/ble_simple_peripheral/ble_simple_peripheral.c.o: In function timer_refresh_fun': C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc/../code/ble_simple_peripheral.c:290: undefined reference toget_skip_num'
      C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc/../code/ble_simple_peripheral.c:291: undefined reference to get_skip_num' build/ble_simple_peripheral/gyro_driver.c.o: In functiongyroscope_timer_loop':
      C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc/../../../../components/modules/peripherals/gyro/gyro_driver.c:48: undefined reference to gyroscope_loop' build/ble_simple_peripheral/gyro_driver.c.o: In functiongyro_dev_init':
      C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc/../../../../components/modules/peripherals/gyro/gyro_driver.c:143: undefined reference to gyroscope_init' c:/program files (x86)/gnu tools arm embedded/6.2 2016q4/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/lib/thumb/v7-m\libg.a(lib_a-sbrkr.o): In function_sbrk_r':
      sbrkr.c:(.text._sbrk_r+0xc): undefined reference to _sbrk' c:/program files (x86)/gnu tools arm embedded/6.2 2016q4/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/lib/thumb/v7-m\libg.a(lib_a-writer.o): In function_write_r':
      writer.c:(.text._write_r+0x12): undefined reference to _write' c:/program files (x86)/gnu tools arm embedded/6.2 2016q4/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/lib/thumb/v7-m\libg.a(lib_a-closer.o): In function_close_r':
      closer.c:(.text._close_r+0xc): undefined reference to _close' c:/program files (x86)/gnu tools arm embedded/6.2 2016q4/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/lib/thumb/v7-m\libg.a(lib_a-lseekr.o): In function_lseek_r':
      lseekr.c:(.text._lseek_r+0x12): undefined reference to _lseek' c:/program files (x86)/gnu tools arm embedded/6.2 2016q4/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/lib/thumb/v7-m\libg.a(lib_a-readr.o): In function_read_r':
      readr.c:(.text._read_r+0x12): undefined reference to _read' c:/program files (x86)/gnu tools arm embedded/6.2 2016q4/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/lib/thumb/v7-m\libg.a(lib_a-fstatr.o): In function_fstat_r':
      fstatr.c:(.text._fstat_r+0x10): undefined reference to _fstat' c:/program files (x86)/gnu tools arm embedded/6.2 2016q4/bin/../lib/gcc/arm-none-eabi/6.2.1/../../../../arm-none-eabi/lib/thumb/v7-m\libg.a(lib_a-isattyr.o): In function_isatty_r':
      isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
      collect2.exe: error: ld returned 1 exit status
      make: *** [../../../../components/toolchain/gcc/Makefile.common:156: build/ble_simple_peripheral.out] Error 1

      C:\Users\zhong\Desktop\work\FREQCHIP-SDK\0227-sdk\FR801xH-SDK\examples\dev1.0\ble_simple_peripheral\gcc>pause
      请按任意键继续. . .

      发布在 FR801xH
      Z
      zhouzhigang