Search found 2579 matches

by Roberthh
Wed Apr 21, 2021 4:03 pm
Forum: Raspberry Pi microcontroller boards
Topic: #include "tusb.h" not working
Replies: 7
Views: 90

Re: #include "tusb.h" not working

I simply call make in the ports/rp2 directory. By default there is a Makefile as wrapper to cmake.

Edit: I do not add any include "tusb.h". No need to fo so.
by Roberthh
Wed Apr 21, 2021 3:17 pm
Forum: Raspberry Pi microcontroller boards
Topic: #include "tusb.h" not working
Replies: 7
Views: 90

Re: #include "tusb.h" not working

I can build that without any changes to scripts. So maybe you start over with: make clean and make I had that problem too initially, but that went away after Feb 12 with the. I cannot find the discussion I had about that any more. maybe related: https://github.com/micropython/micropython/pull/6791 h...
by Roberthh
Wed Apr 21, 2021 2:14 pm
Forum: Raspberry Pi microcontroller boards
Topic: #include "tusb.h" not working
Replies: 7
Views: 90

Re: #include "tusb.h" not working

AFAIK, I had to deinit these submodules first and then update them again.
by Roberthh
Wed Apr 21, 2021 1:54 pm
Forum: Raspberry Pi microcontroller boards
Topic: #include "tusb.h" not working
Replies: 7
Views: 90

Re: #include "tusb.h" not working

You have to update the submodules.
by Roberthh
Wed Apr 21, 2021 1:14 pm
Forum: Development of MicroPython
Topic: Attaching main.py into the build firmware.
Replies: 3
Views: 69

Re: Attaching main.py into the build firmware.

It should be possible, since one of the actions in _boot.py is creating the file system in flash with boot.py if required. The template for that boot.py is in the file inisetup.py, also located in modules.
by Roberthh
Wed Apr 21, 2021 11:31 am
Forum: General Discussion and Questions
Topic: Can't import from directory
Replies: 3
Views: 75

Re: Can't import from directory

Using the proper path separator is essential. Maybe you should put aside pycharm for a moment and use a simple terminal emulator like putty. Or use Thonny.
Without the proper file separator, Spielwiesen is not a directory, but just the part of a file name.
by Roberthh
Wed Apr 21, 2021 11:28 am
Forum: ESP32 boards
Topic: Some pins are in HIGH mode after reboot
Replies: 1
Views: 25

Re: Some pins are in HIGH mode after reboot

but sometimes all pins of one side from D27 to VP (d27 d26 d25 d33 d32 d35 d34 VN VP) show about 1v or 0,8v.
What's that?
Just floating pins in input mode.
by Roberthh
Wed Apr 21, 2021 8:39 am
Forum: General Discussion and Questions
Topic: how to raise a keyboard exception
Replies: 2
Views: 45

Re: how to raise a keyboard exception

In you C code, call:

mp_keyboard_interrupt();
by Roberthh
Wed Apr 21, 2021 8:33 am
Forum: General Discussion and Questions
Topic: Can't import from directory
Replies: 3
Views: 75

Re: Can't import from directory

You have to add the directory name "Spielwiesen" to sys.path.
sys.path.append("Spielwiesen")
then you can" import wifi".
Edit: Also: the path component separator is "/" not "\".
by Roberthh
Wed Apr 21, 2021 8:29 am
Forum: General Discussion and Questions
Topic: MPY files not working (1.14)
Replies: 1
Views: 40

Re: MPY files not working (1.14)

AFAIK, boot.py and main.py must not be pre-compiled. You can have a short main.py, which imports a large compiled code.