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