Navigation

    M5Stack Community

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

    Best posts made by greenleaf

    • Building Core2 FactoryDemo in PlatformIO

      If anyone else is trying to do this you'll need to fix your partition table to take advantage of the larger memory. The steps how to do this are:

      1. Go to PIO Home in Visual Studio Code
      2. Click on +New Project
      3. Name it m5core2 or similar. Choose M5Stack Core ESP32 for the board.
      4. Leave Framework set to Arduino.
      5. Open your platformio.ini file and replace the text with this:
      [env:m5stack-core-esp32]
      platform = espressif32
      board = m5stack-core-esp32
      framework = arduino
      ; [[[for macos]]]
      ;upload_port = /dev/cu.SLAB_USBtoUART
      ; [[[fix PSRAM size and you won't need have this file]]]
      board_build.partitions = default_16MB.csv
      build_flags =
          -DBOARD_HAS_PSRAM
          -mfix-esp32-psram-cache-issue
      
      1. Copy the 16MB partition table file into your src directory. You can download this file here:

      https://github.com/espressif/arduino-esp32/blob/master/tools/partitions/default_16MB.csv

      1. In the 'lib' directory you will need three libraries.
        FastLED - https://github.com/FastLED/FastLED
        M5Core2 - https://github.com/m5stack/M5Core2
        ArduinoECCX08 - This one is in a zip file in the M5Core2 library repo:
        https://github.com/m5stack/M5Core2/blob/master/examples/core2_for_aws/ArduinoECCX08.zip

      Your lib directory should look like this when you're done:
      0_1609802773703_40f76186-abcc-4a68-916a-468a37b4451a-image.png

      1. Now copy everything from the example FactoryTest directory in the M5Core2 library into your src folder. The directory files can be viewed here:

      https://github.com/m5stack/M5Core2/tree/master/examples/core2_for_aws/FactoryTest

      1. Rename FactoryTest.ino to main.cpp

      2. Edit main.cpp and comment out these two lines with //. These tests will fail if you don't have an SDCard or something plugged into the IO port.

      0_1609802944350_e768774e-f0f1-419b-a751-2b40e2db3122-image.png

      1. Connect your M5Core2 and build/upload. You can do CTRL-Shift-P to find the Platformio:Upload option.

      2. Play with the cool factory demo!

      0_1609803302370_m5.jpg

      Thanks to jokercatz for the tip on fixing the platform:
      http://jokercatz.blogspot.com/2020/11/m5stack-core2-build-from-platformio.html

      posted in Core2 for AWS
      greenleaf
    • RE: AWS Edukit as normal Core2 for Uiflow

      Yes, you can flash your AWS Edukit M5 Core 2 with UIFlow_Core2. I just did mine today and it works great with UIFlow. Within a few minutes I had a useful app running on the device.

      You will lose access to the LEDs and the microphone as those are not supported (yet?) in the UIflow:

      https://github.com/m5stack/UIFlow-Code/wiki/Advanced

      posted in Core2 for AWS
      greenleaf
    • AWS IoT Edukit Core M5 - Micropython support?

      The AWS IoT Edukit Core M5 requires you to build your own firmware using the ESP-IDF build framework.

      Will the extra hardware features like the RGB leds, microphone and crypto module be supported with an m5burner micropython image?

      posted in Core2 for AWS
      greenleaf
    • RE: AWS IoT Edukit Core M5 - Micropython support?

      @ajb2k3 Thanks. Yes, it looks like UIflow has evolved quite a bit since last year. I'm happy to see you can execute custom code now, and that there are some dedicated hooks for things like AWS IoT.

      posted in Core2 for AWS
      greenleaf
    • RE: Edukit ATECC608B & AWS IOT & UiFlow

      @ajb2k3 It's super buggy. I tried getting this ATECC608 chip working with Arduino code and had very inconsistent results, kernel panics and crashes. The only way I've seen it run consistently is by running the RTOS code in the AWS edukit tutorials.

      posted in Core2 for AWS
      greenleaf
    • RE: Labels show up as blank white rectangles when running program

      As you can see I'm not doing anything especially exotic or weird here:

      0_1660436660810_1d5b4e7a-a8af-4c03-9a12-4820a937aaf3-image.png

      posted in Bug Report
      greenleaf
    • RE: UIFlow wifi connect forces screen background to be white

      After some more troubleshooting I discovered that a 10ms wait after changing the screen color allows the first few lines to print when working in UIFlow. It appears that 'Set Screen backgroundColor' requires this delay before you can render text with Lcd.print.

      This doesn't solve the mystery of the white screen when running in app mode though. Maybe someone else knows what's going on here.

      posted in UIFlow
      greenleaf