Search found 10 matches

by appels
Tue Jan 12, 2021 10:00 am
Forum: General Discussion and Questions
Topic: What are the processes that run after a wake-up from deep sleep?
Replies: 4
Views: 595

Re: What are the processes that run after a wake-up from deep sleep?

I have done similar measurements on a Pyboard 1.1. The deepsleep current is very much lower. The total energy used and time spent after wakeup is much reduced if frozen bytecode is used: the compiler doesn't run, and the code runs directly from flash with no filesystem operations. Funny you should ...
by appels
Mon Jan 11, 2021 3:05 pm
Forum: General Discussion and Questions
Topic: Does the cross sompiler make your code run slower?
Replies: 6
Views: 658

Re: Does the cross sompiler make your code run slower?

I don't know, but what comes to mind here: it would make more sense to test this with an actual application instead of a toy example which doesn't do much at all, and to measure execution time between certain points by e.g toggling output pins (which is slightly related to your second question: you...
by appels
Mon Jan 11, 2021 2:03 pm
Forum: General Discussion and Questions
Topic: Does the cross sompiler make your code run slower?
Replies: 6
Views: 658

Does the cross sompiler make your code run slower?

Hi, I was testing out the cross compiler to see how much faster my code could run if the microcontroller didn't have to compile it anymore. After reading the following posts I realised that I couldn't just cross compile main.py to main.mpy: https://forum.micropython.org/viewtopic.php?f=6&t=8410&p=47...
by appels
Mon Jan 11, 2021 1:21 pm
Forum: General Discussion and Questions
Topic: What are the processes that run after a wake-up from deep sleep?
Replies: 4
Views: 595

What are the processes that run after a wake-up from deep sleep?

Hi, I'm doing a thesis on the power consumption of MicroPython VS Arduino. As a test I wrote a program that wakes the microcontroller up and puts it back to sleep (with a timer for 1s) and just keeps on doing this. I used an ESP32_DevKitC_V4 with the WROOM-32 module. This is the Arduino code: void s...
by appels
Sun Jan 10, 2021 10:25 am
Forum: General Discussion and Questions
Topic: Does your code have to recompile everytime you wake up from (deep)sleep
Replies: 2
Views: 327

Does your code have to recompile everytime you wake up from (deep)sleep

Hi, I'm trying to get confirmation on something. The Docs say that at start-up your python source code on the Flash memory gets compiled to byte code, this byte code gets stored in the RAM and then then the Virtual Machine interprets your byte code (which means executes your code). Now my question: ...
by appels
Thu Dec 31, 2020 3:37 pm
Forum: General Discussion and Questions
Topic: How do I look up the implementation of a MicroPython function?
Replies: 6
Views: 733

How do I look up the implementation of a MicroPython function?

Hi, I'm wondering how I can look up how MicroPython functions are implemented? If I'm not mistaking MicroPython is written in C so I would assume the different MicroPython functions have som kind of C implementation. But after browsing the MicroPython github repository I can't seem to find what I'm ...
by appels
Mon Dec 28, 2020 9:22 am
Forum: MicroPython pyboard
Topic: [Q] Programming the pyBoard v1.1 in Arduino IDE?
Replies: 1
Views: 1101

Re: [Q] Programming the pyBoard v1.1 in Arduino IDE?

Hi,

I just wrote a tutorial on this, here is the link:
viewtopic.php?f=6&t=9496
by appels
Mon Dec 28, 2020 9:14 am
Forum: MicroPython pyboard
Topic: Tutorial: How to program the pyboard with Arduino
Replies: 1
Views: 334

Re: Tutorial: How to program the pyboard with Arduino

By the way in case it is helpfull: I did this on a Windows PC And I already used the Zadig utility to install the WinUSB driver for dfu mode (when I updated the MicroPython firmware on the pyboard) Here is al link for the Zadig utility: https://zadig.akeo.ie/ And if you want more information about h...
by appels
Sun Dec 27, 2020 6:43 pm
Forum: MicroPython pyboard
Topic: Tutorial: How to program the pyboard with Arduino
Replies: 1
Views: 334

Tutorial: How to program the pyboard with Arduino

Hi, I needed to program the pyboard in with the Arduino framework, but to my surprise I couldn't find a single video, article, forum topic or pretty much anything that told me how to do this. And after a lot of trial and error and I mean a lot, I finally got it to work. And because it took me so lon...
by appels
Thu Dec 03, 2020 3:36 pm
Forum: General Discussion and Questions
Topic: What is MicroPython?
Replies: 1
Views: 208

What is MicroPython?

It may be a simple question. But I can't seem to (easely) find the answer to it. Is MicroPython the firmware that you put on the microcontroller, so that it can run Python scripts. Or is MicroPython the programming language? Or is it both? In other words which sentence is correct: -I put MicroPython...