Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support to M5AtomS3 #52

Closed
oxbown opened this issue Jun 13, 2023 · 7 comments
Closed

Add Support to M5AtomS3 #52

oxbown opened this issue Jun 13, 2023 · 7 comments

Comments

@oxbown
Copy link
Contributor

oxbown commented Jun 13, 2023

Please consider to include AtomS3 to the build list, with platformio this could be really easy.

@oxbown
Copy link
Contributor Author

oxbown commented Jun 13, 2023

Updates:

board = m5stack-atoms3 is not pressent in platform = espressif32 @ 3.4.0 so need to update the Platform enviroment.
If update to the newest release "6.3.1" hundreds of errors appears.
error: a reinterpret_cast is not a constant expression

need more investing

@free-x
Copy link
Contributor

free-x commented Jun 21, 2023

I compared board definitions of ATOM and ATOM-S3. It strikes me that S3 has no "CAN" connectivity.
Are you sure that S3 is right plattform?

@oxbown
Copy link
Contributor Author

oxbown commented Jun 22, 2023

Espressif renames CAN BUS to TWAI so with new boards libraries like "NMEA2000_esp32" not compile.

References to this bug here

A possible solution here --> Commented here

@oxbown
Copy link
Contributor Author

oxbown commented Sep 5, 2023

I'm trying to test the new twai version but something is not working properly. When I connect my m5atoms3 lite with the can bus unit to the N2K network seems that the atom can not read the nmea2k data.
The "NMEA2000 State" in the "Status" page witches between "[32] BUS_OFF" and "[32] OFFLINE", everything is connected correctly (including 120ohm resistances).
There is only one N2K device on the network (plus M5atoms3), an Airmar P79S deep transducer.

@wellenvogel
Copy link
Owner

How did you build & install the firmware?
Did this set up ever work before?
How exactly did you connect the device? CanH/L + ground? Are you sure about the wires - sometimes colors are different!
And please enable the debug log via the UI, connect an terminal via USB and send the output (especially from start up).

@free-x
Copy link
Contributor

free-x commented Sep 6, 2023

i cannot confirm the behavior. this works as expected

 $ pio run -e m5stack-atoms3-canunit
...
 $ pio run -e m5stack-atoms3-canunit -t upload
...
  $ pio run -e m5stack-atoms3-canunit -t monitor
$GPRMC,114135.23,A,5423.940,N,1111.837,E,3.3,196.3,170722,3.2,E*66
$GPMWV,49.8,R,9.2,M,A*17
$GPMWV,58.8,T,8.2,M,A*10
$GPMWD,58.8,T,55.6,M,16.0,N,8.2,M*6D
$GPHDG,197.4,,,3.2,E*3F
$GPHDT,200.6,T*31
$GPRSA,7.8,A,0.0,A*58
$GPVTG,195.8,T,192.6,M,3.3,N,6.1,K*40
$GPHDG,197.4,,,3.2,E*3F
$GPHDT,200.6,T*31
$GPRSA,7.4,A,0.0,A*54
$GPMWV,49.8,R,9.2,M,A*17
$GPMWV,58.9,T,8.2,M,A*11
$GPMWD,58.9,T,55.7,M,16.0,N,8.2,M*6D
....

I'm on master branch of upstream

$ git branch -v
* master 17615ad cleanup unused code, make fallback_serial working again
  twai   e61cfac example to lock idf version

~/git/esp32-nmea2000_twai$ git remote -v
origin	https://github.com/wellenvogel/esp32-nmea2000 (fetch)
origin	https://github.com/wellenvogel/esp32-nmea2000 (push)

greetings
free-x

@oxbown
Copy link
Contributor Author

oxbown commented Sep 9, 2023

Well...sorry, CAN works ok... i´d made a mistake wiring the devices... i can confirm that latest main works on ESP32-S3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants