Now the next challenge, use esptool-js to upgrade core2 ota.
Do someone know if esptool-js support transfert for encrypted files?
Now the next challenge, use esptool-js to upgrade core2 ota.
Do someone know if esptool-js support transfert for encrypted files?
Also found this : https://www.motius.com/post/how-to-build-a-secure-iot-prototype-with-arduino-and-esp32
It seems esp-idf is only needed for the encryption part, the code can be written with arduino framework
I just found that M5unified support ESP-IDF : https://github.com/m5stack/M5Unified
@m5stack or @felmue can confirm we can use boot and flash encryption with M5unified ?
Did you found a solution? I am looking for the same feature.
As I understand we need to use ESP-IDF
I found this but not tested it for now : https://github.com/ropg/m5core2_esp-idf_demo
Hi,
What is the method to prevent code from being copied ?
I read that it is easy to reverse to code from the memory, so using esp32 flash encryption should prevent that. Right?
But then is it possible to upgrade the code ?
If I use a webpage with esptool-js and .bin files, then the users can upgrade, but can I provide encrypted only files, and not the originals .bin ?
Thanks
I've never had any problems with the DS18B20 sensor powered at 5V, with an external 4.7k resistor. Never any esp32 or even Raspberry Pi burnt out.
I did a few tests:
Works well with 4.7k external resistor
Also works well with internal resistor using pinMode(33, INPUT_PULLUP)
No errors (-127 or not detected) at all in all cases
I'll test soon with longer cables.
But, most important I use certified DS18B20, not bad quality copies that are good only for short distance.
Thank you @felmue
I will try on 3.3V, 5.1k seems good instead of 4.7k, but I use DS18B20 on long range (50m) and I am afraid 3.3V is not enough.
what happens if I connect 5V? do I risk destroying GPIO33 or the whole board?
I have to tell that after many tests over long periods of time, I've never burned out a GPIO using an external 4.7k resistor on the 5V, but may be it is possible while using internal pullup.
I can see that GPIO21/22 are 2.2k, may be it is better to have more current for long distance ?
Hi @m5stack
I can read here that Core1 have integrated pull-up resistors (3.3k) on G21 and G22
https://community.m5stack.com/topic/1762/solved-m5stack-basic-i2c-pull-up-resistor
Is it similar on Core2 ?
I use DS18B20 sensor with external pullup resistor 4.7k, but do I really need it ?
Can I have problems using internal pullup? (DS18B20 are powered on 5V pin) ?
Hi,
I have a project using DS18B20 temperature sensors and water flow meter.
My prototype is based on M5 core2 and is working fine.
Now I plan to commercialize a product based on that prototype.
I want the users to get a plug and play device, so I want to sell them the core + cables + sensors, easy to plug and start.
I think I do not need to produce a specific board to stack on core, because the sensors only needs a pullup resistor.
May be that resistor can be integrated into the sensors cable (on the connector) ?
What is your opinion on this point?
I was thinking of making a cable that plugs into the M5core1 (basic), on the side GPIO connectors. Because Core2 only have bottom connector.
Do you think it will be easy to mass-produce this type of cable in the future ?
Thanks for your help
@ajb2k3 Thanks, the question is about witch hardware is the best solution. Using a an existing module, using grove port, creating a custom module?
Could you provide the link to this vidéo?