Search found 3259 matches

by dhylands
Tue Jan 21, 2020 10:52 pm
Forum: Other Boards
Topic: Python REPL not starting on STM32H743 based board
Replies: 5
Views: 52

Re: Python REPL not starting on STM32H743 based board

I've not heard of having to program option bytes.
by dhylands
Tue Jan 21, 2020 8:52 pm
Forum: Other Boards
Topic: Python REPL not starting on STM32H743 based board
Replies: 5
Views: 52

Re: Python REPL not starting on STM32H743 based board

Does your board use the same crystal frequency as the NUCLEO board? DFU is able to figure out the crystal frequency dynamically (which is why it works even if it differs) where Micropython needs to be configured with the correct frequency and other PLL settings.
by dhylands
Tue Jan 21, 2020 7:57 pm
Forum: General Discussion and Questions
Topic: uart.read() error with PYBD-SF6W
Replies: 5
Views: 87

Re: uart.read() error with PYBD-SF6W

Also, the PYBD is quite a bit faster than the pyboard 1.1, so if you call uart.read before the data has actually arrived back from the servo, then you'll get None, because the data just isn't there yet. My code polls in the main loop for characters from the UART, and then feeds each character to a p...
by dhylands
Tue Jan 21, 2020 7:48 pm
Forum: General Discussion and Questions
Topic: uart.read() error with PYBD-SF6W
Replies: 5
Views: 87

Re: uart.read() error with PYBD-SF6W

I've also got code for controlling the Dynamixels (AX-12). In my case, I don't use any external hardware. The code puts the UART in half-duplex mode (which connects Tx to Rx internally) and disable the receiver while transmitting so I don't receive my own transmissions: https://github.com/dhylands/b...
by dhylands
Tue Jan 21, 2020 7:30 am
Forum: Programs, Libraries and Tools
Topic: 'ampy run' does not print to output in realtime
Replies: 1
Views: 46

Re: 'ampy run' does not print to output in realtime

Linux supports 3 buffering modes. Unbuffered, line buffered, and fully. IIRC stderr is line buffered and stdout is fully buffered. Fully buffered typically collects 4-8K off data before outputting. You can call flush() to force data to be written.
by dhylands
Mon Jan 20, 2020 8:49 pm
Forum: MicroPython pyboard
Topic: 3V3 regulator on pyboard
Replies: 2
Views: 51

Re: 3V3 regulator on pyboard

It's an 8 pin part. Mine has the markings: AAY 423 *KJ The MCP1703 datahseet says AAY means 3.3V. The 423 is a year/week code and the KJ is a traceability code. If you hold your pyboard 1.1 with the USB connector facing up, then the 3.3 regulator is t the bottom right corner of the 405 (i.e. close t...
by dhylands
Tue Dec 31, 2019 11:23 pm
Forum: General Discussion and Questions
Topic: REPL does not stop boot.py
Replies: 5
Views: 175

Re: REPL does not stop boot.py

It turns out that if you do a Control-D from the raw REPL then main.py won't get executed. So if you move your code to main.py instead of boot.py then you can do: Control-A Control-D Control-B and get into the REPL without main.py being executed. During development, I often use a jumper or pushbutto...
by dhylands
Mon Dec 30, 2019 4:41 pm
Forum: ESP32 boards
Topic: How to Download a shared file from Dropbox?
Replies: 3
Views: 162

Re: How to Download a shared file from Dropbox?

When I share a dropbox file, I normally get a link which winds up looking something like this: https://www.dropbox.com/s/rpl59i017zblg ... at.py?dl=0

Sometimes, it works better to replace the dl=0 at the end of the URL with dl=1
by dhylands
Mon Dec 30, 2019 4:36 pm
Forum: ESP32 boards
Topic: Problem with boot.py
Replies: 2
Views: 181

Re: Problem with boot.py

rshell winds up doing lots of soft-resets, basically one per command sent. Some commands, like ls may require several command. Each one of those soft resets causes boot,py to be executed. I'd don't recall exactly what happens when there is no boot.py, so I'd try connecting with a regular terminal an...
by dhylands
Mon Dec 30, 2019 4:31 pm
Forum: General Discussion and Questions
Topic: REPL does not stop boot.py
Replies: 5
Views: 175

Re: REPL does not stop boot.py

No. Entering the REPL doesn't clear out memory etc. Which is a good thing because it allows you to investigate things when your program crashes. If you do a Soft Reset (i.e. Control-D) once you get into the REPL, then your program will be cleared out of memory. You could also have your code use a tr...