Search found 11 matches
- Thu Mar 10, 2022 10:02 pm
- Forum: General Discussion and Questions
- Topic: An issue about struct.pack, micropython support latin1.
- Replies: 1
- Views: 732
An issue about struct.pack, micropython support latin1.
from struct import * t = (2022, 2) test=pack("<%di" % len(t), *t) print (test) output: b'\b'\xe6\x07\x00\x00\x02\x00\x00\x00'\x07\x00\x00\x02\x00\x00\x00' ------------ Well, as you may know 'utf-8' codec can't decode byte 'xe6'. However, micropython only supports uft-8. I mean I need to run 'test.de...
- Mon Feb 21, 2022 3:28 am
- Forum: ESP8266 boards
- Topic: I've been crashed down by a compile issues in esp8266.
- Replies: 4
- Views: 4196
Re: I've been crashed down by a compile issues in esp8266.
I just want to tell you guys, I just try the toolchain from esp-open-sdk, version=4.8.x , now it's working for me Hi kevinscorpionfox, I would like to use ESP8266_RTOS_SDK. Can you be more specific what you have done exactly. You mentioned some problems I'm totally confused now. SOS. Thanks, hcet14...
- Tue Jun 08, 2021 12:44 pm
- Forum: ESP8266 boards
- Topic: I've been crashed down by a compile issues in esp8266.
- Replies: 4
- Views: 4196
Re: I've been crashed down by a compile issues in esp8266.
been tested. If you want to compile esp32, get your toolchain from there:
https://github.com/espressif/esp-idf
https://github.com/espressif/esp-idf
- Wed Jun 02, 2021 4:54 pm
- Forum: ESP8266 boards
- Topic: I've been crashed down by a compile issues in esp8266.
- Replies: 4
- Views: 4196
Re: I've been crashed down by a compile issues in esp8266.
I just want to tell you guys, I just try the toolchain from esp-open-sdk, version=4.8.x , now it's working for me, I will try to compile esp32 with the latest toolchain and the older one, later.
- Wed Jun 02, 2021 12:44 pm
- Forum: ESP8266 boards
- Topic: I've been crashed down by a compile issues in esp8266.
- Replies: 4
- Views: 4196
I've been crashed down by a compile issues in esp8266.
My system is ubuntu 20.1 since I think esp-open-sdk is old, I've got the latest toolchain from here. https://github.com/espressif/ESP8266_RTOS_SDK. And I have done the path as well. $ xtensa-lx106-elf-gcc --version xtensa-lx106-elf-gcc (crosstool-NG esp-2020r3-49-gd5524c1) 8.4.0 now I think toolchai...
- Fri May 28, 2021 1:59 pm
- Forum: General Discussion and Questions
- Topic: Is there a way to encrypt MicroPython codes?
- Replies: 11
- Views: 6896
Re: Is there a way to encrypt MicroPython codes?
Emmm, I'm not gonna encrypt a text file, but thanks anyway.
- Fri May 28, 2021 1:56 pm
- Forum: General Discussion and Questions
- Topic: Is there a way to encrypt MicroPython codes?
- Replies: 11
- Views: 6896
Re: Is there a way to encrypt MicroPython codes?
Another option is to use an esp32 based module. First you can compile the py file as frozen code and append it to the firmware binary. If you enable secure boot + flash encryption, you can ensure that the flash content cannot be cloned as the keys are stored inside fuses on the esp32. "Another opti...
- Fri May 28, 2021 1:24 pm
- Forum: General Discussion and Questions
- Topic: Is there a way to encrypt MicroPython codes?
- Replies: 11
- Views: 6896
Re: Is there a way to encrypt MicroPython codes?
There is a way to make .uf2 run on exactly one (Raspberry Pico) by encrypting the image with Pico's unique flash ID ... https://www.raspberrypi.org/forums/viewtopic.php?f=146&t=306449&p=1862153#p1862153 The .uf2 image can contain MicroPython code builtin as others have described. Honestly to say, R...
- Fri May 28, 2021 1:15 pm
- Forum: General Discussion and Questions
- Topic: Is there a way to encrypt MicroPython codes?
- Replies: 11
- Views: 6896
Re: Is there a way to encrypt MicroPython codes?
Unfortunately, even contracts are not generally enforceable when it comes to Chinese companies. Cross jurisdictional enforcement and a burden of proof are very, very expensive things. You may need to reconsider your development board. One that natively supports encrypting firmware through the use o...
- Fri May 28, 2021 1:09 pm
- Forum: General Discussion and Questions
- Topic: Is there a way to encrypt MicroPython codes?
- Replies: 11
- Views: 6896
Re: Is there a way to encrypt MicroPython codes?
Not on any of the MicroPython systems I've used. Compiling to mpy will keep out the casual code browser, but the whole filesystem can always be cloned. If one or other of you aren't being paid, that sounds like you don't have a contract in place. I'd fix that first. Oh mpy files, sounds a good idea...