Search found 647 matches
- Wed Oct 16, 2019 10:31 am
- Forum: General Discussion and Questions
- Topic: Raw mode and help missing from the Unix port?
- Replies: 7
- Views: 4647
Re: Raw mode and help missing from the Unix port?
For enabling help on the unix port, there was already a PR submitted for this, see https://github.com/micropython/micropython/pull/3436 for the discussion. I'd be in favour of enabling it, at least so that help('modules') works. As for the raw repl, I don't think that's as easy to enable on unix, pa...
- Thu Oct 03, 2019 2:19 am
- Forum: Pyboard D-series
- Topic: Unexpected difference between PYBD SF2 and SF6
- Replies: 6
- Views: 4086
Re: Unexpected difference between PYBD SF2 and SF6
Very interesting! Note that PYBD runs by default not at the maximum possible frequency. SF2 is at 120MHz and SF6 at 144MHz by default. This can be increased to the maximum via machine.freq(216_000000). Raw performance should scale roughly linear with clock speed. Maybe it is worth increasing the GC ...
- Thu Sep 26, 2019 4:22 am
- Forum: Development of MicroPython
- Topic: ulab, or what you will - numpy on bare metal
- Replies: 108
- Views: 91978
Re: ulab, or what you will - numpy on bare metal
Wow, that looks really great, thanks for sharing it! IMO it would be good to match numpy naming and semantics as much as possible, even for things that seem a little awkward. People who already use numpy already know about the subtleties like upcasting and so it'd make sense to just copy the numpy b...
- Wed Sep 11, 2019 1:20 am
- Forum: General Discussion and Questions
- Topic: STM32F769I-DISC1 heap issues
- Replies: 8
- Views: 4593
- Tue Sep 10, 2019 3:30 am
- Forum: Pyboard D-series
- Topic: High Speed USB PHY
- Replies: 7
- Views: 7418
Re: High Speed USB PHY
Docs for pyb.usb_mode() have now been updated. Regarding fast data transmission over USB: there has been some (not publicly available) work done to use MSC to communicate between a board and a PC, by essentially memory mapping an MSC block on both the PC and pyboard and then writing/reading the bloc...
- Mon Sep 09, 2019 1:31 pm
- Forum: Pyboard D-series
- Topic: High Speed USB PHY
- Replies: 7
- Views: 7418
Re: High Speed USB PHY
To enable high-speed USB you need to pass "high_speed=True" when setting the USB mode, eg
This definitely needs to be added to the documentation!
Code: Select all
pyb.usb_mode('VCP+MSC', high_speed=True)
- Sun Sep 08, 2019 11:34 am
- Forum: General Discussion and Questions
- Topic: STM32F769I-DISC1 heap issues
- Replies: 8
- Views: 4593
Re: STM32F769I-DISC1 heap issues
From what you describe it doesn't sound like a heap fragmentation issue. Heap fragmentation would eventually lead to a MemoryError exception being raised, and then MicroPython will drop to the REPL. You can then run micropython.mem_info(1) to get a view of the heap to see how fragmented it is. If yo...
- Thu Jul 25, 2019 3:42 am
- Forum: Programs, Libraries and Tools
- Topic: uPing - Ping library for MicroPython
- Replies: 29
- Views: 109055
Re: uPing - Ping library for MicroPython
Thanks for testing. I think raw sockets are a good addition (should have been done earlier!).
Would be good to put the uping.py script in a repository somewhere so it can be maintained.
Would be good to put the uping.py script in a repository somewhere so it can be maintained.
- Wed Jul 24, 2019 2:34 pm
- Forum: Programs, Libraries and Tools
- Topic: uPing - Ping library for MicroPython
- Replies: 29
- Views: 109055
Re: uPing - Ping library for MicroPython
I've been able to add support for SOCK_RAW on esp8266 and stm32 boards, and tested that uPing then works on these ports. See pull request here: https://github.com/micropython/micropython/pull/4946
- Fri Jul 05, 2019 2:21 am
- Forum: General Discussion and Questions
- Topic: Could not attach screenshot in my reply for a thread
- Replies: 2
- Views: 2387
Re: Could not attach screenshot in my reply for a thread
I was able to attach a small image in the post above. The maximum attachment size is 320k. What size is your attachment?