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

Поділитися
Вставка
  • Опубліковано 15 жов 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...

КОМЕНТАРІ • 59

  • @qsptecnologia
    @qsptecnologia 11 місяців тому

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

  • @zcbesaba
    @zcbesaba 11 місяців тому +3

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

  • @konstantinsc
    @konstantinsc 5 місяців тому +2

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

  • @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.

  • @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.

  • @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.

  • @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.

  • @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?

  • @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

  • @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?

  • @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

  • @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.

  • @misterm1502
    @misterm1502 Рік тому

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

  • @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.

  • @nfcradio4622
    @nfcradio4622 20 днів тому

    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

  • @sarkilo
    @sarkilo 11 місяців тому +3

    why blink takes 10kB?

    • @briansmith262
      @briansmith262 7 місяців тому

      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.

  • @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?

  • @Yogesh-gg7qu
    @Yogesh-gg7qu 6 днів тому

    How to configure ch32v003 timer interrupt for led toggle

  • @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)

  • @onecircuit-as
    @onecircuit-as Рік тому +1

    Great work! 👏👍😀

  • @carlospacheco7713
    @carlospacheco7713 Рік тому

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

  • @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

  • @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.

  • @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

  • @incefikir9515
    @incefikir9515 Рік тому

    How can DHT11 be operated with CH32V003?

  • @walterhynson2898
    @walterhynson2898 Рік тому

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

  • @nfcradio4622
    @nfcradio4622 20 днів тому

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

  • @ami6packs
    @ami6packs Рік тому

    does the toolchain work on linux as well?

  • @carlospacheco7713
    @carlospacheco7713 Рік тому

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

  • @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

  • @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 :)

  • @zoenagy9458
    @zoenagy9458 Рік тому

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

  • @Серго-в3в
    @Серго-в3в Рік тому

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

  • @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?

  • @walterhynson2898
    @walterhynson2898 Рік тому

    the index is not working server responds 404

  • @おとじゅん
    @おとじゅん 11 місяців тому

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

  • @roostertechchan
    @roostertechchan Рік тому

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

  • @fiftyplus644
    @fiftyplus644 4 місяці тому

    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.