Navigation

    Freqchip开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    1. Home
    2. Mars
    M
    • Continue chat with Mars
    • Start new chat with Mars
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups

    Mars

    @Mars

    2
    Reputation
    350
    Posts
    7087
    Profile views
    5
    Followers
    0
    Following
    Joined Last Online

    Mars Follow

    Posts made by Mars

    • RE: 修改FLASH_CAPACITY地址后导致配对卡死

      @ding56239
      // <h> FLASH Configuration
      // <o> FLASH_CAPACITY
      // <i> Internal Flash capacity selection, Default: 4Mb
      // <0x02000000=> 128Mb
      // <0x01000000=> 64Mb
      // <0x00800000=> 32Mb
      // <0x00100000=> 8Mb
      // <0x00080000=> 4Mb
      // <0x00040000=> 2Mb
      #define FLASH_CAPACITY 0x02000000

      #define BLE_STACK_KEY_STORAGE_OFFSET (FLASH_CAPACITY-0x1000)
      #define BLE_REMOTE_SERVICE_SAVE_ADDR (FLASH_CAPACITY-0x2000)
      #define BLE_BONDING_INFO_SAVE_ADDR (FLASH_CAPACITY-0x3000)

      posted in FR800x
      M
      Mars
    • RE: 多从机开机,然后主机上电开机多连,好像就容易出现协议栈错误gatt_api.c 193

      你app_config.h的最大连接数改了吗

      posted in FR800x
      M
      Mars
    • RE: 使用fr8016ha芯片开发,现在不需要使用蓝牙的协议栈,把他当作普通的mcu开发,节省ram。有相关历程吗?现在查找到的资料都是带有蓝牙协议栈的。

      没有单独的mcu库哦

      posted in FR801xH
      M
      Mars
    • RE: FR802x串口接收超时

      0_1783934500681_00c332a3-30c0-4e1e-ae6f-2604a27a6e62-image.png 0_1783934504646_ef57988a-4ff7-488c-84c6-4f18b17a20e9-image.png

      posted in FR802x
      M
      Mars
    • RE: FR802x串口接收超时
      
      # define AT_RECV_MAX_LEN             513
      static void app_at_recv_c(uint8_t *rx_buff,uint16_t rx_length)
      {
         if((memcmp(at_recv_buffer,"AT#",3)==0)||(memcmp(at_recv_buffer,"AT+",3)==0))
         {
          uint16_t cmd_len=rx_length-3;
          
        struct app_task_event *event;
        event = app_task_event_alloc(APP_TASK_EVENT_AT_CMD, cmd_len, false);
        if(event) {
         memcpy(event->param, &at_recv_buffer[3], cmd_len);
         app_task_event_post(event, false);
        }
          }
         else
         {
        struct app_task_event *event;
        event = app_task_event_alloc(APP_TASK_EVENT_SPEED, at_recv_index, false);
        if(event) {
         memcpy(event->param, at_recv_buffer, at_recv_index);
         app_task_event_post(event, false);
        }
        
         }
         memset(at_recv_buffer,0,AT_RECV_MAX_LEN);
       at_recv_index = 0;
      }
      
      extern USART_HandleTypeDef log_usart;
      __RAM_CODE void USART2_IRQHandler(void)
      {
        if((__USART_GET_INT_STATUS(USART2, USART_INT_RX)) || (__USART_GET_INT_STATUS(USART2, USART_INT_RFTO)))
          {
              if(log_usart.Init.DataLength == USART_DATA_LENGTH_9BIT)
              {
                  /*Rx ready */
                  while(__USART_GET_SR_STATUS(USART2, USART_STATUS_DR))
                  {
                      (*(uint16_t*)log_usart.p_RxData) = USART2->DR;
      
                      log_usart.p_RxData += sizeof(uint16_t);
                      log_usart.u32_RxCount++;
                  }            
              }
              else
              {
                  /* Rx ready */        
                  while(__USART_GET_SR_STATUS(USART2, USART_STATUS_DR))
                  {
                      at_recv_buffer[at_recv_index++] = USART2->DR;
                      if(at_recv_index>=AT_RECV_MAX_LEN)
          {
           app_at_recv_c(&at_recv_buffer[0],at_recv_index);
          }
      
                  }            
              }
      
          }/* Receiver Timeout */
          if(__USART_GET_INT_STATUS(USART2, USART_INT_RTO))
          {
              __USART_CLEAN_INT_STATUS(USART2, USART_INT_RTO);
        at_recv_buffer[at_recv_index++] = USART2->DR;
      //  for(uint8_t i=0;i<at_recv_index;i++)
      //  {
      //   printf("%c ",at_recv_buffer[i]);
      //  }
      //        printf("Packet Len = %d\r\n", at_recv_index);
              /*这里处理完整的数据包*/
        app_at_recv_c(&at_recv_buffer[0],at_recv_index);
          }
      }
      
      
      posted in FR802x
      M
      Mars
    • RE: FR8008GP的flash是8M的。在keil中我只有512k的FLM文件,请问哪里有8m的FLM文件

      什么都没有改使用原始sdk会出现吗

      posted in FR800x
      M
      Mars
    • FR802x串口接收超时

      FR802x支持串口超时判断,使用方法是怎么样的?

      posted in FR802x
      M
      Mars
    • RE: FR802x原始SDK的USB无法识别的问题

      0_1783932568058_f6567525-2b40-4572-89b3-708afabd0270-d20504979bf78bd101cdf271de101dec.png
      修改办法参考上面

      posted in FR802x
      M
      Mars
    • FR802x原始SDK的USB无法识别的问题

      FR802x原始SDK的USB无法识别的问题

      posted in FR802x
      M
      Mars