2599 views|4 replies

14

Posts

0

Resources
The OP
 

[RVB2601 Creative Application Development] Bring up the development board and light up the LED [Copy link]

 

1. After unboxing last week, the development board was brought up this week. I encountered some problems and would like to share them with you.

2. Actually, before I received the board, I had already downloaded the CDK software and CH2601_SDK examples. As soon as I got the board, I ran through the helloworld example. At that time, I was wondering how it went so smoothly, because many people in the discussion group encountered various CDK bugs.

3. CDK I use Jianchi CDK integrated development environment V2.12.1. The CP210X serial port driver is already available on the computer, so the configuration of the development environment is very smooth.

https://occ.t-head.cn/community/download?id=575997419775328256
https://occ.t-head.cn/development/series/index?id=3864775351511420928&type=kind&softPlatformType=4&key=download#sticky

After CDK is installed, open ch2601_rgb_marquee_demo.cdkproj directly. At this time, the Package is an exclamation mark. You need to download and update it, otherwise it will fail to compile.

However, after downloading the update, the Rebuild Project reported an error. I remembered that there was no problem with helloworld before. I verified the helloworld example and found a similar error. However, the error was still very obvious. It seemed that the path did not support spaces. I copied the entire project to the desktop and recompiled it and it was OK.

4. However, after downloading the Flash, I found that only the blue and green colors of the RGB LED marquee were lit, and the red color was not.

static uint32_t g_ctr = 0;
static csi_gpio_pin_t r;
static csi_gpio_pin_t g;
static csi_gpio_pin_t b;
void led_pinmux_init()
{
    csi_pin_set_mux(PA7, PIN_FUNC_GPIO);
    csi_pin_set_mux(PA25, PIN_FUNC_GPIO);
    csi_pin_set_mux(PA4, PIN_FUNC_GPIO);
    csi_gpio_pin_init(&r, PA7);
    csi_gpio_pin_dir(&r, GPIO_DIRECTION_OUTPUT);
    csi_gpio_pin_init(&g, PA25);
    csi_gpio_pin_dir(&g, GPIO_DIRECTION_OUTPUT);
    csi_gpio_pin_init(&b, PA4);
    csi_gpio_pin_dir(&b, GPIO_DIRECTION_OUTPUT);
    g_ctr = 0;
}

void led_refresh()
{
    g_ctr++;
    if (g_ctr % 3 == 0)
    {

        csi_gpio_pin_write(&r, GPIO_PIN_HIGH);
        csi_gpio_pin_write(&g, GPIO_PIN_LOW);
        csi_gpio_pin_write(&b, GPIO_PIN_LOW);
    }
    else if (g_ctr % 2 == 0)
    {
        csi_gpio_pin_write(&r, GPIO_PIN_LOW);
        csi_gpio_pin_write(&g, GPIO_PIN_HIGH);
        csi_gpio_pin_write(&b, GPIO_PIN_LOW);
    }
    else
    {
        csi_gpio_pin_write(&r, GPIO_PIN_LOW);
        csi_gpio_pin_write(&g, GPIO_PIN_LOW);
        csi_gpio_pin_write(&b, GPIO_PIN_HIGH);
    }
}

The code should be ok, so I checked if the hardware PA7 was not connected properly. I found that the default jumper cap was plugged in incorrectly. It seems that the default jumper cap configuration is also a pit.

5. After plugging in the jumper cap at the blue mark of RED (originally plugged under the jumper cap of BLUE), the demo effect is normal, see the attached video.

ch2601_marquee_demo.mp4

630.2 KB, downloads: 3

Latest reply

There are still very few domestic RISC V chips. I still hope that there will be more and more domestic chips, the threshold will be lower, the use will be easier, and the performance will be stronger.  Details Published on 2022-4-18 11:51
 
 

6593

Posts

0

Resources
2
 

Yes, the path does not support spaces and cannot be compiled.

Others went well

 
 
 

5218

Posts

239

Resources
3
 

The video can be uploaded directly to a third-party platform, or eeworld electronic technology video: https://training.eeworld.com.cn/, and then inserted

Add and join groups EEWorld service account EEWorld subscription account Automotive development circle

Comments

I learned something, thank you!  Details Published on 2022-4-8 16:55
 
 
 

14

Posts

0

Resources
4
 
nmg Published on 2022-4-2 10:11 The video can be uploaded directly to a third-party platform, or eeworld electronic technology video: https://training.eeworld.com.cn/, and then inserted

I learned something, thank you!

 
 
 

7

Posts

0

Resources
5
 

There are still very few domestic RISC V chips. I still hope that there will be more and more domestic chips, the threshold will be lower, the use will be easier, and the performance will be stronger.

 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Analysis of China Mobile and China Unicom packages: choosing the wrong package will lead to wasted money

Source: Beijing Entertainment News     Although many people have mobile phones, the cost of mobile phone is still ve ...

Recommended wireless router products from four major brands

Source: Zhongguancun Online The most well-known brands in the wireless market are definitely TP-Link, D-Link , Netgear ...

PIC mid-range microcontroller series-10-bit AD converter

Previously, we talked about the AD converter of 8-bit microcontroller. This article will introduce the converter of 10-b ...

Sound detection system

# Sound Detection System##Sound Detection System###The sound detection system is used to capture sound and display the t ...

Review summary: Flathead RVB2601

Event details: Review | Free trial_Electronic Engineering World (eeworld.com.cn) Updated as of September 23 Evaluatio ...

【Development and application based on NUCLEO-F746ZG motor】13. Parameter configuration - USART3 configuration

The function of this serial port on the development board is to communicate with ST-LINK, and then connect ST_LINK2 to t ...

IoT architecture and technology protocols

This chapter introduces the technical architecture used to support Internet of Things (IoT) applications and discusses s ...

CN3085 as NiMH battery charger

Domestic chip, the circuit is very simple, used for charging NiMH batteries, made into 4 independent charging channels. ...

Analysis of AC Motors and Their Systems (Second Edition)

This book mainly studies related systems centered on AC motors, focusing on analysis methods and operating performance. ...

【Sipeed Tang Primer 25K】Review: 3. How about a worm lamp?

This post was last edited by xiyou2020eeeee on 2024-1-15 20:53 Brief introduction Tang Primer 25K has rich interface ...

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list