perseverance51

Results 8 issues of perseverance51

compiling cJSON.c... ..\NET\cJSON\cJSON.c(55): warning: #1293-D: assignment in condition if (!(copy = (char*)cJSON_malloc(len))) return 0; ..\NET\cJSON\cJSON.c(280): warning: #1293-D: assignment in condition ptr=str;while ((token=*ptr) && ++len) {if (strchr("\"\\\b\f\n\r\t",token)) len++; else if (token

needs info

- 针对读取AT24Cxx函数简化,对于AT24C32以下容量的读写是8位地址,AT24C32及以上容量的16位地址位,直接使用宏来区分所需操作的AT24Cxx器件的地址位。可以将现有区分的读写操作函数,合成通用的读写函数。 源文件:`FwLib_STC8\src\fw_i2c.c`: ```c // Copyright 2021 IOsetting // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with...

- 例程路径:FwLib_STC8\FwLib_STC8\demo\i2c\mpu6050: - mpu6050.c内容: ```c uint16_t swap(uint16_t num) { return (num >> 8) | (num #### MPU6050 设备是以大端模式存储的,即高字节在前,低字节在后,在读取原始数据出来后,将高字节的数据左移8位,再或上低字节的数据。 - 是否应该这样处理才合理: ```c uint16_t swap(uint16_t num) { return (num

- 串口2demo:FwLib_STC8\FwLib_STC8\demo\uart\uart2_timer2_tx.c > 在使用串口2的情况下必须要对IO进行配置,否则无法输出。在STC8H手册上(321页)有这么一段话: *** 关于 I/O 的注意事项: 1、 P3.0 和 P3.1 口上电后的状态为弱上拉/准双向口模式 2、 除 P3.0 和 P3.1 外,其余所有 IO 口上电后的状态均为高阻输入状态,用户在使用 IO 口 前必须先设置 IO 口模式 3、 芯片上电时如果不需要使用 USB 进行...

在uart1_timer1_tx.c文件中原外部变量引入: `extern __CODE uint16_t ticks_ms; extern __CODE uint8_t ticks_us, clkdiv;` 需要如下修改: ` #if defined (SDCC) || defined (__SDCC) extern __CODE uint16_t ticks_ms; extern __CODE uint8_t ticks_us; //clkdiv (include fw_reg_stc8h.h) #elif...

在`FwLib_STC8\FwLib_STC8\demo\rtcrtc_interrupt.c`中定义的中断服务函数: ` INTERRUPT(RTC_Routine, EXTI_VectRTC) { .............. } ` >- 📝目前Keil各个版本的C51和C251编译器均只支持32个中断号(0~31),后面的中断需要经过添加汇编调整指令跳转实现。 ### 🛠调整方法: - 🌿将中断号指向13号中断:EXTI_VectUser ` INTERRUPT(RTC_Routine, EXTI_VectUser) { .............. } ` - 🌿在`fw_exti.h`头文件中修改限定宏 ` //#if (__CONF_MCU_TYPE == 1 ) #define...

选择ESP8266,nodemcu1.0,烧录示例代码,会出现无线重启,栈溢出。 (Select ESP8266, nodemcu1.0, burn sample code, there will be wireless restart, stack overflow.) ` Serial.printf("%04d/%02d/%02d %02d:%02d:%02d %ld (%s)\n", p.getYear(), p.getMonth(), p.getMonthDay(), p.getHours(), p.getMinutes(), p.getSeconds(), p.getTime(), p.getTimeZone());` 将其中包含的%s,p.getTimeZone()打印对象去除掉就不会了,但是在烧录到esp32上面没有这个情况。 (Removing the...

### Answers checklist. - [X] I have read the [Rainmaker documentation](https://rainmaker.espressif.com/docs/get-started.html) and the issue is not addressed there. - [X] I have updated my IDF branch (release/vX.Y) to the latest...