Navigation

    M5Stack Community

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

    jmarduino

    @jmarduino

    0
    Reputation
    5
    Posts
    153
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    jmarduino Follow

    Posts made by jmarduino

    • PORT C with Core2 + M5GO Battery Bottom2 : 5V UART OK ?

      Hi there

      I've a Core2 with a M5GO Battery Bottom2 which exposes Serial2 (pin 13 and 14) on PORTC as well with 5V and GND. This is great to connect to a 5V UART module but I can't find in the specifications if the Rx pin on PORTC is OK with 5V

      I google searched this but could not find any suitable M5Stack blessed documentation.
      Any clue ?

      thx

      posted in PRODUCTS
      J
      jmarduino
    • RE: getting started with Core2 and stuck.

      actually just tried and it has similar issues. If you compile some of the examples with all warnings turned on in the IDE, the compiler stops

      error: unused variable 'names' [-Werror=unused-variable]
         static constexpr const char* const names[] = { "none", "wasHold", "wasClicked", "wasPressed", "wasReleased", "wasDeciedCount" };
                                            ^~~~~
      cc1plus: some warnings being treated as errors
      
      posted in Core 2
      J
      jmarduino
    • RE: getting started with Core2 and stuck.

      @notinthemafia thanks for the hint

      posted in Core 2
      J
      jmarduino
    • RE: getting started with Core2 and stuck.

      answering to myself :

      the issue comes from setting the warnings to max level in the IDE's preferences
      short term fix = drop down the level of warnings to default
      long term fix : fix all the files with a warning. most of them are in the font area.

      I find it surprising the libraries were not tested with all warnings on...

      posted in Core 2
      J
      jmarduino
    • getting started with Core2 and stuck.

      Hi

      I just got my hands on a couple Core 2 which I plan to use on my Mac (Intel Core I9, Monterey 12.6.7) with the Arduino environment - both the IDE Version: 2.1.1 and 1.8.19

      I followed the guidelines I found at https://docs.m5stack.com/en/quick_start/core2/arduino to configure my Arduino environment

      When trying to compile a very simple code that does nothing

      void setup() {}
      void loop() {}
      

      there is no issue, the process works

      but when I try to just add the include for the M5Core2

      #include <M5Core2.h>
      void setup() {}
      void loop() {}
      

      and try to compile again

      • it first starts OK
      • then I get tons of warnings related to
        missing initializer for member 'GFXfont::smooth_bpp
        or
        warning: missing initializer for member 'GFXfont::range'
      • then it continues
      • then I get more warnings in the RTC code or other modules like
        M5Core2/src/RTC.cpp:221:30: warning: comparison is always true due to limited range of data type
      • then I get a bunch of warning for the fonts such as
        warning: missing initializer for member 'GFXfont::smooth_bpp'
      • and a last one about
        .../M5Core2/src/Fonts/glcdfont.c:10:28: error: 'font' defined but not used [-Werror=unused-const-variable=] static const unsigned char font[] PROGMEM = { ^~~~
        cc1: some warnings being treated as errors

      and then the compilation process ends with
      exit status 1
      Erreur de compilation pour la carte M5Stack-Core2

      I suspect the issue is due to compiler flags as I've seen that report
      cc1: some warnings being treated as errors

      How to solve that ?

      Anyone using Core2 in the Arduino environment should be affected if this is the root cause but I could not find specific complaints about this.

      What did I miss?

      thx

      posted in Core 2
      J
      jmarduino