583 views|2 replies

118

Posts

1

Resources
The OP
 

【Microchip WBZ451 Curiosity】-3- Factory BLE Example Experience [Copy link]

This post was last edited by Murong Xuehua on 2023-8-16 12:28

The WBZ451 development board comes with a Bluetooth BLE example program. This article will experience this feature-rich example program.

The first thing I tried was the original program. After restarting the board, I could see the blue LED light flashing at 500ms intervals, indicating that it was broadcasting.

The development board acts as a "BLE external device" and can be discovered by sending broadcast packets. The mobile app: Microchip Bluetooth Data (MBD) acts as a central device and can actively initiate a connection.

This routine supports:

  1. After power on, the blue LED flashes at a frequency of 500ms, and at the same time sends a broadcast data packet, waiting for a connection
  2. Open the mobile app, select "BLE SENSOR", then select "PIC32CXBZ", then click SCAN to scan external devices. After the device list is displayed, select and connect
  3. The blue LED light in step 1 stops flashing
  4. The colored lights can be turned on or off by sliding the button
  5. Step 4: When the small light is on, you can change the color of the small light through the color palette!
  6. The temperature display area at the bottom samples the onboard temperature sensor data every 1 second.

Video Demonstration:

IMG_6472

Then try to compile and burn this routine yourself.

After plugging in the microUSB cable to connect to the computer, you can see that the IDE successfully recognizes the board and lists the relevant resources.

Edit the project properties, select "WBZ451" in the Device column, and select the WBZ451 Huggies development board in the Hardware tool column.

Compile routine:

View the compilation results:

Burning program:

The flashing failed:

We are still looking for the cause of the error.

2023-08-16 The download failure issue has been resolved. In Tools->Packs, search for BZ2. Currently, the two DFPs 1.0.107 and 1.1.218 have been installed.

The project uses v1.0.107, but I saw the description of 1.1.218: Solved the download problem in the new version of MPLABX IDE. The IDE version I am currently using is V6.10, and I may have encountered this problem.

Next, in Project Properties, select the new version of DFP and click Apply.

Recompile, then click RUN to burn the firmware to the board. Programming compeleted!

Next, find a BLE connection example and modify the device address in it. This device address is the 48-bit device address below the device name in the list displayed after clicking Scan on the mobile app.

After burning, open the mobile app

At this point, the development tool chain has been verified OK.

This post is from RF/Wirelessly
 

118

Posts

1

Resources
2
 

I saw the following parameters in the Microchip documentation. I haven't found where to set them yet.

CHECK_PGM_SPEED=You have set the program speed to %s. The circuit on your board may require you to slow the speed down. Please change the setting in the tool properties to low and try the operation again.
This post is from RF/Wirelessly
 
 

118

Posts

1

Resources
3
 

MPLAB X Error message: "You have selected the program speed to Normal"

https://microchip.my.site.com/s/article/MPLAB-X-Error-message---You-have-selected-the-program-speed-to-Normal

This post is from RF/Wirelessly
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list