Port LMIC to other controller without Arduino #674
Replies: 2 comments 2 replies
-
This will work. We ported to a RISC-V outside the Ardiuno environment. You have to recode hal.cpp, and you have to deal carefully with timing. No changes were made to the core LMIC at all; it has no Arduino dependencies. The makefiles built the lmic directory, but provided our own hal.cpp equivalent which was outside the tree. Size will be identical to the size on an M0. Turn off class B support (BEACON and PING) and you'll minimize the footprint. I didn't publish that code, because it was for the RISC-V FPGA that MCCI did with a customer, and it never went to production. That was a 6 MHz CPU, and things worked fine. It was the uncompressed RISC instruction set so code density is about 50% of Thumb code, and it still fit in 64k with an app. If you read the IBM documentation, they discuss a little about what's needed from the HAL. Best regards, |
Beta Was this translation helpful? Give feedback.
-
For an example, see https://github.com/manuelbl/ttn-esp32. It's a port to ESP-IDF, Espressif's RTOS for ESP32 MCU. To make easy to use, LMIC is run in a separate task so users don't need to be careful about timing. |
Beta Was this translation helpful? Give feedback.
-
Hy there,
we are about to start our own LoRa project using a TI ARM processor and an SX1276. In earlier projects we have used Murata ABZ module.
What would be your recommended approach to implement LoRa stack and SX1276 driver? Port this repository to our platform? How much Arduino dependencies will we be facing? Any of them difficult to overcome?
Our system holds a ARM Cortex M3 with about 64k Flash available, running TI RTOS. Do we have a chance to get LoRa running on this? Can you estimate system requirements (Flash, RAM, CPU)?
Any help appreciated
Harald
Beta Was this translation helpful? Give feedback.
All reactions