Closed pljakobs closed 2 weeks ago
I think, the function signature is smg_timer_arm_ticks(smg_timer_t*, unsigned long, bool)
while the linker is looking for unsigned int
, so this is a data type size issue again?
I have this in my app:
#ifdef __riscv
//#if SMING_SOC==esp32c3
//#warning "redefining INT32 to be int, not long int for riscv based esp32c3"
#undef __INT32_TYPE__
#define __INT32_TYPE__ int
#undef __UINT32_TYPE__
#define __UINT32_TYPE__ unsigned int
#endif // __riscv
with this redefine removed, the app builds ok. Is this no longer necessary with IDF 5.2?
okay, I can't see any issues without this redefine - it seems that this has been fixed in the espressif code.
building for Esp8266 and Esp32 work fine, esp32c3 breaks at the link stage:
not sure what to do with this.