Search found 13 matches

by appels
Mon Jul 12, 2021 4:02 pm
Forum: General Discussion and Questions
Topic: How to implement frozen bytecode?
Replies: 2
Views: 2628

Re: How to implement frozen bytecode?

Thanks for the reply,

This is information is very helpfull.
by appels
Sat Jul 10, 2021 8:18 pm
Forum: General Discussion and Questions
Topic: How to implement frozen bytecode?
Replies: 2
Views: 2628

How to implement frozen bytecode?

Hi, I've been looking for some information on how to implement frozen bytecode, and I found the following in the docs: https://docs.micropython.org/en/latest/reference/packages.html#cross-installing-packages-with-freezing Using frozen bytecode requires building the executable (firmware) for a given ...
by appels
Mon Jul 05, 2021 2:58 pm
Forum: MicroPython pyboard
Topic: : Why does the deepsleep current on the Pyboard differ between MicroPython and Arduino code
Replies: 3
Views: 3202

: Why does the deepsleep current on the Pyboard differ between MicroPython and Arduino code

Hi, I’m using the Pyboard to compare Arduino code and MicroPython code. I noticed that the deep sleep current differs between the two languages. The deep sleep current I measured for MicroPython code is 10 µA and for Arduino code it is 40 µA. This was very surprising to me, because I would asume tha...
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: 2843

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: 3033

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: 3033

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: 2843

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: 1511

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: 2892

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: 2
Views: 23957

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