Search found 14 matches

by dvrhax
Fri Mar 08, 2019 10:58 pm
Forum: Programs, Libraries and Tools
Topic: uPyMySQL
Replies: 11
Views: 3649

Re: uPyMySQL

The datetime stuff is a bit of a kludge so you'd probably have to see how it fit within your use case. I generally set up the table with a timestamp field that way I don't have to worry about it on the board. Plus my boards don't have RTC so it's easiest just not to have to deal with it. create tabl...
by dvrhax
Sat Mar 02, 2019 2:44 am
Forum: Programs, Libraries and Tools
Topic: uPyMySQL
Replies: 11
Views: 3649

Re: uPyMySQL

I've only recently picked this back up and I'm really only using it for logging functionality so basic inserts myself. I have gone back and shrunk the size considerably and also worked through some more kinks including some with regards to "errno" so If you do pick up the project again make sure to ...
by dvrhax
Thu Feb 28, 2019 2:57 am
Forum: Development of MicroPython
Topic: Build Issue
Replies: 9
Views: 744

Re: Build Issue

That did it. I removed a lot of the custom error handling and between that and removing BTree I'm now compiled and running on the board. So now just sifting through some errors on the board from the limited scope of some of the models that didn't show itself when I was running the Unix port. Thanks ...
by dvrhax
Wed Feb 27, 2019 1:22 pm
Forum: Development of MicroPython
Topic: Build Issue
Replies: 9
Views: 744

Re: Build Issue

Apologize if I missed this in the docs somewhere, but where do you set the optimization level for mpy-cross during the build? I'd like to run -O3 but can't seem to find where I would set that.

Thanks
by dvrhax
Tue Feb 26, 2019 11:25 pm
Forum: Programs, Libraries and Tools
Topic: uPyMySQL
Replies: 11
Views: 3649

Re: uPyMySQL

Did you have any luck resolving this? I'm getting back into the codebase as I can't get it to fit onto my Feather Huzzah and I'd like to incorporate whatever fixes you did or work on fixing it myself. Do you have the code that you ran to get the error?
by dvrhax
Tue Feb 26, 2019 11:20 pm
Forum: Development of MicroPython
Topic: Build Issue
Replies: 9
Views: 744

Re: Build Issue

So commenting out those lines did allow it to compile past that step. Unfortunately I've now found that my library is 34k to large. I guess it's time to start cutting. Thanks for everyone's help, but can someone explain to me why this happens? It would appear to me that this would not be the expecte...
by dvrhax
Tue Feb 26, 2019 10:52 pm
Forum: Development of MicroPython
Topic: Build Issue
Replies: 9
Views: 744

Re: Build Issue

Thanks for all the response and help on this. __init__.py:NULL = "NULL" __init__.py: 'InterfaceError', 'InternalError', 'MySQLError', 'NULL', 'NUMBER', __init__.py: "NULL", "__version__", constants/CR.py:CR_NULL_POINTER = 2029 constants/ER.py:BAD_NULL_ERROR = 1048 constants/ER.py:NULL_COLUMN_IN_INDE...
by dvrhax
Tue Feb 26, 2019 4:00 am
Forum: Development of MicroPython
Topic: Build Issue
Replies: 9
Views: 744

Build Issue

Hoping someone can help out with an issue I've run into building micropython I followed the instructions here for setting up the environment: https://github.com/pfalcon/esp-open-sdk I then cloned micropython Ran: git submodule update --init Ran: make -C mpy-cross Ran: cd ports/esp8266 Ran: make axtl...
by dvrhax
Fri Jul 14, 2017 1:28 am
Forum: Development of MicroPython
Topic: Compiling in scripts
Replies: 3
Views: 3053

Re: Compiling in scripts

Thanks for the clarification. I was looking to do the latter I have the mysql library that I was looking to use but I didn't want it cluttering up the file system plus I assumed there would be other advantages to having it compiled in. Thanks to the both of you for your help.
by dvrhax
Wed Jul 12, 2017 2:57 am
Forum: Development of MicroPython
Topic: Compiling in scripts
Replies: 3
Views: 3053

Compiling in scripts

Looking through the forum it appears that this should be possible but doesn't go into great details of the specifics about how to include your own custom python modules into the binary so that your programs can access them natively. Specifically I'm looking for where in the src tree you would put sc...