I noticed that Arduino IDE can output tge detail Information on ELF file etc. while compiling. I think this detail information will be very helpful for studing further about the binary content in the M5Stack Flash memory.
Thank you everybody.
Best posts made by RuriObb
-
RE: How to extract the current Flash and EEPROM data from M5Stack fire to Windows11 file ?
Latest posts made by RuriObb
-
Arduino IDEãªã©ããUSBæ¥ç¶ä»¥å€ã§ãM5Stack (FIREãªã©)çã«æžãèŸŒãæ¹æ³ã¯ããïŒ
ãäžè©±ã«ãªããŸãã
çŸåšãArduino IDEã䜿çšäžã§ãããM5Stack FIRE ã«é¢ããŠWindows11(24H2)ç°å¢ã§ã
USBæ¥ç¶ã§ããªãç¶æ³ãçºçããŠããå°ã£ãŠããŸãã
â»ããã€ã¹ãããŒãžã£ã§ã察象ç©ãããäžæãªUSBããã€ã¹(ããã€ã¹èšè¿°åèŠæ±ã®å€±æ)ã
ããšãªããã·ãªã¢ã«ããŒããšããŠèªèãããªãåé¡ã§ãã
ãUSBããŒãã®å€æŽãUSBã±ãŒãã«ã®å€æŽãUSB端åã®è±çããã©ã€ãã®æŽæ°ãã¢ã³
ãã€ã³ã¹ããŒã«/ãªã€ã³ã¹ããŒã«ãªã©ãªã©æ§ã ãªæ¹æ³ã詊ããŠããŸããæªã 解決ã§ã
ããŸãããããã§ãäŸãã°USBã±ãŒãã«æ¥ç¶ä»¥å€ã§ããã€ã³ã³ããŒãã«ããã°ã©ã ãæžã蟌ã
ããšãã§ããã°ä»£æ¿ææ®µãšãªãåŸãã®ã§ã¯ãšæããäœããã®æ¹æ³ããåç¥ã§ããã°
ãæç€ºãã ããããªããçŸç¶ãããã°ã©ã ã¯Arduino IDEã䜿çšããŠããŸããããã以å€ã®æ¹æ³ã§ãOK
ã§ãããããããé¡ãããŸãã
Ruri
-
M5Stack FIRE V2.6 (CH9102F)ãWindows11(24H2)ã§USBæ¥ç¶èªèãããªãä»¶
ãäžè©±ã«ãªããŸãã
çŸåšãM5Stack FIRE ã«é¢ããŠæ¬¡ã®2ã€ã®ããŒãžã§ã³ããããŸãã
ãã1) V2.6 (USBããã: CH9102F) â»BALA2 FIREãšããŠè³Œå ¥ãããã®
ãã2) V2.7 (USBããã: CH9102F)
2)ã®V2.7ã«ã€ããŠã¯ãWindows11(24H2)ã§åé¡ãªãUSBã·ãªã¢ã«ããŒãæ¥ç¶
èªèãã§ããŠããŸãããåäžç°å¢(PCç°å¢ãUSBæ¥ç¶ç°å¢ãUSBã±ãŒãã«ç)
ã§ã1)ã®V2.6ã«ã€ããŠãããã€ã¹ãããŒãžã£ã§COMããŒããšããŠèªèã§ãã
å°ã£ãŠããŸããæ§ã ãªUSBç°å¢(ãããã±ãŒãã«ç)ã§è©ŠããŠããŸãããäžç¬æ¥ç¶ã§ããããšã
éå»ã«ãããŸããããçŸç¶ã¯ãããšããšãæ£ããèªèãããŸããããããåæ§ã®ãã©ãã«ã«ééãããæ¹ã§ãã¢ããã€ã¹ãªã©ãããããŸããã
ãããããé¡ãããŸããRuri
-
RE: Can we use GPIO36 as Servo control pIn ?
GPIO36ãå ¥åå°çšã§ããããšãçè§£ããŸããã
æ å ±ãããããšãããããŸãããRuriObb
-
Can we use GPIO36 as Servo control pIn ?
Hello.
I'm trying to use M5Stack FIRE V2.7 portB(GND, 5V, GPIO26, GPIO36) as Servo motor control pin. The purpose is that two Servo motors ( SG-90 ) connected to portB can be controlled by software.
First of all, I tested one Servo motor connected to portB (GND, 5V, GPIO26) by using the following Arduino IDE sketch, and it works well.
But the same Servo motor connected to portB (GND, 5V, GPIO36) doesn't work by using the same Arduino IDE sketch with replacing pin number 26 to 36.
It seems that GPIO36 pin cannot be set to OUTPUT mode.#include <M5Stack.h> //Board : M5Stack-FIRE
#include <esp32-hal-ledc.h>
#define LOW 1500
#define HIGH 8500
#define TIMER_WIDTH 16
#define PIN 26 // PIN should be set to 36, if GPIO36 is usedvoid setup() {
M5.begin();
pinMode(PIN, OUTPUT);
ledcSetup(1, 50, TIMER_WIDTH);
ledcAttachPin(PIN, 1);
}void loop() {
for(int i = LOW; i < HIGH; i = i + 100) {
ledcWrite(1, i);
delay(100);
}
}I don't know the reason why GPIO36 cannot be used as Servo motor control pin.
Furthermore, I opened M5Stack FIRE cover, and connected Servo motor to GPIO pins directly, but the result is the same as ever.Please help, if you have any advice or information on it.
Thank you In advance.RuriObb
-
M5Stack Fire V2.7ã®GPIO36ããµãŒãã¢ãŒã¿å¶åŸ¡ã«äœ¿ããªãä»¶
ããã«ã¡ã¯ã
M5Stack Fire V2.7ã®ããŒãB(GND, 5V, GPIO26, GPIO36)ã«ãµãŒãã¢ãŒã¿(SG-90)2åãæ¥ç¶ããããšè©Šè¡ããŠããŸãã
ãŸãããµãŒãã¢ãŒã¿ã1åãã€æ¬¡ã®ããã«æ¥ç¶ããåäœã確èªãããšãããGPIO26ã«æ¥ç¶ããå Žåã«ã¯æ£ããåäœããŸããããGPIO36ã«æ¥ç¶ã«æ¥ç¶ããå Žåã«ã¯æ£ããåäœããŸããã§ãã(å šãå転ããªã)ã- GPIO26ã«ãµãŒãã¢ãŒã¿ã®å¶åŸ¡ç«¯åãæ¥ç¶ããå Žå
ãããµãŒãã¢ãŒã¿3端åã«ãGND, 5V, GPIO26ãæ¥ç¶ - GPIO36ã«ãµãŒãã¢ãŒã¿ã®å¶åŸ¡ç«¯åãæ¥ç¶ããå Žå
ãããµãŒãã¢ãŒã¿3端åã«ãGND, 5V, GPIO36ãæ¥ç¶
åäœç¢ºèªã«ã¯ã次ã®Arduino IDEã¹ã±ããã䜿çšããŸããã
äžèš1)ã®å Žåã¯#define PIN 26ã2)ã®å Žåã¯#define PIN 36ã
ã¡ãªã¿ã«ãããŒãèšå®ã¯M5Stack-FIREã#include <M5Stack.h>
#include <esp32-hal-ledc.h>
#define LOW 1500
#define HIGH 8500
#define TIMER_WIDTH 16
#define PIN 26 // 2)ã®å ŽåãPINã¯36void setup() {
M5.begin();
pinMode(PIN, OUTPUT);
ledcSetup(1, 50, TIMER_WIDTH);
ledcAttachPin(PIN, 1);
}void loop() {
for(int i = LOW; i < HIGH; i = i + 100) {
ledcWrite(1, i);
delay(100);
}
}é¢é£ããã¥ã¡ã³ããèŠãŠããM5Stack Fire V2.7ã®ããŒãBã®
GPIO36ããã®ãããªçšéã§äœ¿çšã§ããªãæšã®èšè¿°ããªãã
ãã®åé¡ã解決ã§ããå°ã£ãŠããŸãã
ã©ãªãããã«ãããé¡ãããããŸããâ»ãããããããšM5Stack Fire V2.7ã®å éšã³ãã¯ã¿ãšããŒãB
ãããšã®æ¥ç¶ãæªãã®ããšãæããå éšã®ã³ãã¯ã¿ããçŽæ¥
ãããµãŒãã¢ãŒã¿ã«æ¥ç¶ããŸãããããã¯ãGPIO26ã®ã»ãã¯
ããåäœOKãGPIO36ã®ã»ãã¯åäœNGã§ããã
ãããŸããä»ã®GPIOãã³ãäŸãã°GPIO5ã§ãåæ§ã«ç¢ºèªãã
ãããšããåäœOKã§ããããããããé¡ãããŸãã
RuriObb
- GPIO26ã«ãµãŒãã¢ãŒã¿ã®å¶åŸ¡ç«¯åãæ¥ç¶ããå Žå
-
RE: How to extract the current Flash and EEPROM data from M5Stack fire to Windows11 file ?
I noticed that Arduino IDE can output tge detail Information on ELF file etc. while compiling. I think this detail information will be very helpful for studing further about the binary content in the M5Stack Flash memory.
Thank you everybody. -
RE: ãã©ãã·ã¥å å®¹ã®æœåºã«ã€ããŠ
Arduino IDEã®ç°å¢èšå®ã§ãã³ã³ãã€ã«ã®è©³çްæ å ±ã衚瀺ããé ç®ãONã«ããŠã³ã³ãã€ã«ãããšãELFãã¡ã€ã«ãªã©ã®åŠçæé ãåããã®ã§ããããåèã«ãªãããã§ãã
ããã«ãã¹ã¿ãã£ãé²ããããšæããŸãã -
RE: ãã©ãã·ã¥å å®¹ã®æœåºã«ã€ããŠ
@shimodash
æå ±ãããããšãããããŸãã
esptoolãéåžžã«åœ¹ã«ç«ã¡ããã§ãããæ¬¡ã®ããšãåãããå°ã£ãŠããŸããM5Stack fire(ãã©ãã·ã¥ã¡ã¢ãªå®¹é:16MB)ã®å 容ãesptoolã§ãã£ãšèŠããŠã¿ããšããã0x00000ã0x400000ã®éšåã«äœããæžãããŠããŠã0x400000以éã¯ãã¹ãŠ"FF"ã®ããã§ãããM5Stack fire ãçŸåšã®ç¶æ ã«æ»ãã«ã¯ããã©ãã·ã¥ã¡ã¢ãªã®0x00000ã0x400000ã®éšåãesptoolã§ãã€ããªãã¡ã€ã«ã«read(and save) ããåŸãåçŽã«ãã®ãã¡ã€ã«å 容ãesptoolã§ãã©ãã·ã¥ã¡ã¢ãªã«writeããã°ããã®ã§ããããïŒ
ãããšããä»ã«ãäœãåãããŠå®æœããããšãããã®ã§ããããïŒâ»ãäŸãã°ãM5Stack fire ã®ã¡ã¢ãªäžã®ã©ã®å Žæã«ã©ããªæ å ±ã
ãã眮ããªããã°ãªããªãã®ãããªã©ãåãããŸããã远å ã®è³ªåã§ç³ãèš³ãããŸãããããããããé¡ãããŸãã
RuriObb
-
RE: How to extract the current Flash and EEPROM data from M5Stack fire to Windows11 file ?
Thank you for your help.
But I doubt that the Bala2 source code (Bala2.ino) in the Github does not equal to preloaded software in Bala2fire product.
So first of all I need to extract the current binary content from Flash and EEPROM of Bala2fire, and save it to Windows file in case it will be necessary to restore the initial state in the future.
I investigated furthermore and I studied "esptool" can extract binary content from Flash memory (maybe also EEPROM) of M5Stack fire to Windows file, but I would like to know that the following process is correct or not for savIng and restoration full of binary content.
-
To read from 0x00000 to x400000 Flash memory content and
save it to Windows file (e.g. file name image4M.bin) by using
"esptool" -
To write from 0x00000 to x400000 Flash memory content with
image4M.bin
Regarding 4M, I think initial Bala2fire uses at most 4M byte Flash for preloaded software.
Thank you in advance.
RuriObb
-
-
ãã©ãã·ã¥å å®¹ã®æœåºã«ã€ããŠ
çããŸãã¯ãããŸããŠã
æšæ¥ãBALA2Fire(M5Stack fireããŒã¹ã®èªå·±ãã©ã³ã¹ã«ãŒ)ãè³Œå ¥ããå ãã¯ããªããŒããããŠãããœãããŠã§ã¢ãWindows11ã®ãã¡ã€ã«ã«æœåºããåŸããããããšã¹ã±ãããäœæããŠã¹ã¿ãã£ãå§ããããšæã£ãŠããŸãã
ãããããšèª¿ã¹ãŸãããã詊ããŠã¿ããšãªããšãæäœãã¹çã§ããªããŒãæ å ±ã«åœ±é¿ãäžããŠããŸãã®ã§ã¯ãªãããšå¿é ã«ãªããåã«é²ããå°ã£ãŠããŸãã
ã©ãªãããM5Stack fireãããã©ãã·ã¥ãEEPROMã®ããŒã¿ãWindows11ãã¡ã€ã«ã«åžãåºãæ¹æ³ã«ã€ããŠã詳ããæããŠé ããŸããã
ãããããé¡ãããŸãã
RuriObb