#13- [QuickStart] GPIO and UART of CH32V003 using Arduino IDE

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ต.ค. 2024
  • #arduino #riscv #mcu #electronic #ch32 #ch32everywhere
    This video first answered some of the customer's questions about how to download the program in the previous video and then shows how to configure GPIO and UART in the arduino IDE and measure the final result.
    Arduino Core for CH32:
    github.com/ope...
    The documentation for CH32V003:
    github.com/ope...

ความคิดเห็น • 58

  • @konstantinsc
    @konstantinsc 5 หลายเดือนก่อน +2

    at 0:29: WCH-LinkE photo is wrong, it is WCH-Link (without "E") , it cannot program CH32V00..

  • @zcbesaba
    @zcbesaba 11 หลายเดือนก่อน +3

    Why plain blink spent over 60% flash? using Wire.h spent over 86%. It's stranger.

  • @NickNoneYa-j3g
    @NickNoneYa-j3g ปีที่แล้ว +2

    It would be good to support their higher capability chips also. UART, DAC, ADC, WDT, hardware interrupts...etc. Just like on the reset of the Arduino supported devices.

  • @sipbit
    @sipbit ปีที่แล้ว +1

    Thank you soo much for this tutorial. I was wondering could you do a demo of the low powered modes using the Arduino IDE. and Posibly waking it up with a button. I would be very interested in seeing the real power consumption tested.

  • @thekikaz
    @thekikaz 7 หลายเดือนก่อน +2

    hey, how do you make a analogRead? with analogRead(PA2) or other Analogpins i got nothing in return? digitalread is working? any ideas? thx

    • @briansmith262
      @briansmith262 7 หลายเดือนก่อน +2

      Hi there, just got this working, the ADC is disabled by default, you just need to edit the .arduino15/packages/WCH/hardware/ch32v/1.0.4/variants/CH32V00x/CH32V003F4/variant_CH32V003F4.h file and remove the '//' from the line that says #define ADC_MODULE_ENABLED

  • @bertbrecht7540
    @bertbrecht7540 ปีที่แล้ว +2

    Thanks for making this video. The dev board I have is the CH32Vx03C-R0-1v0 (with the CH32V203 chip) and I am not sure if this is essentially the same as the the CH32V203G8U board you discuss in this video.

    • @rvmaking
      @rvmaking  ปีที่แล้ว

      The dev board of V203C8T6 is a little bit different from V203G8, but it's easy to remap the pin-map file in .cpp source file.

  • @onecircuit-as
    @onecircuit-as ปีที่แล้ว +1

    Great work! 👏👍😀

  • @sarkilo
    @sarkilo 10 หลายเดือนก่อน +3

    why blink takes 10kB?

    • @briansmith262
      @briansmith262 6 หลายเดือนก่อน

      I've started using the ch32v003fun environment instead. It's a bit more complex than Arduino (which was great for getting started), but binaries are way smaller - 560 bytes for a 'blink' example for me.

  • @nfcradio4622
    @nfcradio4622 10 วันที่ผ่านมา

    How to Change Tab Size From Default 4 to 8, I change it from Windows-> Preferences->General ->Editors->Text Editor and set Display Tab width = 8 but it does not Work. IDE is Moun River

  • @ruichaves5426
    @ruichaves5426 ปีที่แล้ว

    I noticed that you removed the XTAL from the board. Where can I configure to use the external XTAL? As a suggestion it should be mention in your demonstration. Thanks

  • @laurentitolledo1838
    @laurentitolledo1838 4 หลายเดือนก่อน

    flashing CH32V002 via arduino is not possible in Linux, USB not found error, WHC-LinkE appears as ttyACM0
    flashing CH32V002 via arduino is only possible in w$, WCH-LinkE appears as COM(x)

  • @zzz-gr3kg
    @zzz-gr3kg ปีที่แล้ว

    In my case, after uploading the sketch, I had to disconnect LINK-E then connect it again, otherwise the LED wouldn't blink. The same goes for testing serial output. It would be better to reset uC like AVR.

  • @AdirutC
    @AdirutC 4 หลายเดือนก่อน

    Hi I would like to use CH32V003F4P6 board to connect with LCD 16x2 display to show text messages, can I use Arduino IDE to implement it?

  • @petermuller608
    @petermuller608 ปีที่แล้ว

    Great work! Especially your documentation on GitHub is excellent!
    I'm still waiting for my WCH Link E. What I'm wondering: is this a normal CMSIS-DAP probe or something custom?

    • @randallyoung6715
      @randallyoung6715 ปีที่แล้ว +1

      I think it's selectable DAP-Link for ARM, or Risc-V programmer in software.

    • @rvmaking
      @rvmaking  ปีที่แล้ว +1

      For V003, it's the 1-wire debug protocol. For V203, it's the 2-wire debug protocol.

  • @qsptecnologia
    @qsptecnologia 10 หลายเดือนก่อน

    Please where is the link to download this software? WCH Serial Port Debug? I can't find it. TKS

  • @carlospacheco7713
    @carlospacheco7713 ปีที่แล้ว

    Hey, what's up friends, a pleasure to greet you, they will include more plates such as the CH32V307 or the CH32V208

  • @nfcradio4622
    @nfcradio4622 10 วันที่ผ่านมา

    How to add NotePad++ Editor to Moun River with intelisence.

  • @carlospacheco7713
    @carlospacheco7713 ปีที่แล้ว

    It would be good if they add support for the CH57x and CH58x boards

  • @MaheshBabu-vs8nx
    @MaheshBabu-vs8nx 6 หลายเดือนก่อน

    Here I noticed that this simple led blinking program using nearly 65% of program memory space and more than 10% of RAM.. what's the reason? Is it bcos of Arduino?

  • @sasha.djordjevic3071
    @sasha.djordjevic3071 6 หลายเดือนก่อน

    First of all, thank you for your effort. Any suggestions about a problem: PD6 (RX pin) of the CH32V003F4P6 does not receive data over UART communication. PD5 (TX pin) works fine, sending data is not an issue. Tested with WCH LinkE + WCH-LinkE-R0-1v3 board and with ESP32 C3 too, CH32 was able to send but unsuccessful in receiving data.
    edit: Arduino Ide 2.3.2

  • @happyhippo4664
    @happyhippo4664 6 หลายเดือนก่อน

    I have a stupid curiosity. I just received a CH32V003F4P6-EVT. When I run the GPIO toggle, nothing happened. But if I hooked up an external LED to PC_3, it did blink as programmed. I noticed in your program, that the LEDs on the board blinked. How did that happen?

    • @happyhippo4664
      @happyhippo4664 6 หลายเดือนก่อน

      Never mind. I did some trace tracking on the board and realized that there are LED pins. I see you simply jumpered PC_3 to one of those pins. :) I thought they might be built-in LEDs, so I spent a lot of time looking through the documentation to see how to access them. I should have simply looked at the board more closely.

  • @misterm1502
    @misterm1502 ปีที่แล้ว

    Hey,
    Is there also the posibillity to use Visual Studio Code with the PlatformIO extension instead of Arduino IDE?

  • @Серго-в3в
    @Серго-в3в ปีที่แล้ว

    Arduino это хорошо, хотелось бы увидеть реализациию CAN.

  • @mlt-35
    @mlt-35 11 หลายเดือนก่อน

    Hello. Congratulations on the channel. Can you tell me if it is possible to use an internal reference for the ADC on the CH32V008?

    • @rvmaking
      @rvmaking  11 หลายเดือนก่อน

      You mean you wanna use the internal 1.2V for the reference of ADC?

    • @mlt-35
      @mlt-35 11 หลายเดือนก่อน

      ​@@rvmakingyes, because my VDD voltage cannot be stable all the time, it varies from 3v to 5v.

  • @walterhynson2898
    @walterhynson2898 11 หลายเดือนก่อน

    Arduino prefences is broken so I cannot load the arduino cores for this or any other board.

  • @incefikir9515
    @incefikir9515 11 หลายเดือนก่อน

    How can DHT11 be operated with CH32V003?

  • @phantu9113579
    @phantu9113579 ปีที่แล้ว

    one question, is it possible to upgrade from wch-link to wch-linkE by software(firmware) ?. can i use other swd adapter for this?

  • @PeterGriffiths-u9b
    @PeterGriffiths-u9b ปีที่แล้ว

    Where did you get the pin name array for the ch32vxxx ? thanks. PeterG

    • @rvmaking
      @rvmaking  ปีที่แล้ว

      You can find them in the code section

  • @ami6packs
    @ami6packs ปีที่แล้ว

    does the toolchain work on linux as well?

  • @おとじゅん
    @おとじゅん 10 หลายเดือนก่อน

    Next time, please tell me how to display Hello world! using I2C of CH32V003.

  • @abdoun8214
    @abdoun8214 ปีที่แล้ว

    why the CH32 board doesnt have an on board USB to UART converter?

    • @rvmaking
      @rvmaking  ปีที่แล้ว

      The WCH-LinkE has the USB-UART converter inside :)

  • @roostertechchan
    @roostertechchan ปีที่แล้ว

    We need wch arduino core to work on Mac OS :)

  • @zoenagy9458
    @zoenagy9458 ปีที่แล้ว

    why is CH32V003 on backorder? it won't be a common part if we cannot get it.

    • @rvmaking
      @rvmaking  ปีที่แล้ว

      which platform is out of stock? let me check.

    • @Oombu008
      @Oombu008 ปีที่แล้ว

      ​@@rvmakingLCSC

    • @thearchitecht2122
      @thearchitecht2122 6 หลายเดือนก่อน

      LCSC@@rvmaking

  • @randallyoung6715
    @randallyoung6715 ปีที่แล้ว

    Is there a schematic for the factory CH32V003 development board, D5 pin mapping is not working out for me?

    • @petermuller608
      @petermuller608 ปีที่แล้ว +1

      Yes, in the schpcb subdirectory

    • @randallyoung6715
      @randallyoung6715 ปีที่แล้ว +1

      @@petermuller608 Thank you! I did learn quite by accident that if you select D5 in your Arduino sketch, you have to run a jumper between PC3 and the LED pins on the dev board. I guess it's clearly labeled, but confusing for me none the less. Other wise the tools and hw run great, a lot of value for 7$ dev board, and sophisticated programmer/debugger. Batteries included totally.

    • @petermuller608
      @petermuller608 ปีที่แล้ว

      @@randallyoung6715 thanks for the heads up, I'm looking forward to mine :)

    • @rvmaking
      @rvmaking  ปีที่แล้ว

      please refer to this link, github.com/openwch/ch32v003/tree/main/EVT/PUB

  • @walterhynson2898
    @walterhynson2898 11 หลายเดือนก่อน

    the index is not working server responds 404

  • @alo1236546
    @alo1236546 ปีที่แล้ว

    @risc-v dear sir i cannot config d0 d2 ch32v003 pa1 pa2 as digitalinput

    • @rvmaking
      @rvmaking  ปีที่แล้ว

      Ah, I know the problem. If you used our CH32V003 dev board, you need to remove the XTAL and solder the R4 and R5

    • @alo1236546
      @alo1236546 ปีที่แล้ว +1

      @@rvmaking thank sir. Follow your steps and config internal HSI 48mhz

  • @ladjdudu77
    @ladjdudu77 10 หลายเดือนก่อน

    which pin for the led built board development CH32V303CBT6?

  • @fiftyplus644
    @fiftyplus644 3 หลายเดือนก่อน

    You say Arduino IDE but show what looks like VScode IDE. After adding the supplied URL to 'Additional Bd Manage URLs -- Then WCH to Board Manager brings up nothing. Poor poor poor ! I won't be using ANY of this.