@martinanton
https://github.com/m5stack/M5CoreS3
https://github.com/m5stack/M5CoreS3/blob/main/examples/Advanced/i2c_tester/i2c_tester.ino
@wavydavy
Yes, that resolved the issue, I am now using the
"M5Stack by M5Stack official 3.2.2 installed " board def.
The entire problem was that my pre-existing code AND the M5Stack Github examples by M5Stack use
#include <M5Stack.h>
instead of M5Unified.
Thanks for your help.
Also:
No one at M5Stack picked up on this, except you, not even the online M5Stack AI chat helper.
Note: The examples in the newer web based API work fine, just not the old M5Stack official Github.
Cheers, Terry
@Handcannon Well the Core and Core2 will no longer compile in Arduino IDE with the latest board def, 3.12 and M5Stack says it is a 'me' problem and recommend I use an earlier revision.
I am trying to compile the Core Basic example from M5Stack github examples:
https://github.com/m5stack/M5Stack/blob/master/examples/Basics/Button/Button.ino
I keep getting this error"
Arduino/libraries/M5Stack/src/utility/pngle.c:31:10: fatal error: rom/miniz.h: No such file or directory
31 | #include <rom/miniz.h>
| ^~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
Because of this I recently erased my entire Arduino IDE down to the Arduino15 folder and only reinstalled the latest:
Arduino IDE ver2.3.6 and
esp32 boards 3.2.0 and
M5Stack boards 3.2.1
libraries:
M5Stack latest ver 0.4.6 and all other required dependancies.
If...(and this is NOT the answer)...I revert to the old M5Stack boards 2.1.4, it compiles correctly. (and this is NOT the answer).
I keep my Arduino IDE environment up-to-date, but I have to be carful to not allow the M5Stack boards to update to current.
This is most tedious.
What can I do to permanently resolve this, going forward...without downgrading to an old M5Stack boards def like 2.1.4.
(This effects Core2, btw)
?How to install rom/miniz and compile OK?
Cheers, Terry
(@felmue do you have any ideas?)
@felmue This community website seems to have a problem with AI bots offering useless information as if they did not even read or understand the users question..
This is the second one in a few weeks.
Only since the board def "updated" automatically from ver 2.1.4 to ver 3.2.x, I cannot compile my trusty, dusty Core Basic (Or Core2).
/Arduino/libraries/M5Stack/src/utility/pngle.c:31:10: fatal error: rom/miniz.h: No such file or directory
If I downgrade to 2.1.x it compiles as usual for 5 years running.
I found this on google:
https://www.gonnalearn.com/from-miniz-h-compilation-error-m5stack-arduino/
and there have been some other reports on this very community site.
https://community.m5stack.com/topic/7569/issue-with-core2-library
My Arduino IDE ver2.3.6 asks me EVERY DAY to upgrade to M5Stack board def 3.2.x.
This is getting tedious. Ver 3.2.1 recently added did not help.
Is M5Stack abandoning the older Cores?
@alexcap Did you take it outside and wait 12 minutes?
@toffifee The raw outputs are beyond the ken of mortal man, except Accel which can easily be observed by placing it on a stationary level surface and observing that the accel values are stationary and one of the axes, usually Z is showing 1.00 (gravity).
Roll it onto its side and the 1.00 should move to another axis.
The other two outputs Gyro and Mag are best left to a positioning algorithm.
@ren072 Sounds like the battery has expired, this is an older StickC!
It happened to me and later on a StickC Plus.
@wwhite Did you plug the UNIT into the red socket on the left side?
These inputs are: 21 and 22.
You could plug it into the discrete I/Os around the base on the right side where you will find 26 and 36.
@nemelesic "Bruce" is hacking software and such is illegal.
@kuriko Thank you!
I will use 2.14 for now.
@kuriko Why not fix ver3.20?
Add rom/miniz.h where it needs to be.
I try to keep my Arduino IDE setup up-to-date but now it reminds me that 3.20 is available and I may need it for newer Tab products?
We need customer support not frustrating answers.
Technically all of the Arduino IDE examples in YOUR M5Stack Github GitHub for Core and Core2 won't work.
e.g. https://github.com/m5stack/M5Core2/tree/master/examples
Are you saying that older M5Stack models are no longer supported?
After 'letting' Arduino IDE update a bunch of boards and libraries...
I cannot compile Core Basic or Core2 with M5Stack board def 3.20
I get;
fatal error: rom/miniz.h: No such file or directory
I updated every relevant file but the best fix was revert to M5Stack boards to ver 2.14
Therefore
3.20 was the problem.
The IDE is now asking me to update to ver 3.20!
I asked Chat.M5Stack and it was not helpful.
I contacted M5Stack support and they just told me the problem is mine...
@smily77 said in Using WiFi on Tab5 with the Arduino IDE:
M5Stack Package 3.2.0
This board pkg (3.20) seems to be broken for many of us.
We have had to revert to ver2.14 and I have notified M5Stack support.
Try reverting and see.
If still a problem make a simpler de-bug version of your sketch and add complications.
@Dan-Perren Me too!
After 'letting' Arduino IDE update a bunch of boards and libraries...
It started to happen.
fatal error: rom/miniz.h: No such file or directory
Best fix was revert to M5Stack boards to ver 2.14
(3.20 was the problem.)
cheers