Search found 8 matches

by houneie
Tue Oct 06, 2020 4:37 am
Forum: Other Boards
Topic: How to add modules like ujson, upip and etc?
Replies: 12
Views: 892

Re: How to add modules like ujson, upip and etc?

Undefined reference means the linker doesn't find the code which defines what mp_type_stringio is. So the solution is fairly simple: look for the file which defines mp_type_stringio, make sure the code isn't disabled by preprocessor macros and build the file as well. In this case the file is objstr...
by houneie
Mon Oct 05, 2020 5:30 am
Forum: Other Boards
Topic: How to add modules like ujson, upip and etc?
Replies: 12
Views: 892

Re: How to add modules like ujson, upip and etc?

Update: I found the appropriate version of modujson.c which is compatible with my port of micropython. Now those errors are gone and a new came I think it is related to the implementation of constructor/destructor. LINK micropython.elf /home/abdrehman/src/sifive.com/riscv64-unknown-elf-gcc-8.3.0-202...
by houneie
Fri Oct 02, 2020 12:14 pm
Forum: Other Boards
Topic: How to add modules like ujson, upip and etc?
Replies: 12
Views: 892

Re: How to add modules like ujson, upip and etc?

Basically this a custom version fro RISCV based board (hifive1-revb). Yes, files were deleted. The repository is in version control and the directory structure is different when compared to official micropython's.
by houneie
Fri Oct 02, 2020 6:13 am
Forum: Other Boards
Topic: How to add modules like ujson, upip and etc?
Replies: 12
Views: 892

Re: How to add modules like ujson, upip and etc?

Can you point me out the commit version of which I should use modujson?

Thank you very much for your support.
by houneie
Mon Sep 28, 2020 9:58 am
Forum: Other Boards
Topic: How to add modules like ujson, upip and etc?
Replies: 12
Views: 892

Re: How to add modules like ujson, upip and etc?

I have added https://github.com/micropython/micropython/blob/master/extmod/modujson.c in my /extmod directory. I have also updated py.mk file. But when I make it throws me the following errors: Use make V=1 or set BUILD_VERBOSE in your environment to increase build verbosity. make: Warning: File 'mo...
by houneie
Fri Sep 18, 2020 4:50 am
Forum: Other Boards
Topic: How to add modules like ujson, upip and etc?
Replies: 12
Views: 892

Re: How to add modules like ujson, upip and etc?

Will check and get back to you. Thank you very much for your support.
by houneie
Thu Sep 17, 2020 8:22 am
Forum: Other Boards
Topic: How to add modules like ujson, upip and etc?
Replies: 12
Views: 892

Re: How to add modules like ujson, upip and etc?

So basically I am an Intern in a company and they have ported basic support on Micropython to a board which they are developing right now. But they don't have modules like ujson, upip, urequest. Modules get added to the firmware in different ways depending on whether they're written in C or Python....
by houneie
Thu Sep 17, 2020 5:36 am
Forum: Other Boards
Topic: How to add modules like ujson, upip and etc?
Replies: 12
Views: 892

How to add modules like ujson, upip and etc?

Hello Everyone, I am new to micropython world so advance apologies. So basically I am an Intern in a company and they have ported basic support on Micropython to a board which they are developing right now. But they don't have modules like ujson, upip, urequest. Can you please point me out to resour...