Skip to content

boards/arm/ht32f491x3: improve ESK32 nsh bring-up and userled support#18573

Draft
FelipeMdeO wants to merge 2 commits intoapache:masterfrom
FelipeMdeO:feature/ht32f49xx_port
Draft

boards/arm/ht32f491x3: improve ESK32 nsh bring-up and userled support#18573
FelipeMdeO wants to merge 2 commits intoapache:masterfrom
FelipeMdeO:feature/ht32f49xx_port

Conversation

@FelipeMdeO
Copy link
Contributor

@FelipeMdeO FelipeMdeO commented Mar 21, 2026

Summary

This PR improves the existing HT32F491x3 ESK32 board support.

Changes included:

  • enable board bring-up for esk32:nsh
  • mount /bin and /proc
  • enable hello, ostest, dumpstack, and leds in esk32:nsh
  • add HT32F491x3 internal GPIO helpers
  • add ESK32 user LED support and register /dev/userleds
  • add ESK32 board documentation

Impact

  • Is new feature added? Yes
  • Impact on user: esk32:nsh now provides /bin, /proc, /dev/userleds, and useful built-in apps
  • Impact on build: No global build changes
  • Impact on hardware: Yes, ARM/HT32F491x3 ESK32 board support
  • Impact on documentation: Yes
  • Impact on security: No

Testing

  • ./tools/configure.sh -l esk32:nsh
  • make -j
  • make -C Documentation html

Hardware tested on HT32F49163 Starter Kit:

  • NSH boot on USART1
  • /bin and /proc mounted
  • /dev/userleds registered
  • hello, ostest, dumpstack, and leds executed successfully
  • LED2, LED3, and LED4 toggled correctly

@github-actions github-actions bot added Area: Build system Arch: arm Issues related to ARM (32-bit) architecture Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces. Board: arm labels Mar 21, 2026
@FelipeMdeO FelipeMdeO force-pushed the feature/ht32f49xx_port branch from da00536 to 8050202 Compare March 21, 2026 21:57
Add the initial HT32F491x3 ESK32 board support, NSH bring-up, GPIO, and user LED support.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
Document the ESK32 board support, flashing flow, and current features.

Signed-off-by: Felipe Moura <moura.fmo@gmail.com>
@FelipeMdeO FelipeMdeO force-pushed the feature/ht32f49xx_port branch from 8050202 to 1e40242 Compare March 21, 2026 22:16
@FelipeMdeO
Copy link
Contributor Author

Hello @acassis , @linguini1 , @xiaoxiang781216 , can you give me some tips before open PR officially, please?

@lupyuen
Copy link
Member

lupyuen commented Mar 22, 2026

@FelipeMdeO Can you Rebase with Master Branch to trigger the CI Build? We just fixed the CI Build. Thanks :-)

Comment on lines +27 to +34
CHIP_CSRCS += ht32f491x3_start.c ht32f491x3_irq.c
CHIP_CSRCS += ht32f491x3_timerisr.c ht32f491x3_gpio.c
CHIP_CSRCS += ht32f491x3_lowputc.c
CHIP_CSRCS += ht32f491x3_serial.c

ifeq ($(CONFIG_ARCH_HAVE_CUSTOM_VECTORS),y)
CHIP_CSRCS += arm_vectors.c
endif
Copy link
Contributor

@simbit18 simbit18 Mar 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@FelipeMdeO The file arch/arm/src/ht32f491x3/CMakeLists.txt is missing

Try running the command

  • cmake -B build -DBOARD_CONFIG=esk32:nsh -GNinja
  • cmake --build build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Area: Build system Board: arm Size: XL The size of the change in this PR is very large. Consider breaking down the PR into smaller pieces.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants