Giter Site home page Giter Site logo

m5cores3's People

Contributors

felmue avatar gitshaoxiang avatar hpsaturn avatar lboue avatar tinyu-zhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

m5cores3's Issues

Fail to build HelloWorld.ino: Compilation error: 'USBSerial' was not declared in this scope

Hello,

It looks like a line is missing to declare the variable in HelloWorld.ino example:

C:\Users\user\AppData\Local\Temp\.arduinoIDE-unsaved2023430-5812-sfr3mr.33j4\HelloWorld\HelloWorld.ino:32:5: error: 'USBSerial' was not declared in this scope
     USBSerial.println(
     ^~~~~~~~~
C:\Users\user\AppData\Local\Temp\.arduinoIDE-unsaved2023430-5812-sfr3mr.33j4\HelloWorld\HelloWorld.ino:32:5: note: suggested alternative: 'Serial'
     USBSerial.println(
     ^~~~~~~~~
     Serial

exit status 1

Compilation error: 'USBSerial' was not declared in this scope

Micropython support

I know this is the wrong repo to ask this question, hence I apologise for that, but didn’t know where else to ask this

i would like to know whether the new m5stack coreS3 has any support for micropython?
If this has Already been answered, then I’m sorry

IMU Error

In file included from /Users/x/Documents/Arduino/libraries/M5CoreS3/src/M5CoreS3.h:16,
from /Users/x/Documents/DATA 27 May 2023/Arduino/M5_2/M5_2.ino:1:
/Users/x/Documents/Arduino/libraries/M5CoreS3/src/utility/I2C_IMU.h:6:10: fatal error: BMI270_Sensor.h: No such file or directory
#include "BMI270_Sensor.h"
^~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: exit status 1

Failing to compile due to missing file "bmi270.h"

Run pio run command:

Archiving .pio\build\esp32-s3-devkitc-1\libd4a\libSPI.a
Compiling .pio\build\esp32-s3-devkitc-1\FrameworkArduino\HWCDC.cpp.o
Compiling .pio\build\esp32-s3-devkitc-1\FrameworkArduino\HardwareSerial.cpp.o
In file included from src/utility/I2C_IMU.cpp:1:
src/utility/I2C_IMU.h:7:10: fatal error: bmi270.h: No such file or directory

****************************************************************
* Looking for bmi270.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:bmi270.h"
* Web  > https://registry.platformio.org/search?q=header:bmi270.h
*
****************************************************************

 #include "bmi270.h"
          ^~~~~~~~~~
compilation terminated.
*** [.pio\build\esp32-s3-devkitc-1\src\utility\I2C_IMU.cpp.o] Error 1
In file included from src/M5CoreS3.h:16,
                 from src/M5CoreS3.cpp:5:
src/utility/I2C_IMU.h:7:10: fatal error: bmi270.h: No such file or directory

Compilation error: 'USBSerial' was not declared in this scope

I use the Arduino IDE (v.2.2.1) and have M5Stack board manager 2.0.8 and M5CoreS3 library v0.0.4

When I try to compile HelloWorld.ino from the examples directory, I get:
Compilation error: 'USBSerial' was not declared in this scope

image

When I comment out the SerialUSB statement in the example, the compiler now complains about USBSerial in the I2C_IMU library.

image

 

None of examples seem to compile, so I must be doing something wrong.

WIFI basic HTTP Client #if with no expression

I got got compilation error for WIFI basic HTTPClient example
Local\Arduino15\packages\esp32\hardware\esp32\2.0.11/tools/sdk/esp32c3/include/hal/include/hal/i2c_types.h:85:28: error: #if with no expression
#if CONFIG_IDF_TARGET_ESP32

[Request] Add Factory Test code to the repo

Are you planning on adding the Factory Test code to the Repo. That has always been a great addition to all your dev kits, especially as it helps developers get a better understanding of the complete system.

Pls detail arduino 2.1.0 Tools config settings to build camera.ino

Have been ableto build all examples except Camera (required updating arduino IDE and many dependent libraries). Spent several days on the Camera.ino playing with Tools options in Arduino2.1.0 but still getting weird serial port failure errors reported at 75% programmed .
I noticed the partitions.csv is included in the Camera directory. Im guessing it gets used automatically, im wondering if it is correct also ? (Ive seen errors "No core dump partition found!") Heres the original csv.
partitions.csv

Also noticed no sample code for touchscreen, or the very nice factory application.

PlatformIO: can't build using the sample platformio.ini file

In a new project, I have the following platformio.ini, based on the sample one in this repo:

[env:m5stack-cores3]
platform = espressif32
board = m5stack-cores3
framework = arduino
upload_speed = 1500000
monitor_speed = 115200
monitor_filters = time
build_flags = 
	-DESP32S3
	-DBOARD_HAS_PSRAM
	-mfix-esp32-psram-cache-issue
	-DCORE_DEBUG_LEVEL=5
	-DARDUINO_USB_CDC_ON_BOOT=1
	-DARDUINO_USB_MODE=1
lib_deps = 
	m5stack/M5CoreS3@^0.0.4
	tinyu-zhao/BMI270_Sensor@^0.0.1

Build stage will produce:

.pio/libdeps/m5stack-cores3/M5CoreS3/src/utility/I2C_IMU.cpp: In constructor 'I2C_IMU::I2C_IMU()':
.pio/libdeps/m5stack-cores3/M5CoreS3/src/utility/I2C_IMU.cpp:10:5: error: 'USBSerial' was not declared in this scope
     USBSerial.begin(115200);
     ^~~~~~~~~
.pio/libdeps/m5stack-cores3/M5CoreS3/src/utility/I2C_IMU.cpp:10:5: note: suggested alternative: 'Serial'
     USBSerial.begin(115200);
     ^~~~~~~~~
     Serial
     ...

The issue seems to come from the flag -DARDUINO_USB_CDC_ON_BOOT=1; it runs fine when the macro is set to 0.
I am not sure though if there are further implications.

Also, I see platformio.ini uses board = esp32-s3-devkitc-1. What are the differences with board = m5stack-cores3?

Bluetooth support

ESP32-S3 supports Bluetooth. Can I work with Bluetooth on M5CoreS3? Fore some reason it's not mentioned anywhere in the specs.

Basics/Camera example cam_hal: cam_dma_config(306): frame buffer malloc failedESP-ROM:esp32s3-20210327

Hello,

I am facing a DMA malloc issue when running last commit 0b94d75 Basics/Camera example:
cam_hal: cam_dma_config(306): frame buffer malloc failedESP-ROM:esp32s3-20210327

Setup

  • Arduino IDE 2.1.0
  • W11

Full serial log:

07:37:27.890 -> E (462) cam_hal: cam_dma_config(306): frame buffer malloc failedESP-ROM:esp32s3-20210327
07:37:27.890 -> Build:Mar 27 2021
07:37:27.890 -> rst:0x15 (USB_UART_CHIP_RESET),boot:0x28 (SPI_FAST_FLASH_BOOT)
07:37:27.890 -> Saved PC:0x420929d6
07:37:27.890 -> SPIWP:0xee
07:37:27.890 -> mode:DIO, clock div:1
07:37:27.890 -> load:0x3fce3808,len:0x44c
07:37:27.890 -> load:0x403c9700,len:0xbec
07:37:27.890 -> load:0x403cc700,len:0x2920
07:37:27.890 -> entry 0x403c98d8
07:37:28.025 -> E (181) esp_core_dump_flash: No core dump partition found!
07:37:28.025 -> E (181) esp_core_dump_flash: No core dump partition found!
07:37:28.476 -> E (460) cam_hal: cam_dma_config(306): frame buffer malloc failed
07:37:28.476 -> E (461) cam_hal: cam_config(390): cam_dma_config failed
07:37:28.476 -> E (461) camera: Camera config failed with error 0xffffffff

Do you know where this error can come from?

CoreS3 RTC

Describe the bug

Hello,
Hope you are doing well,

I have an question regrading to RTC example included for CoreS3.

would you please let me know that in this Example, ESP32's internal RTC was used or BM8563's RTC,

because i have tested it over a day, and it is 4 Seconds behind NTP.

I would be tankful if you let me know, because i just want to know that if BM8563 has a bad performance or what?

To reproduce

i added nothing to the file. i just loaded it on the board.

Expected behavior

I expected that does not fall behind the NTP this fast.

Screenshots

No response

Environment

  • OS:
  • IDE &IDE Version:
  • Repository Version:

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details

PoweModeSet

Describe the bug

Hi can you please tell me how to call powerModeSet, I have a DMX module and when I used 12v in the display wont turn on, keeps power cycling. thanks. Im using the latest version of the library.

To reproduce

.

Expected behavior

to work with DMX module with 12v input.

Screenshots

No response

Environment

  • OS:
  • IDE &IDE Version:
  • Repository Version:

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details

Basics/Camera example building issue

Hello,

I am facing an issue building Basics/Camera example.

C:\Users\user\AppData\Local\Temp\.arduinoIDE-unsaved2023426-33536-thpr5h.d7lcs\Camera\Camera.ino:4:10: fatal error: CoreS3_GC0308.hpp: No such file or directory
 #include <CoreS3_GC0308.hpp>
          ^~~~~~~~~~~~~~~~~~~
compilation terminated.

exit status 1

Compilation error: CoreS3_GC0308.hpp: No such file or directory

Do you know how to fix this issue?

Setup

  • Arduino IDE 2.1.0
  • W11

Screenshot

image

M5 Burner Does non work for CoreS3

I can not burn CoreS3 firmware using M5Burner on Mac OS. I've already tried numerous times and always get the same error:

--chip esp32 --port /dev/tty.usbmodem1301 --baud 1500000 --before default_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size detect 0x000 /Applications/m5burner.app/Contents/Resources/packages/firmware
usage: esptool write_flash [-h] [--flash_freq {keep,40m,26m,20m,80m}]
                           [--flash_mode {keep,qio,qout,dio,dout}]
                           [--flash_size FLASH_SIZE]
                           [--spi-connection SPI_CONNECTION] [--no-progress]
                           [--verify] [--compress | --no-compress]
                           <address> <filename> [<address> <filename> ...]
esptool write_flash: error: argument <address> <filename>: [Errno 21] Is a directory: '/Applications/m5burner.app/Contents/Resources/packages/firmware'

I've tried to use esptool without M5 burner, and I was able to flash the firmware with it, but in this case, there is no wi-fi configuration there (I do not know how to pass my wifi network in password info when I use esptool directly), so CoreS3 does not connect to wifi :(

[Request] Add M5CoreS3 Button Touch Example

Describe the bug

M5CoreS3

i cnot find example how to use the Button Touch for ardurino ?

To reproduce

?

Expected behavior

?

Screenshots

?

Environment

  • OS:
  • IDE &IDE Version:
  • Repository Version:

Additional context

?

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details

No WLAN and HTTP support in Arduino library?

Describe the bug

May I know why no WLAN and HTTP support in Arduino library?

To reproduce

no related functions and library in IDE

Expected behavior

Should have HTTP function in IDE

Screenshots

No response

Environment

  • OS:
  • IDE &IDE Version:
  • Repository Version:

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details

Not working in arduino 1.8.9

Even with all dependencies installed (M5stack boards/libraries, M5Family, etc), the CoreS3 is not shown on the boards list, and example code does not run even when the board "ESP32-s3 dev kit it selected"

uiflow?

How I flash uiflow onto this, i just received a batch of them :). And I wanted to migrate my core2 projects to this?

Linking issue on PlatformIO build

Overview

After clone of the repo, and then perform a pio run I have the next linking issue:

Linking .pio/build/M5CoreS3/firmware.elf
/home/avp/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/M5CoreS3/libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0x8): undefined reference to `setup()'
/home/avp/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/M5CoreS3/libFrameworkArduino.a(main.cpp.o):(.literal._Z8loopTaskPv+0xc): undefined reference to `loop()'
/home/avp/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: .pio/build/M5CoreS3/libFrameworkArduino.a(main.cpp.o): in function `loopTask(void*)':
/home/avp/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:42: undefined reference to `setup()'
/home/avp/.platformio/packages/toolchain-xtensa-esp32s3/bin/../lib/gcc/xtensa-esp32s3-elf/8.4.0/../../../../xtensa-esp32s3-elf/bin/ld: /home/avp/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:48: undefined reference to `loop()'
collect2: error: ld returned 1 exit status
*** [.pio/build/M5CoreS3/firmware.elf] Error 1

Touch example .ino

Can we get an example multifunction sketch showing us how to use screen/touch/sd card etc simultaneously. I'm struggling to get the features I need working together with the limited resources.

Dependency on BMI Sensor

I finally got the Hello World example to compile.
I needed to add the library for CoreS3 and all its dependencies
Then after that add the library for the BMI Sensor 270 - should be marked as a dependency.

Also fixed some typos referring to AtomS3 in the Readme files.

Hmmmm, is this product ready for release!

M5ScreS3 - touch library issues

Describe the bug

I have CoreS3 and with the Arduino IDE V2 - I #include <M5CoreS3.h>
but the following errors (on isPressed and the x & y error as well.
I see the M5core2 API has these "functions" but I have CoreS3.

if (M5.Touch.ispressed()) {
int16_t x = M5.Touch.x;
int16_t y = M5.Touch.y;

if (x >= 285 && x <= 315 && y >= 25 && y <= 55) {
  connectToWiFi();
}

To reproduce

ARDUINO V2
M5Stack Core S3

Expected behavior

no error

Screenshots

Screenshot 2024-01-19 at 10 42 14 am

Environment

  • OS:
  • IDE &IDE Version:
  • Repository Version:

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details

[Request] Power Management example code

In the URL https://docs.m5stack.com/en/core/CoreS3 there is a graphic representing Power Management options:
USB IN, BUS IN => BUS_OUT_EN = 0, USB_OTG_EN = 0
USB IN, BUS OUT => BUS_OUT_EN = 1, USB_OTG_EN = 0
USB OUT, BUS IN => BUS_OUT_EN = 0, USB_OTG_EN = 1
USB IN, BUS OUT => BUS_OUT_EN = 1, USB_OTG_EN = 1

image

I would like to control it within the app, but there is no factory test released for CoreS3 which I would look into + no example provided for that.

Apart from publishing an example to the community, could you please also share an inline code how to make it?
M5.Axp.something here

I have tested many things by looking into AXP2101.h and reusing public methods, but no luck so far.
Help would be very appreciated!

Fail to build I2C_Tester.ino example: error: 'USBSerial' was not declared in this scope

Summary

It fails to build I2C_Tester.ino example

Error

It seems to have problem with the management of the serial port.

src\M5CoreS3.cpp:21:5: error: 'USBSerial' was not declared in this scope
     USBSerial.printf("APX initial:%d\n", Axp.begin(&Wire1));

Arduino IDE Logs

c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\utility\I2C_IMU.cpp: In constructor 'I2C_IMU::I2C_IMU()':
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\utility\I2C_IMU.cpp:10:5: error: 'USBSerial' was not declared in this scope
     USBSerial.begin(115200);
     ^~~~~~~~~
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\utility\I2C_IMU.cpp:10:5: note: suggested alternative: 'Serial'
     USBSerial.begin(115200);
     ^~~~~~~~~
     Serial
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\utility\I2C_IMU.cpp: In member function 'void I2C_IMU::Init()':
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\utility\I2C_IMU.cpp:96:5: error: 'USBSerial' was not declared in this scope
     USBSerial.printf("Valid BMM150 (Aux) sensor - Chip ID : 0x%x\r\n",
     ^~~~~~~~~
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\utility\I2C_IMU.cpp:96:5: note: suggested alternative: 'Serial'
     USBSerial.printf("Valid BMM150 (Aux) sensor - Chip ID : 0x%x\r\n",
     ^~~~~~~~~
     Serial
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\M5CoreS3.cpp: In member function 'void M5CoreS3::begin(bool, bool, bool)':
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\M5CoreS3.cpp:15:9: error: 'USBSerial' was not declared in this scope
         USBSerial.begin(115200);
         ^~~~~~~~~
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\M5CoreS3.cpp:15:9: note: suggested alternative: 'Serial'
         USBSerial.begin(115200);
         ^~~~~~~~~
         Serial
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\M5CoreS3.cpp:21:5: error: 'USBSerial' was not declared in this scope
     USBSerial.printf("APX initial:%d\n", Axp.begin(&Wire1));
     ^~~~~~~~~
c:\Users\user\Documents\Arduino\libraries\M5CoreS3\src\M5CoreS3.cpp:21:5: note: suggested alternative: 'Serial'
     USBSerial.printf("APX initial:%d\n", Axp.begin(&Wire1));
     ^~~~~~~~~
     Serial

exit status 1

Compilation error: exit status 1

SD card example fails after reset

Hello guys
for me the SD card example only works once after powering M5CoreS3 up, but not after pressing the reset button.

Below is the debug output after pressing the reset button:

M5CoreS3 initializing...OK
[  2492][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
APX initial:0
[  2496][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
[  2863][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=2 scl=1 freq=100000
[  2886][W][sd_diskio.cpp:174] sdCommand(): no token received
[  2987][W][sd_diskio.cpp:174] sdCommand(): no token received
[  3087][W][sd_diskio.cpp:174] sdCommand(): no token received
[  3187][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
[  3187][W][sd_diskio.cpp:516] ff_sd_initialize(): GO_IDLE_STATE failed
[  3188][E][sd_diskio.cpp:802] sdcard_mount(): f_mount failed: (3) The physical drive cannot work
[  3197][W][sd_diskio.cpp:174] sdCommand(): no token received
[  3302][W][sd_diskio.cpp:174] sdCommand(): no token received
[  3403][W][sd_diskio.cpp:174] sdCommand(): no token received
[  3504][E][sd_diskio.cpp:199] sdCommand(): Card Failed! cmd: 0x00
Card failed, or not present

As reference the log output after powering up M5CoreS3:

M5CoreS3 initializing...OK
[  2492][W][Wire.cpp:301] begin(): Bus already started in Master Mode.
APX initial:0
[  2496][E][esp32-hal-gpio.c:102] __pinMode(): Invalid pin selected
[  2863][I][esp32-hal-i2c.c:75] i2cInit(): Initialising I2C Master: sda=2 scl=1 freq=100000
TF card initialized.
hello.txt exists.
Creating hello.txt
Writing to test.txt...
done.
/hello.txt Content:
SD test.

I think it has to do how the LCD and SD card are sharing the SPI bus. Especially how MISO is used as D/C for the LCD.

Thanks
Felix

MAX30010 issues when connected to PaHub

Hi, In case of multiple I2C devices which one of them is MAX30010, making issues with MAX30010 device, such that the results are invalid, note that the I2C addresses between devices are different.

M5CoreS3 & COM.X LTE Module

Describe the bug

is there any Examples of the COM.X LTE working with the M5CoreS3??

To reproduce

using the Expmaple from CoreS2 I get a " uint8_t port = VSPI;" error

Expected behavior

no error

Screenshots

No response

Environment

  • OS:
  • IDE &IDE Version: Arduino 2
  • Repository Version:

Additional context

No response

Issue checklist

  • I searched for previous reports in the issue tracker
  • My report contains all necessary details

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.