Integrating gsm module from lobo port to main micropython esp32 port

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
Duality
Posts: 16
Joined: Tue Jun 09, 2020 2:43 pm

Integrating gsm module from lobo port to main micropython esp32 port

Post by Duality » Mon Nov 23, 2020 9:44 am

Hi All,

I want to integrate gsm module provided in lobo esp32 port here in the micropython esp32 port. It will be very useful for all, in my opinion, who are using gsm hardware in there projects. So, I have :
1. copied the modgsm.c, modgsm.h file in the ports/esp32 folder
2. created a libs folder, in which copied libGSM.h and libGSM.c files
3. Appropriately modified the Makefile to include modgsm.c
4. modified the mpconfigport.h to include the gsm module.

After few iterations and removing errors, I am stuck at this error:

Code: Select all

LINK build-GENERIC/application.elf
build-GENERIC/py/objmodule.o:(.rodata.mp_builtin_module_table+0xf4): undefined reference to `mp_module_gsm'
Makefile:780: recipe for target 'build-GENERIC/application.elf' failed
make: *** [build-GENERIC/application.elf] Error 1


Has anyone successfully build this? What does the error suggest here?

Regards

Post Reply