Search found 218 matches

by SpotlightKid
Fri Nov 17, 2017 7:36 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 20
Views: 244

Re: Compile error on Android Armv7l with Clang

Unfortunately, it's not so easy. Two of the functions in "py/nlrthumb.c" with inline assembler have C statements, which are apparently there just to placate GCC. I tried guarding them with #if defined(__GNUC__) && !defined(__clang__) but the function "nlr_thumb" also has more C statements at the beg...
by SpotlightKid
Fri Nov 17, 2017 7:22 pm
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 7
Views: 124

Re: Noggin: A simple web framework that will run on your esp8266 boards.

Not so much different modules, but the standard modules have - unfortunately - slight API differences, e.g. in signatures, where the number or types of arguments differ. The point in case here is the usocket module, where on the esp8266 and the wipy (I think), the socket functions, which take an add...
by SpotlightKid
Thu Nov 16, 2017 7:04 pm
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 7
Views: 124

Re: Noggin: A simple web framework that will run on your esp8266 boards.

I was playing around a bit with noggin under the unix port. Here are a few observations/tips: 1. You need to install the "socket" module from micropython-lib: micropyrthon -u upip micropython-socket (The usocket module from the unix port does not support passing addresses as (host, port) tuples, so ...
by SpotlightKid
Wed Nov 15, 2017 11:43 pm
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 7
Views: 124

Re: Noggin: A simple web framework that will run on your esp8266 boards.

flask.Response is just a thin wrapper for werkzeug.Response and doesn't override its init Method, so the comment I linked to in the API docs also applies to Flask: the mime_type argument gets special treatment for 'text/*' types, where the charset is appended. Your code doesn't do that. https://git...
by SpotlightKid
Wed Nov 15, 2017 11:21 pm
Forum: General Discussion and Questions
Topic: Noggin: A simple web framework that will run on your esp8266 boards.
Replies: 7
Views: 124

Re: Noggin: A simple web framework that will run on your esp8266 boards.

Seems very nice an clean! A minor comment: instead of 'mimetype' I think 'content_type' (e.g. as a Response kwarg) would be more appropriate, given the example set by other similar APIs, since you're sending the value unmodified as the "Content-type" header: http://werkzeug.pocoo.org/docs/0.12/wrapp...
by SpotlightKid
Wed Nov 15, 2017 11:09 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 20
Views: 244

Re: Compile error on Android Armv7l with Clang

The point is that the C instructions in the naked functions aren't really necessary, don't really make sense, and are just there to (probably) silence GCC warnings. They should probably be guarded if #ifdefs.
by SpotlightKid
Wed Nov 15, 2017 11:06 pm
Forum: Hardware Projects
Topic: Pyboard based GSM phone.
Replies: 6
Views: 219

Re: Pyboard based GSM phone.

This project was also highlighted in one of the Python newsletters I have subscribed too. Very impressive!
by SpotlightKid
Wed Nov 15, 2017 10:53 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 20
Views: 244

Re: Compile error on Android Armv7l with Clang

I'm not interested in a workaround. I'm interested in improving MicroPython so that it compiles cleanly out of the box with Clang.
by SpotlightKid
Wed Nov 15, 2017 10:50 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 20
Views: 244

Re: Compile error on Android Armv7l with Clang

Well, apart from that compiling MicroPython with Clang on armv7l currently is not supported/working, no ;)

I'll try with Clang 5.0.0 on the raspi as well (with the binaries form here), I first need to upgrade the system to a bigger microSD though :(
by SpotlightKid
Wed Nov 15, 2017 10:23 pm
Forum: Development of MicroPython
Topic: Compile error on Android Armv7l with Clang
Replies: 20
Views: 244

Re: Compile error on Android Armv7l with Clang

Interestingly, on my Raspberry Pi 3 I get a different error when compiling with Clang (has the rather old version 3.5.0, though): $ make CC=clang V=1 python ../../py/makeversionhdr.py build/genhdr/mpversion.h CC ../../py/asmarm.c clang -I../../lib/berkeley-db-1.xx/PORT/include -I. -I../.. -Ibuild -I...