Skip to content

boards/avr/atmega: Added Elegoo Mega2560r3 board support - #16443

Merged
xiaoxiang781216 merged 1 commit into
apache:masterfrom
linguini1:elegoo-controller-board
May 30, 2025
Merged

boards/avr/atmega: Added Elegoo Mega2560r3 board support#16443
xiaoxiang781216 merged 1 commit into
apache:masterfrom
linguini1:elegoo-controller-board

Conversation

@linguini1

@linguini1 linguini1 commented May 26, 2025

Copy link
Copy Markdown
Contributor

Summary

This PR adds support for a NSH configuration on the Elegoo ATMega2560 Rev3 board.

Impact

Users with this board will be able to use NuttX on it.

This impacts the build system by adding a new board (some new configuration options added), the documentation system and adds a new board under the avr/atmega grouping.

Testing

Documentation was tested with local build and verification of render in browser.

autoled implementation was tested by enabling the subsystem and calling board_autoled_on(LED_STARTED) in the atmega_boardinitialize() function, verifying that the LED turned on.

The NSH application could not be tested as of right now. It appears the UART driver for the ATMega2560 is not working correctly. No data appears on USART0 after booting, even with syslog enabled. When I manually call avr_lowputc in the atmega_boardinitialize() function, the TX LED on the board gets stuck on.

Since this board is a "clone" of the Arduino ATMega2560 board, I also flashed the hello configuration from that board and experienced the same lack of data on USART0. If there is anyone with an ATMega2560 based board who might be able to confirm this issue, please let me know! I'm linking this to #16444.

@github-actions github-actions Bot added Area: Documentation Improvements or additions to documentation Board: avr Size: L The size of the change in this PR is large labels May 26, 2025
@linguini1
linguini1 force-pushed the elegoo-controller-board branch from a93a63b to 43885ef Compare May 26, 2025 02:45
@linguini1

Copy link
Copy Markdown
Contributor Author

Is there anyone with an ATMega2560-based board that can help me test the serial console/boot implementation?

I am able to get some up_putc output to appear, but I experience weird crashes and the board cannot launch into application code (see #16444). I'm not able to get a working build of arduino-mega2560:nsh as far back as release 11.0 (further back and I run into compiler errors so I've stopped for now).

Preliminary support for the Elegoo Mega2560r3 board by Elegoo with NSH
configuration.
@linguini1
linguini1 force-pushed the elegoo-controller-board branch from 43885ef to 863759d Compare May 29, 2025 22:22
@linguini1
linguini1 marked this pull request as ready for review May 29, 2025 22:22
@linguini1
linguini1 requested a review from xiaoxiang781216 May 29, 2025 22:22
@linguini1

Copy link
Copy Markdown
Contributor Author

Don't think the build error is the cause of this PR.

@simbit18

simbit18 commented May 30, 2025

Copy link
Copy Markdown
Contributor

this error is not about this PR

Job Linux (risc-v-06)

curl: (16) Error in the HTTP2 framing layer
make[1]: *** [fdt/Make.defs:30: dtc] Error 16
make[1]: Target 'context' not remade because of errors.
make: *** [tools/Unix.mk:458: libs/libc/.context] Error 2
make: Target 'all' not remade because of errors.
/github/workspace/sources/nuttx/tools/testbuild.sh: line 385: /github/workspace/sources/nuttx/../nuttx/nuttx.manifest: No such file or directory

@xiaoxiang781216
xiaoxiang781216 merged commit ef04b4c into apache:master May 30, 2025
@linguini1
linguini1 deleted the elegoo-controller-board branch November 9, 2025 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Documentation Improvements or additions to documentation Board: avr Size: L The size of the change in this PR is large

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants