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

GD32E230C8T6 can not upload by serial #51

Open
zaoshang67dian opened this issue Mar 11, 2024 · 1 comment
Open

GD32E230C8T6 can not upload by serial #51

zaoshang67dian opened this issue Mar 11, 2024 · 1 comment

Comments

@zaoshang67dian
Copy link

I am afresher of platformio for gd32. I am trying upload the blink demo to my board, which has a usb to serial ic (CH340N)。
the .ini is:
`[env]
platform = https://github.com/CommunityGD32Cores/platform-gd32.git
platform_packages =
framework-spl-gd32@https://github.com/CommunityGD32Cores/gd32-pio-spl-package.git

[env:genericGD32E230C8]
board = genericGD32E230C8
framework = spl
upload_protocol = serial
upload_port = /dev/tty.usbserial-2140`

I try upload , but failed :
Verbose mode can be enabled via -v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/gd32/genericGD32E230C8.html
PLATFORM: GD GD32 (1.0.0+sha.8df3968) > GD32E230C8 (8k RAM, 64k Flash)
HARDWARE: GD32E230C8T6 72MHz, 8KB RAM, 64KB Flash
DEBUG: Current (stlink) External (blackmagic, cmsis-dap, jlink, sipeed-rv-debugger, stlink)
PACKAGES:

  • framework-spl-gd32 @ 2.10000.0+sha.43a133d
  • tool-dfuutil @ 1.9.211020
  • tool-gdlinkcli @ 2.40611.220807+sha.74386ec
  • tool-openocd-gd32 @ 2.1100.211207 (11.0)
  • tool-stm32duino @ 1.0.1
  • toolchain-gccarmnoneeabi @ 1.90201.191206 (9.2.1)
    ==== STARTUP FILE: startup_gd32e23x.S ======
    SPL libraries are included: True
    CMSIS libraries are included: True
    LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
    LDF Modes: Finder ~ chain, Compatibility ~ soft
    Added CMSIS-DSP library for arm_ARMv8MBLl_math
    Found 11 compatible libraries
    Scanning dependencies...
    No dependencies
    Building in release mode
    Compiling .pio/build/genericGD32E230C8/FrameworkCMSISStartup/startup_gd32e23x.o
    Compiling .pio/build/genericGD32E230C8/src/main.o
    Compiling .pio/build/genericGD32E230C8/FrameworkCMSISVariant/system_gd32e23x.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_adc.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_cmp.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_crc.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_dbg.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_dma.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_exti.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_fmc.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_fwdgt.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_gpio.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_i2c.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_misc.o
    Archiving .pio/build/genericGD32E230C8/libFrameworkCMSISVariant.a
    Indexing .pio/build/genericGD32E230C8/libFrameworkCMSISVariant.a
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_pmu.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_rcu.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_rtc.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_spi.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_syscfg.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_timer.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_usart.o
    Compiling .pio/build/genericGD32E230C8/FrameworkSPL/gd32e23x_wwdgt.o
    Archiving .pio/build/genericGD32E230C8/libFrameworkSPL.a
    Indexing .pio/build/genericGD32E230C8/libFrameworkSPL.a
    Linking .pio/build/genericGD32E230C8/firmware.elf
    Checking size .pio/build/genericGD32E230C8/firmware.elf
    Advanced Memory Usage is available via "PlatformIO Home > Project Inspect"
    RAM: [ ] 0.4% (used 36 bytes from 8192 bytes)
    Flash: [ ] 1.4% (used 948 bytes from 65536 bytes)
    Building .pio/build/genericGD32E230C8/firmware.bin
    Configuring upload protocol...
    AVAILABLE: blackmagic, cmsis-dap, gdlinkcli, jlink, serial, sipeed-rv-debugger, stlink
    CURRENT: upload_protocol = serial
    Looking for upload port...
    Using manually specified: /dev/tty.usbserial-2140
    Uploading .pio/build/genericGD32E230C8/firmware.bin
    Got NACK from device on command 0x01
    stm32flash Arduino_STM32_0.9

http://github.com/rogerclarkmelbourne/arduino_stm32

Using Parser : Raw BINARY
Interface serial_posix: 115200 8E1

*** [upload] Error 1`

@zaoshang67dian
Copy link
Author

my computer is Mac M1, 12.5

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

1 participant