Search found 3227 matches

by dhylands
Wed Sep 25, 2019 8:03 pm
Forum: General Discussion and Questions
Topic: Frozen Modules based on board
Replies: 3
Views: 108

Re: Frozen Modules based on board

When you build your firmware image you can do:

Code: Select all

make BOARD=SOMEBOARD FROZEN_MPY_DIR=/path/to/some/directory
and this will override the use of the modules subdirectory.
by dhylands
Tue Sep 24, 2019 4:29 pm
Forum: ESP32 boards
Topic: Using BASH script to upload files
Replies: 27
Views: 444

Re: Using BASH script to upload files

It's possible that the board reboots when the serial port is closed, but that's a side-effect and not something specific that rshell is doing.

I know that some EPS32 boards reboot when the serial port is opened.
by dhylands
Tue Sep 24, 2019 3:16 pm
Forum: ESP32 boards
Topic: Using BASH script to upload files
Replies: 27
Views: 444

Re: Using BASH script to upload files

rshell's repl command can be used to run a script.

Code: Select all

repl ~ import something ~
The trailing ~ tells rshell to exit the repl when done.
by dhylands
Sun Sep 22, 2019 9:34 pm
Forum: ESP32 boards
Topic: Using BASH script to upload files
Replies: 27
Views: 444

Re: Using BASH script to upload files

No other rshell or terminal program.
by dhylands
Sat Sep 21, 2019 11:46 am
Forum: ESP8266 boards
Topic: rshell not working on Mac OS
Replies: 8
Views: 142

Re: rshell not working on Mac OS

I think rshell is getting confused. When it starts up it tries to resolve the "port" by calling gethostbyname and when that falls it tries to connect via serial. It looks like gethostbyname is succeeding. This is why it's printing the ip address: Connecting to /dev/cu.SLAB_USBtoUART (198.105.244.117...
by dhylands
Tue Sep 17, 2019 1:48 pm
Forum: General Discussion and Questions
Topic: picocom doesn't work
Replies: 4
Views: 117

Re: picocom doesn't work

The other possibility is that picocom is working fine and that the MCU hasn't been flashed with micropython properly.
by dhylands
Thu Sep 12, 2019 5:59 pm
Forum: General Discussion and Questions
Topic: picocom doesn't work
Replies: 4
Views: 117

Re: picocom doesn't work

What device are you trying to connect to? The pyboards show up as /dev/ttyACM0 and not ttyUSB0. Make sure that there isn't some other program running which is using the same port (EDIT: I see that you're connecting to an ESP device, so this comment probably isn't relevant) You can use the lsof comma...
by dhylands
Fri Sep 06, 2019 10:28 pm
Forum: MicroPython pyboard
Topic: Install original windows driver
Replies: 7
Views: 373

Re: Install original windows driver

starter111 wrote:
Fri Sep 06, 2019 9:34 pm
why you need pyusb? pyserial doesn't work?
pyusb is needed to DFU flash the pyboard (at least if pydfu.py is being used).
by dhylands
Fri Sep 06, 2019 10:26 pm
Forum: MicroPython pyboard
Topic: Install original windows driver
Replies: 7
Views: 373

Re: Install original windows driver

One thing to check is your boot.py file on the board.

If it has a call to pyb.usb_mode which doesn't include MSC in the string then the pyboard won't show up as a drive.
by dhylands
Thu Sep 05, 2019 10:09 pm
Forum: Other Boards
Topic: [STM32F407VGT6] How to erase flash fs?
Replies: 8
Views: 169

Re: [STM32F407VGT6] How to erase flash fs?

If your mpconfigboard.h file only defines LED1 and doesn't define LED2, then the code will use a slightly different behaviour. Instead it will flash the LED 1, 2, or 3 times.

See: https://github.com/micropython/micropyt ... ain.c#L328