3251 views|3 replies

110

Posts

1

Resources
The OP
 

[BearPi-HM Nano] Burning system and the first program [Copy link]

In the previous article, the system has been successfully compiled. To verify whether the result is correct, the compiled system needs to be burned into the development board for further verification. In order to ensure that the running effect of the system after burning is different from the program burned at the factory, the sample program needs to be modified.

Modify the application/BearPi/BearPi-HM_Nano/sample/B2_basic_button/button_example.c file as follows:

static void F1_Pressed(char *arg)

{

(void)arg;

GpioSetOutputVal(WIFI_IOT_IO_NAME_GPIO_2, 0 );

}

static void F2_Pressed(char *arg)

{

(void)arg;

GpioSetOutputVal(WIFI_IOT_IO_NAME_GPIO_2, 1 );

}

That is, when you press F1, the LED turns off, and when you press F2, the LED turns on. This is the opposite of the factory-installed sample program.

Recompile the system, copy the files in the out/BearPi-HM_Nano directory to the Windows system using a USB flash drive, and wait for burning.

Plug the Bear Pi board into the computer. You should see a serial port in the device manager:

Open hiburn, the main interface is as follows:

Click the menu "Setting" and select com settings:

Change the baud rate to 921600, and leave the rest unchanged.

Click the "Select file" button, open the file to be burned Hi3861_wifiiot_app_allinone .bin , and then check "Auto burn"

Click the "Connect" button on the main menu, and the board will enter the state of waiting for burning:

Press the "Reset" button on the board to start burning the program. After a while, the program burning is completed and the message "Execution Successful" is displayed:

After 1 or 2 seconds, it will enter the waiting state for burning again. At this time, press the "Disconnect" button on the main interface to exit the waiting state for burning.

Let's take a look at the program running effect after burning:

The program indeed runs as expected, indicating that the system is compiled and burned successfully.

This post is from ARM Technology

Latest reply

Thanks for sharing, looking forward to the follow-up!   Details Published on 2021-6-15 17:26

赞赏

1

查看全部赞赏

 

1942

Posts

2

Resources
2
 

Very smooth ~

This post is from ARM Technology

Comments

Yes, the programming went smoothly. I hope the subsequent evaluation will go smoothly.  Details Published on 2021-6-15 13:57
 
 
 

110

Posts

1

Resources
3
 

Yes, the programming went smoothly. I hope the subsequent evaluation will go smoothly.

This post is from ARM Technology
 
 
 

7462

Posts

2

Resources
4
 

Thanks for sharing, looking forward to the follow-up!

This post is from ARM Technology
 
Personal signature

默认摸鱼,再摸鱼。2022、9、28

 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

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