Search found 135 matches

by stijn
Mon Jun 19, 2017 6:09 pm
Forum: ESP8266 boards
Topic: sys_stdio_mphal.c compile failure?
Replies: 2
Views: 83

Re: sys_stdio_mphal.c compile failure?

Did you rebuild instead of just build? Missing qstr errors are more often than not due to https://github.com/micropython/micropython/issues/2982 and related issues
by stijn
Tue Jun 06, 2017 10:14 am
Forum: General Discussion and Questions
Topic: how to call c method which accepts structure as parameter from Micropython loading lib.so file
Replies: 2
Views: 128

Re: how to call c method which accepts structure as parameter from Micropython loading lib.so file

Kalyan wrote:I am getting segmentation failure when I am trying the same.


In cases like this you can usually figure out the problem by running micropython with the debugger attached: put a breakpoint in getss and inspect the argument
by stijn
Tue May 30, 2017 11:49 am
Forum: ESP8266 boards
Topic: micropython R1.9 ETA @@ released @@
Replies: 33
Views: 1740

Re: micropython R1.9 ETA @@ released @@

bmarkus wrote:While in general I agree with you, for me as an engineer True/False to indicate signal level is as useless as on/off.


Funny, I'm an electronics engineer and for me True/False is interchangable with High/Low or 1/0. Might depend on country/culture or so?
by stijn
Tue May 30, 2017 7:49 am
Forum: ESP8266 boards
Topic: micropython R1.9 ETA @@ released @@
Replies: 33
Views: 1740

Re: micropython R1.9 ETA @@ released @@

I guess he meant it was never part of the machine module (pyb still supports high/low) To me, high/low refers to an electrical state, and that is what a pin's state is. It is somewhat confusing that on/off is now used for both signal and pins... but maybe it's just me... Not just you, I find it rat...
by stijn
Sun May 28, 2017 7:10 pm
Forum: Other Boards
Topic: Compiling MicroPyton with IAR & Keil c compiler
Replies: 6
Views: 319

Re: Compiling MicroPyton with IAR & Keil c compiler

MicroPython uses string interning, purpose of this preprocessing which must basically be done after any change to any of the source files is to scan the source for identifiers like MP_QSTR_xxx and then add the representation for string xxx to the header qstrdefs.generated.h. Which in turn is include...
by stijn
Sun May 28, 2017 2:10 pm
Forum: Other Boards
Topic: Compiling MicroPyton with IAR & Keil c compiler
Replies: 6
Views: 319

Re: Compiling MicroPyton with IAR & Keil c compiler

They're generated by a mix of python code (makeqstrdata.py) and invoking the C preprocessor. See https://github.com/micropython/micropyt ... py.mk#L278
by stijn
Thu Apr 27, 2017 8:51 am
Forum: Other Boards
Topic: Raspberry Pi Port
Replies: 7
Views: 656

Re: Raspberry Pi Port

Indeed, as far as I know the unix build works out of the box (it definitely did once as I tried it, but that has been a while ago).
by stijn
Wed Apr 19, 2017 9:19 am
Forum: Other Boards
Topic: Including a macro/constant in a micropython module
Replies: 14
Views: 646

Re: Including a macro/constant in a micropython module

Hard to tell without seeing the full code. Based on your last post where you show the module's globals, there is no such thing as TEMPERATURE but you have to use something like mymodule.TEMP_MACRO in the python code to refere to that constant.. In any case, without any printing you are going to have...
by stijn
Mon Apr 17, 2017 12:00 pm
Forum: Other Boards
Topic: Including a macro/constant in a micropython module
Replies: 14
Views: 646

Re: Including a macro/constant in a micropython module

Looks like an error in the Python code, print the full exception using mp_obj_print_exception (search the source on examples on how to use it.

Go to advanced search