Search found 28 matches

by miltmobley
Fri Nov 20, 2020 7:34 pm
Forum: Development of MicroPython
Topic: micropython origins?
Replies: 4
Views: 141

micropython origins?

I am curious what version of cpython the original micropython is based on.

And does current micropython track changes made to cpython since then?

I am interested in studying changes made to create micropython, but only in the py folder,
e.g. lexer/scanner/parser/bytecode interpreter.
by miltmobley
Fri Nov 06, 2020 7:32 pm
Forum: MicroPython pyboard
Topic: power supply questions
Replies: 1
Views: 232

power supply questions

I assume this has been asked before, but it might take much time to find the conversation. If I connect an external 5v power supply to the board, will I also be able to connect usb cable to use repl over usb, etc? If so, which supply will the cpu actually use? My reason to do this is to ensure that ...
by miltmobley
Thu Nov 05, 2020 7:13 am
Forum: Development of MicroPython
Topic: Failed to execute callback function in timer's handler
Replies: 2
Views: 558

Re: Failed to execute callback function in timer's handler

Try replacing the lambda with an actual function. Most examples of lambda compute expressions and return some value.
They are not supposed to contain statements, which your print probably is.
by miltmobley
Thu Jul 30, 2020 2:43 am
Forum: Programs, Libraries and Tools
Topic: TypeError: 'bytearray' object doesn't support item deletion
Replies: 9
Views: 999

Re: TypeError: 'bytearray' object doesn't support item deletion

You are not being completely clear as to what you want to do with this big data.

See https://docs.python.org/3/library/stdty ... #bytearray for info as to what you can do to
a bytearray.
by miltmobley
Thu Jul 30, 2020 2:28 am
Forum: Pyboard D-series
Topic: VS Code Development
Replies: 1
Views: 455

Re: VS Code Development

I was wondering about this too, and did a quick look on Windows. There VS Code apparently wants to use the MINGW software package to execute a linux toolchain. So you would have to install MINGW and import an arm toolchain from a linux system. Presumably on Linux it would just execute the toolchain ...
by miltmobley
Thu Jul 30, 2020 2:18 am
Forum: Programs, Libraries and Tools
Topic: How to Build and Debug MicroPython Source Code with Eclipse
Replies: 15
Views: 2780

Re: How to Build and Debug MicroPython Source Code with Eclipse

This just a report of an attempt to build micropython on eclipse. I tried both latest eclipse for c/c++ download and current version of STM32Cube IDE (which is derived from elipse+cdt) on Windows 10 with same result. Both IDE's can create a new standard project for the pybv11 chip and find the toolc...
by miltmobley
Thu Jul 30, 2020 2:01 am
Forum: Programs, Libraries and Tools
Topic: Build upython on stm32cube ide?
Replies: 3
Views: 497

Re: Build upython on stm32cube ide?

I meant the stm32 hal library layer, which I assumed micropython would have some variant of. But after some investigation,
it seems the micropython libs are accessing the hardware directly and not calling through a hal layer.
Thanks for your other answers.
by miltmobley
Sun Jul 26, 2020 4:18 am
Forum: Programs, Libraries and Tools
Topic: How to Build and Debug MicroPython Source Code with Eclipse
Replies: 15
Views: 2780

Re: How to Build and Debug MicroPython Source Code with Eclipse

How about another approach? For stm32 boards you may be able to use STM32Cube IDE, which is an Eclipse derivative, and works on Windows. It has a predefined project config for the mpu used on pyboard, and for most other st mpu's. It installs its own toolchains, so you wouldn't have to mess with buil...
by miltmobley
Sun Jul 26, 2020 4:05 am
Forum: Programs, Libraries and Tools
Topic: How to Build and Debug MicroPython Source Code with Eclipse
Replies: 15
Views: 2780

Re: How to Build and Debug MicroPython Source Code with Eclipse

Backing up a little in the message stream, "create an Empty Makefile Project and import the micropython source code into it" will create a project folder in your current workspace, install its config files there, and then you import the source files there. "create a Makefile Project with Existing so...
by miltmobley
Sun Jul 26, 2020 3:27 am
Forum: ESP32 boards
Topic: Big float in Micropython (ESP32)
Replies: 3
Views: 478

Re: Big float in Micropython (ESP32)

I just noticed there is also a "decimal" module in cpython which may do what you want, i.e. more than eight decimal places.
But if it's not in micropython,you would have to port it.