Navigation

    M5Stack Community

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. jdonth
    J
    • Continue chat with jdonth
    • Start new chat with jdonth
    • Flag Profile
    • Profile
    • Following
    • Followers
    • Blocks
    • Topics
    • Posts
    • Best
    • Groups
    Save
    Saving

    jdonth

    @jdonth

    1
    Reputation
    12
    Posts
    658
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    jdonth Follow

    Posts made by jdonth

    • RE: Updated version, working Core2 web radio player, M5Stack

      Attempting to compile the web radio player on a Core2. I am getting the following errors. Any help would be appreciated.
      Joe

      Arduino: 1.8.19 (Windows 10), Board: "M5Stack-Core2, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 240MHz (WiFi/BT), 1500000, None"

      C:\Users\jld\Documents\Arduino\MediaPlayer\MediaPlayer.ino:61:1: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

      };

      ^

      In file included from C:\Users\jld\Documents\Arduino\libraries\ESP8266Audio\src\AudioGeneratorMIDI.cpp:65:

      C:\Users\jld\Documents\Arduino\libraries\ESP8266Audio\src\libtinysoundfont/tsf.h: In function 'void tsf_channel_midi_control(tsf*, int, int, int)':

      C:\Users\jld\Documents\Arduino\libraries\ESP8266Audio\src\libtinysoundfont/tsf.h:2100:1: error: insn does not satisfy its constraints:

      }

      ^

      (insn 858 343 344 51 (set (reg:SF 19 f0 [407])

      (mem/u/c:SF (symbol_ref/u:SI ("*.LC248") [flags 0x2]) [0 S4 A32])) "C:\Users\jld\Documents\Arduino\libraries\ESP8266Audio\src\libtinysoundfont/tsf.h":2053 47 {movsf_internal}

      (nil))

      during RTL pass: postreload

      C:\Users\jld\Documents\Arduino\libraries\ESP8266Audio\src\libtinysoundfont/tsf.h:2100:1: internal compiler error: in extract_constrain_insn, at recog.c:2210

      Please submit a full bug report,

      with preprocessed source if appropriate.

      See https://gcc.gnu.org/bugs/ for instructions.

      exit status 1

      Error compiling for board M5Stack-Core2.

      posted in Core 2
      J
      jdonth
    • RE: Arduino IDE Configuration for Core2

      @felmue
      These instructions should be posted as a Core2 Sticky. They would go a long way to provide an outstanding starting point for all the new M5Core2 developers.

      posted in Core 2
      J
      jdonth
    • RE: Arduino IDE Configuration for Core2

      @felmue
      OMG! It worked!!!!
      Thank you, thank you, thank you.
      Joe

      posted in Core 2
      J
      jdonth
    • Arduino IDE Configuration for Core2

      I have the following additional boards in my Arduino Preferences:
      https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/arduino/package_m5stack_index.json

      Do I need any other additional board libraries to successfully compile a Core2 project?

      posted in Core 2
      J
      jdonth
    • RE: Looking for Factory Test Source code for Core2

      @erich
      Thank you for your suggestion. I downloaded and ran the EasyLoader code and my unit runs the Core2_Test with the proper microphone (per the FFT bar graph).

      Compiling the code at https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Core/M5Core2/Arduino/Core2_Factory_Test

      When I run the Core2_Factory_Test I get no microphone indication (and the speaker is silent during the scrolling test phase).

      I am assuming I have some misconfiguration in my Ardunio IDE but I don't know where. The following is the compiler messages from when I compile the test program (sorry for the size, I don't know what I can safely edit, except for [many] repeated warning:excess elements in array initializer):

      C:\Users\jld\Documents\Arduino\Core2_Factory_test\SettingAppImage.c:3169:56: warning: excess elements in array initializer
      C:\Users\jld\Documents\Arduino\Core2_Factory_test\Core2_Factory_test.ino: In function 'bool InitI2SSpakerOrMic(int)':
      C:\Users\jld\Documents\Arduino\Core2_Factory_test\Core2_Factory_test.ino:291:33: warning: 'I2S_COMM_FORMAT_I2S' is deprecated [-Wdeprecated-declarations]
      .communication_format = I2S_COMM_FORMAT_I2S,
      ^~~~~~~~~~~~~~~~~~~
      In file included from C:\Users\jld\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/driver/include/driver/i2s.h:16,
      from C:\Users\jld\Documents\Arduino\Core2_Factory_test\Core2_Factory_test.ino:2:
      C:\Users\jld\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/hal/include/hal/i2s_types.h:95:5: note: declared here
      I2S_COMM_FORMAT_I2S attribute((deprecated)) = 0x01, /
      !< I2S communication format I2S, correspond to I2S_COMM_FORMAT_STAND_I2S*/
      ^~~~~~~~~~~~~~~~~~~
      Sketch uses 1360173 bytes (20%) of program storage space. Maximum is 6553600 bytes.
      Global variables use 49368 bytes (1%) of dynamic memory, leaving 4472616 bytes for local variables. Maximum is 4521984 bytes.*

      posted in Core 2
      J
      jdonth
    • RE: Looking for Factory Test Source code for Core2

      @felmue
      I just tried the Speak project and it will not "speak" the Dongdong code.
      Perhaps knowing that both the microphone AND speaker do not work might point to where the problem is???
      Thanks,
      Joe

      posted in Core 2
      J
      jdonth
    • RE: Looking for Factory Test Source code for Core2

      @felmue
      I'm lost and am sorry to take up so much your time.

      I tried your fix to InitI2SSpakerOrMic and it threw so many errors I knew I lost.

      How do I tell the IDE to load the 1.0.6 framework?

      Here is the compile log. If you can see what might be wrong?
      (I edited the ...Writing lines before the 100%)

      Thanks,
      Joe

      C:\Users\jld\Documents\Arduino\Core2_Factory_test\Core2_Factory_test.ino: In function 'bool InitI2SSpakerOrMic(int)':
      C:\Users\jld\Documents\Arduino\Core2_Factory_test\Core2_Factory_test.ino:291:33: warning: 'I2S_COMM_FORMAT_I2S' is deprecated [-Wdeprecated-declarations]
      .communication_format = I2S_COMM_FORMAT_I2S,
      ^~~~~~~~~~~~~~~~~~~
      In file included from C:\Users\jld\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/driver/include/driver/i2s.h:16,
      from C:\Users\jld\Documents\Arduino\Core2_Factory_test\Core2_Factory_test.ino:2:
      C:\Users\jld\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/hal/include/hal/i2s_types.h:95:5: note: declared here
      I2S_COMM_FORMAT_I2S attribute((deprecated)) = 0x01, /!< I2S communication format I2S, correspond to I2S_COMM_FORMAT_STAND_I2S/
      ^~~~~~~~~~~~~~~~~~~
      Sketch uses 1360101 bytes (20%) of program storage space. Maximum is 6553600 bytes.
      Global variables use 49368 bytes (1%) of dynamic memory, leaving 4472616 bytes for local variables. Maximum is 4521984 bytes.
      esptool.py v3.1
      Serial port COM3
      Connecting....
      Chip is ESP32-D0WDQ6-V3 (revision 3)
      Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
      Crystal is 40MHz
      MAC: 08:3a:f2:43:6f:48
      Uploading stub...
      Running stub...
      Stub running...
      Changing baud rate to 921600
      Changed.
      Configuring flash size...
      Flash will be erased from 0x0000e000 to 0x0000ffff...
      Flash will be erased from 0x00001000 to 0x00005fff...
      Flash will be erased from 0x00010000 to 0x0015dfff...
      Flash will be erased from 0x00008000 to 0x00008fff...
      Compressed 8192 bytes to 47...
      Writing at 0x0000e000... (100 %)
      Wrote 8192 bytes (47 compressed) at 0x0000e000 in 0.1 seconds (effective 558.9 kbit/s)...
      Hash of data verified.
      Flash params set to 0x024f
      Compressed 17248 bytes to 11870...
      Writing at 0x00001000... (100 %)
      Wrote 17248 bytes (11870 compressed) at 0x00001000 in 0.4 seconds (effective 325.1 kbit/s)...
      Hash of data verified.
      Compressed 1365872 bytes to 811527...
      ...(edited)
      Writing at 0x0015a60e... (100 %)
      Wrote 1365872 bytes (811527 compressed) at 0x00010000 in 10.9 seconds (effective 998.9 kbit/s)...
      Hash of data verified.
      Compressed 3072 bytes to 129...
      Writing at 0x00008000... (100 %)
      Wrote 3072 bytes (129 compressed) at 0x00008000 in 0.1 seconds (effective 424.7 kbit/s)...
      Hash of data verified.

      Leaving...
      Hard resetting via RTS pin...

      posted in Core 2
      J
      jdonth
    • RE: Looking for Factory Test Source code for Core2

      @felmue
      No joy. I installed and tried the following versions:
      1.0.6
      1.6.0
      1.6.13
      1.8.0
      1.8.18
      Some of the earlier versions would not let me add external boards (M5Stack) but the later versions that did, still gave me the i2s error (which may or not be related to the no microphone).
      Thank you for your effort.
      Joe

      posted in Core 2
      J
      jdonth
    • RE: Looking for Factory Test Source code for Core2

      @felmue
      Thanks for the assist. Any idea what version of the framework does work? That will save me itterating backwards through the install list looking for the "winner".
      Thanks,
      Joe

      posted in Core 2
      J
      jdonth
    • RE: Looking for Factory Test Source code for Core2

      I spoke too soon.
      The microphone doesn't work (at least the Sound FFT display does not indicate any sounds being picked up.)

      The compile gave the following warning:
      C:\Users\jld\Documents\Arduino\Core2_Factory_test\Core2_Factory_test.ino:292:33: warning: 'I2S_COMM_FORMAT_I2S' is deprecated [-Wdeprecated-declarations]
      .communication_format = I2S_COMM_FORMAT_I2S,
      ^~~~~~~~~~~~~~~~~~~
      In file included from C:\Users\jld\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/driver/include/driver/i2s.h:16,
      from C:\Users\jld\Documents\Arduino\Core2_Factory_test\Core2_Factory_test.ino:2:
      C:\Users\jld\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.1/tools/sdk/esp32/include/hal/include/hal/i2s_types.h:95:5: note: declared here
      I2S_COMM_FORMAT_I2S attribute((deprecated)) = 0x01, /
      !< I2S communication format I2S, correspond to I2S_COMM_FORMAT_STAND_I2S
      /
      ^~~~~~~~~~~~~~~~~~~
      ***
      Any thoughts?

      posted in Core 2
      J
      jdonth