Search found 56 matches

by RobH
Sun Apr 11, 2021 6:37 pm
Forum: ESP32 boards
Topic: Compiling with btree module support
Replies: 16
Views: 638

Re: Compiling with btree module support

OK! I removed esp-idf, re-installed it and now the make runs without errors and apparently produces a working firmware.bin!
Maybe I have a different IDF version now than before which might be the reason for the link-problem.
Thanks for your prompt help!
by RobH
Sun Apr 11, 2021 8:31 am
Forum: ESP32 boards
Topic: Compiling with btree module support
Replies: 16
Views: 638

Re: Compiling with btree module support

Thank you for the explanation of 'commit'! Following your suggestion I removed the build-GENERIC directory (the only one in micropython/ports/esp32 with leading 'build'), but still the same error. Then I had a closer look at the console log and noticed the following: Git submodule components/bt/cont...
by RobH
Sat Apr 10, 2021 7:21 pm
Forum: ESP32 boards
Topic: Compiling with btree module support
Replies: 16
Views: 638

Re: Compiling with btree module support

No, I didn't make clean. But even after that I got the same error message.
I'm not sure what you mean by 'which commit'! I just did a git pull which reports 'already up to date'.
And makes for PyBoard 1.1 and Blackpill run flawlessly: "v1.14-152-g6f06dcaee"
by RobH
Sat Apr 10, 2021 5:51 pm
Forum: ESP32 boards
Topic: Compiling with btree module support
Replies: 16
Views: 638

Re: Compiling with btree module support

When I run make (for the generic esp32) with the current sources I get the following message: /home/rob/micropython/extmod/modbtree.c:37:10: fatal error: db.h: No such file or directory #include <db.h> ^~~~~~ compilation terminated. I didn't see that before. Could it be related to the btree module (...
by RobH
Fri Apr 09, 2021 5:52 pm
Forum: MicroPython pyboard
Topic: I2C to AVR Xmega
Replies: 2
Views: 124

Re: I2C to AVR Xmega

Hi Steve,
Your choice of address may be the cause of your problem.
In I2C standards 0x00 - 0x07 and 0x78 - 0x7F are reserved I2C addresses.
Rob.
by RobH
Tue Mar 23, 2021 7:18 pm
Forum: General Discussion and Questions
Topic: result of integer division of a negative integer
Replies: 2
Views: 136

result of integer division of a negative integer

Excuse me if this is not the right place to ask...
Today I was surprised by the difference between two calculations, of which I thought would give the same result:

Code: Select all

-(5 // 2)  returns -2
-5 // 2    returns -3
I suppose this is correct Python, but I would like to understand why.
by RobH
Sun Mar 14, 2021 10:25 am
Forum: ESP32 boards
Topic: Trouble with CMake and flash > 4 MB
Replies: 13
Views: 1514

Re: Trouble with CMake and flash > 4 MB

@rcolistete:
Thanks! It confirms what was already indicated by bertel.
So I'll have to consider the superfluous 4MB PSRAM for future use, if and whenever it might become supported.
by RobH
Thu Mar 11, 2021 4:08 pm
Forum: ESP32 boards
Topic: Trouble with CMake and flash > 4 MB
Replies: 13
Views: 1514

Re: Trouble with CMake and flash > 4 MB

Looks like I'm heading in the wrong direction (w.r.t. to the subject line). As I mentioned earlier: my board has 4 MB flash. So I should not look for a solution with more flash memory. When I load the pre-built GENERIC_SPIRAM firmware from the Micropython site I see (about) 4 MB with esp.flash_size(...
by RobH
Sun Mar 07, 2021 9:19 am
Forum: ESP32 boards
Topic: Trouble with CMake and flash > 4 MB
Replies: 13
Views: 1514

Re: Trouble with CMake and flash > 4 MB

@bertel Thank you very much for your detailed 'instructions'! Unfortunately these seems not to work for me (could be my fault of course). I don't know if it is relevant, but anyway: - My board is a TTGO-T8 V1.7 with 4MB flash(chip 25Q32) and 8 MB PSRAM (chip ESP PSRAM64H) - Commandline 'idf.py --ver...