Search found 25 matches

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

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

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: 13
Views: 1563

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

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: 13
Views: 1563

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: 13
Views: 1563

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

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.
by miltmobley
Sun Jul 26, 2020 3:22 am
Forum: ESP32 boards
Topic: Big float in Micropython (ESP32)
Replies: 3
Views: 262

Re: Big float in Micropython (ESP32)

In cpython, this appears to require the bigfloat package to be installed. From Python docs, we have: "The bigfloat package is a Python wrapper for the GNU MPFR library for arbitrary-precision floating-point reliable arithmetic." If you really need such bigger numbers, you would have to port bigfloat...
by miltmobley
Sun Jul 26, 2020 2:50 am
Forum: Other Boards
Topic: Compile Btree on STM32
Replies: 9
Views: 402

Re: Compile Btree on STM32

Here's two cents worth: If you are trying to compile a module for an STM32 processor, this is a cross-compile and you should not be accessing any Linux system header files in the build. Of course Linux would allow you to do something like set up symbolic links to make the linux source appear to be i...
by miltmobley
Sun Jul 26, 2020 2:36 am
Forum: Programs, Libraries and Tools
Topic: Build upython on stm32cube ide?
Replies: 3
Views: 228

Build upython on stm32cube ide?

1. Can micropython and its firmwares be built on STM32Cube IDE using an STM32F405xx (pyboard) processor configuration?
2. Is source available for the threading firmware?
3. In general, how does your firmware differ from the standard stm32 firmware provided by STM32Cube?