Search found 30 matches

by miltmobley
Wed Jan 20, 2021 7:55 pm
Forum: Development of MicroPython
Topic: machine memory module
Replies: 3
Views: 1972

Re: machine memory module

Thanks for the example code and explanation
by miltmobley
Tue Jan 19, 2021 11:10 pm
Forum: Development of MicroPython
Topic: machine memory module
Replies: 3
Views: 1972

machine memory module

Why is the extmod machine_mem only used in the Unix and Windows ports? It would seem to be more dangerous if used there,
and also more useful on the embedded cards, for example to examine adc or dma registers?
by miltmobley
Fri Nov 20, 2020 7:34 pm
Forum: Development of MicroPython
Topic: micropython origins?
Replies: 4
Views: 2601

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: 7
Views: 4209

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: 2291

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: 6592

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: 2317

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: 16
Views: 28522

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: 3144

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: 16
Views: 28522

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...