Search found 13 matches

by cversek
Tue Feb 28, 2017 6:20 am
Forum: Development of MicroPython
Topic: ESP32: Linux build help
Replies: 1
Views: 3699

Re: ESP32: Linux build help

Eventually, I worked this out. So this was a fork of micropython-esp32 that I made and there was something screwy about how the toolchain was interacting with it. So starting again from the original repo, I was able to get things working after reverting `esp-idf/` to the commit starting with 13dfb55.
by cversek
Mon Feb 27, 2017 4:55 am
Forum: Development of MicroPython
Topic: ESP32: Linux build help
Replies: 1
Views: 3699

ESP32: Linux build help

Hi, I've been able to build the ESP32 micropython firmware by following this Adafruit guide which uses an Ubuntu 14.01 Vagrant virtual machine. However, when I try to follow the same steps on my native Ubuntu 15.10 system, I run into some frustrating linker errors, always crashing at this step (clip...
by cversek
Mon Feb 27, 2017 4:41 am
Forum: ESP8266 boards
Topic: Software serial?
Replies: 57
Views: 73073

Re: Software serial?

Is there anything I could to check to figure out, where the problem lies? @ohin Not knowing what kind of device you are trying to communicate with and what your other settings are, I'm not sure I can give you much help. Make sure you set the same baudrate on both devices and that you pair RX (pin 1...
by cversek
Mon Feb 27, 2017 4:29 am
Forum: ESP8266 boards
Topic: Software serial?
Replies: 57
Views: 73073

Re: Software serial?

@happyday $ git clone https://github.com/p-v-o-s/micropython.git Could you please help me with this step? Do I use Adafruit's code to install and access an Ubuntu VM via Vagrant commands? Yes, you can follow Adafruit's video for setting up the esp8266 build environment within a vagrant VM, that's wh...
by cversek
Fri Feb 24, 2017 7:04 am
Forum: Development of MicroPython
Topic: ESP32: Optimizing Heap and Stack Allocation
Replies: 1
Views: 4687

ESP32: Optimizing Heap and Stack Allocation

Hi, just got my ESP32 WROOM32 dev board from Adafruit. I noticed that both the filesystem size (256kB) ( https://github.com/micropython/micropython-esp32/blob/esp32/esp32/modules/flashbdev.py#L34 ) and the RAM allocation ( https://github.com/micropython/micropython-esp32/blob/esp32/esp32/main.c#L53 ...
by cversek
Sun Feb 19, 2017 8:16 am
Forum: General Discussion and Questions
Topic: Timeout a Generic Function
Replies: 6
Views: 7887

Re: Timeout a Generic Function

@dhylands Thanks for the suggestion, I pulled the dpgeorge:scheduler branch and tried out the `micropython.schedule` function. Here is my updated timer callback: def timeout_callback(t): def _soft_ISR(arg): raise Exception("Timeout!") micropython.schedule(_soft_ISR,t) Unfortunately, it had the same ...
by cversek
Sat Feb 18, 2017 7:09 am
Forum: General Discussion and Questions
Topic: Timeout a Generic Function
Replies: 6
Views: 7887

Re: Timeout a Generic Function

Hi Peter, Thanks for the quick response. I'm new to coroutines and a little confused, but maybe you can help clear things up for me? Without having direct control over the "trial function" would it actually be possible to build a control flow with coroutines that can run this function and force it t...
by cversek
Sat Feb 18, 2017 5:42 am
Forum: General Discussion and Questions
Topic: Timeout a Generic Function
Replies: 6
Views: 7887

Timeout a Generic Function

I am interested in sandboxing a user-supplied function. This function must run asynchronously with an HTTP server. The first requirement would be to force exit the trial function if it takes too long so the server can get back to handling requests. At this point I'm not worried about malicious code,...
by cversek
Tue Jan 17, 2017 6:03 pm
Forum: ESP8266 boards
Topic: Software serial?
Replies: 57
Views: 73073

Re: Software serial?

@pythoncoder Thanks for the reference. My takeaway from that discussion is that instead of hard-coding that address, it would be better to add some reserved sectors via modules/flashbdev.py#L6 : class FlashBdev: SEC_SIZE = 4096 RESERVED_SECS = 16 #needed for user native code extensions #NOTE: will d...
by cversek
Tue Jan 17, 2017 3:48 am
Forum: ESP8266 boards
Topic: Software serial?
Replies: 57
Views: 73073

Re: Software serial?

Hello again, After pulling in the latest commits from the upstream git repository, my modified firmware (with SoftUART functionality) seems to cause the `.irom0.text` section to overflow when linking: LINK build/firmware.elf xtensa-lx106-elf-ld: build/firmware.elf section `.irom0.text' will not fit ...