Search found 3011 matches

by dhylands
Mon Feb 04, 2019 2:36 am
Forum: Programs, Libraries and Tools
Topic: rshell 0.0.17 released
Replies: 3
Views: 223

rshell 0.0.17 released

I just created 0.0.17 release of rshell. It has a few improvements: - Now installs pyreadline if installed on Windows - Added --list option to show detected serial ports - rshell now tries to automatically set the buiffer size - Is more verbose about what it's doing at startup. Here's an example of ...
by dhylands
Mon Feb 04, 2019 2:05 am
Forum: ESP32 boards
Topic: i2s compatibility
Replies: 10
Views: 355

Re: i2s compatibility

I put together an example over here: https://github.com/dhylands/micropython ... /c_sample3
It's a little dated (about a year old) but has most of the elements.
by dhylands
Sun Feb 03, 2019 10:27 pm
Forum: Other Boards
Topic: STM32L1 micropython port
Replies: 7
Views: 188

Re: STM32L1 micropython port

Yeah - there is no miracle solution here. You need to open each file that needs the MCU support and add the appropriate support. As far as testing and debugging, I normally start simple, try to just get a UART going and then move onto the other peripherals that you want. In theory you can use a debu...
by dhylands
Sat Feb 02, 2019 1:23 am
Forum: Other Boards
Topic: Nucleo re-programming problem
Replies: 9
Views: 179

Re: Nucleo re-programming problem

You can do:

Code: Select all

st-flash erase
to do a mass erase of the entire part (include the firmware and filesystem).
by dhylands
Fri Feb 01, 2019 8:47 pm
Forum: Other Boards
Topic: Nucleo re-programming problem
Replies: 9
Views: 179

Re: Nucleo re-programming problem

So are you flashing by copying a file into the st link file system or by using st-flash?
by dhylands
Fri Feb 01, 2019 6:21 pm
Forum: Other Boards
Topic: Nucleo re-programming problem
Replies: 9
Views: 179

Re: Nucleo re-programming problem

There is a bug in the older st-flash code which affects some of the L4s. It turns out that there is another recently introduced bug in the latest st-flash which affects the F4 family. You can rebuild the st-flash software by using: git clone git://github.com/texane/stlink.git cd stlink git checkout ...
by dhylands
Fri Feb 01, 2019 5:35 pm
Forum: The MicroPython pyboard
Topic: frozen module not imported in PyBoard like hw
Replies: 6
Views: 142

Re: frozen module not imported in PyBoard like hw

Then that suggests that you have something misconfigured. This line is where reset_mode gets set: https://github.com/micropython/micropython/blob/67689bfd7e28df8d4fa23c8f25065aeb0b9d9658/ports/stm32/main.c#L579 The only reason for reset_mode to get a value not equal to 1 is that the update_reset_mod...
by dhylands
Fri Feb 01, 2019 5:29 pm
Forum: General Discussion and Questions
Topic: understanding reset_modes in ports/stm32/main.c
Replies: 1
Views: 77

Re: understanding reset_modes in ports/stm32/main.c

The reset_modes essentially parallel the modes documented here: https://docs.micropython.org/en/latest/wipy/tutorial/reset.html#reset-and-boot-modes https://docs.micropython.org/en/latest/pyboard/general.html#boot-modes reset_mode = 0 not used reset_mode = 1 means boot normally (i.e. execute boot.py...
by dhylands
Fri Feb 01, 2019 5:14 pm
Forum: The MicroPython pyboard
Topic: frozen module not imported in PyBoard like hw
Replies: 6
Views: 142

Re: frozen module not imported in PyBoard like hw

In order to execute a frozen main.py or boot.py then you need to modify main.c to do something like this: https://github.com/micropython/micropython/blob/67689bfd7e28df8d4fa23c8f25065aeb0b9d9658/ports/teensy/main.c#L315 The current main.c will only execute main.py from a filesystem, not as a frozen ...
by dhylands
Thu Jan 31, 2019 4:25 pm
Forum: General Discussion and Questions
Topic: filesystem not mounted on custom hw using stm32f405vg
Replies: 2
Views: 87

Re: filesystem not mounted on custom hw using stm32f405vg

You'll also need to modify flashbdev.c
https://github.com/micropython/micropyt ... lashbdev.c
to tell it the new location of the flash blocks for the filesystem, keeping in mind that you can only include 16K or 64K blocks.