1697 views|1 replies

141

Posts

4

Resources
The OP
 

【Microchip WBZ451 Curiosity】3.WBZ451_Curiosity First Experience [Copy link]

  1. Preface
    The hardware and software materials have been prepared. Now we can start to experience the development. This time we will use the official peripheral demo code to run it.
  2. Preparation
    In addition to the hardware development board, you need to download csp_apps_pic32cxbz2_wbz45 in csp in mcc, which contains demo codes of various peripherals at the board level. In fact, this has been completed in the environment setup of the previous experience. If it is not done, or the component is not installed, you can install it again through MCC.

    It contains examples of various peripherals.
  3. Experience

Open MPLAB X and use File->Open Project.. to find the gpio_led_on_off_polling project in csp_apps_pic32cxbz2_wbz45 in the Harmony installation folder.

After opening, the upper left side of the interface is resource management, the lower left side is chip/device/board, storage usage, compilation tool chain, debugging tools, debugging tools, debugging information and other related content, and the right side is the code editing window and software output.

The program code is relatively simple, with a main function. After initialization, it loops and waits for the button to be pressed and released, and controls the on and off of RGB, etc. when the button is pressed and released.

Compile the code through Production->Compile or the shortcut key F11

After completion, the output status is "Compilation succeeded"

Click the green right arrow in the picture below to download and run

If you use it for the first time, you may see the following tooltips, just select the corresponding one (the one at the bottom)

If the erasing and burning is successful, there will be a prompt: Programming/Verify complete

When the button is not pressed, RGB is not off

When the button is pressed, the RGB lights up

Click the button below to enter the debugging state

At this point, you can use the following buttons on the toolbar to pause, run at full speed, but not run and other debugging operations.

You can also set breakpoints

3. Summary

It seems that the debugging function is quite comprehensive and convenient.

This post is from RF/Wirelessly

Latest reply

The programming idea is very clear. After the main function is initialized, it loops and waits for the button to be pressed and released, and controls the light and dark of RGB when the button is pressed and released. This is the essence.   Details Published on 2023-8-20 21:48
 

6570

Posts

0

Resources
2
 

The programming idea is very clear. After the main function is initialized, it loops and waits for the button to be pressed and released, and controls the light and dark of RGB when the button is pressed and released. This is the essence.

This post is from RF/Wirelessly
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list