Search found 2566 matches
- Tue Apr 20, 2021 7:13 pm
- Forum: ESP32 boards
- Topic: ADC input stuck on one level
- Replies: 1
- Views: 15
Re: ADC input stuck on one level
That's strange. With the 11db setting, you could try to connect the ADC input to GND and 3.3V. Then you should read 0 and 4095 as adc.read() value. That's what I tried here.
- Tue Apr 20, 2021 6:12 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: RPI Pico Speed
- Replies: 1
- Views: 26
Re: RPI Pico Speed
Both is possible with machine.freq().
machine.freq() returns the actual setting
machine.freq(HZ-value) sets the new frequency. The suitable range is 12 - 270 MHz, but not all values in that range will be accepted.
machine.freq() returns the actual setting
machine.freq(HZ-value) sets the new frequency. The suitable range is 12 - 270 MHz, but not all values in that range will be accepted.
- Tue Apr 20, 2021 9:49 am
- Forum: General Discussion and Questions
- Topic: Protecting files on littlefs
- Replies: 3
- Views: 133
Re: Protecting files on littlefs
Generally the ESP32 supports flash encryption, and the Pycom variant has a build option for it. Only that Pycom supports only it's own hardware. Modified their scripts supporting generic ESP32 too. Using that required you to build your own images. And the Pycom MP version lags behind the the genuine...
- Sun Apr 18, 2021 8:02 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Rpi Pico suddenly stops multithreading with WS2812
- Replies: 1
- Views: 94
Re: Rpi Pico suddenly stops multithreading with WS2812
There is a problem with Pico, dual thread mode and memory management. The code may either stop or behave otherwise weird. Nothing related to the actual code itself. At the moment, the only choice you have is to use single thread only or to rewrite the program to allocate all memory at the beginning ...
- Sun Apr 18, 2021 4:00 pm
- Forum: ESP32 boards
- Topic: How to handle a fast signal
- Replies: 2
- Views: 208
Re: How to handle a fast signal
The best results that you can achieve is using machine.time_pulse_us(). See https://docs.micropython.org/en/latest/ ... e_pulse_us.
- Fri Apr 16, 2021 11:57 am
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 34
- Views: 741
Re: UART not working with today's version of micropython
So I made some further tests: Using the previous version for machine.uart does not change the picture a lot. The crashes and lock-ups occur too. Only I have not seen the character doubling. So the latter seems just one variant of misbehavior caused by the underlying bug in threading. Nevertheless I ...
- Fri Apr 16, 2021 9:18 am
- Forum: ESP32 boards
- Topic: Custom files in the self-compiled Micropython
- Replies: 7
- Views: 237
Re: Custom files in the self-compiled Micropython
Esptool just copies data to the flash memory and does not care about the type of the data.
- Fri Apr 16, 2021 6:12 am
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 34
- Views: 741
Re: UART not working with today's version of micropython
You can try to use a single thread only with sufficiently large transfer buffers. If that does not fit, I could make a firmware version with the previous version of uart.write().
- Thu Apr 15, 2021 8:39 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 34
- Views: 741
Re: UART not working with today's version of micropython
It seems to depend on the code size as well. With a minimal code I see no error. If I just add some non-executed code lines, I get errors. So there seems to be something fundamentally wrong with threading and interrupts.
- Thu Apr 15, 2021 8:18 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: UART not working with today's version of micropython
- Replies: 34
- Views: 741
Re: UART not working with today's version of micropython
When enabling threading I see all kinds of errors, very rarely character doubling, more often just lock-up of the sending thread, or sending completely wrong data. So there seems to be a general issue or challenge with threads and interrupt. Maybe a stack overrun. It does not matter in which thread ...