HomeSmartMesh / IoT_STM8

for STM8 Nodes
20 stars 7 forks source link

Cannot compile STM8L fw with newest IAR #1

Open suprimex opened 5 years ago

suprimex commented 5 years ago

Got such errors when trying to compile first firmware pr01_Node_Alive:

Error[Pe020]: identifier "CLK_CRTCR_RTCDIV" is undefined P:\Compile\IoT_STM8\libs\clock_led.c 82 Error[Pe020]: identifier "CLK_CRTCR_RTCSEL" is undefined P:\Compile\IoT_STM8\libs\clock_led.c 83 Error[Pe020]: identifier "RTC_WUTRH_WUT" is undefined P:\Compile\IoT_STM8\libs\clock_led.c 129 Error[Pe020]: identifier "RTC_WUTRL_WUT" is undefined P:\Compile\IoT_STM8\libs\clock_led.c 130

Look's like IAR changed their definitions in file iostm8l151f3.h

wassfila commented 5 years ago

Thank you for pointing out the issue, I just rechecked with my IAR, I'm using version :

As this project is archived I would not manage to update it to the latest version, but you suggest a pull request, I would just take it. I moved since to STM32, then nRF51822, nRF52832 and now on nRF52840, and I'm using the ESP32 for the wifi projects, those have github repositories that I'm working on maintaining.

suprimex commented 2 years ago

nRF52840 modules have tripled prices nowadays... So I am back to old STM8 (just have a bunch of them).

wassfila commented 2 years ago

I understand, that makes total sense. But you must have a specific use case. In general, the cost of the chip can only be optimized on large scale production, given the cost of pcb, mounting,... On small scale, your time is also worth money, unless you're a student learning or a hobbyist working for non profit organization. If you have any home automation project you'd like to collaborate on in open source, let me know. see examples of community and shared projects on https://www.homesmartmesh.com/