1434 views|6 replies

274

Posts

8

Resources
The OP
 

[ST NUCLEO-WBA52CG] 4-Create a BLE project using STM32CUBEMX [Copy link]

To create a BLE project using STM32WBA52CG, you need to use the middle layer STM32_WPAN of STM32CUBEMX. WPAN is the abbreviation of Wireless Personal Area Network.

To enable this middle layer, you need to enable many peripherals first, namely:

  • Temperature sensor channel of ADC4: used for calibration of PHY
  • CRC: Verify BLE data transmission
  • RAMCFG: Used to dynamically modify RAM configuration
  • ICHACHE: Used to improve the efficiency of accessing instructions from memory
  • RNG: Generate random numbers
  • RF: Radio frequency output
  • RTC: used for automatic wake-up in low power mode.
    If you need to output DEBUG information, you also need to enable the serial port:
  • USART1
  • GPDMA1
  1. The sampling time of ADC4 can be set longer, for example, to 814.5 cycles, to improve the accuracy of ADC sampling.
  2. ICHACHE is set to "1-way (dircet mapped cache)"
  3. Activate RAMCFG for SRAM1

For other settings, please refer to the official sample settings.

After activating STM32_WPAN, you need to set up BLE.

1. Select the BLE mode, such as server, so that we can set the development board through the mobile phone

  1. The settings of broadcast parameters and broadcast content are set in "BLE Advertising"
  2. Set the number of services
  3. Set the service's characteristic values, permissions, and other information according to your requirements
  4. Some settings of BLE
  5. Generate project settings
    1. The stack should be set larger, the heap is set to 0x3000 and the stack size is 0x1000
    2. Set the initialization function. Some of them cannot be set to static because they will be called elsewhere.

At this point, you can generate the relevant project. You can see that there is still a lot of content that needs to be set, and the usability is relatively poor.

This post is from RF/Wirelessly

Latest reply

The original poster can give a detailed introduction here. Nowadays, dental monitoring is very easy to use in wearable devices.   Details Published on 2023-8-25 13:02
 

6788

Posts

2

Resources
2
 

I have always believed that the design of this type of wireless communication chip is quite special.

This post is from RF/Wirelessly

Comments

It's quite complicated to use  Details Published on 2023-8-24 17:40
 
 

274

Posts

8

Resources
3
 
wangerxian posted on 2023-8-24 16:44 I have always believed that the design of this kind of wireless communication chip is quite special.

It's quite complicated to use

This post is from RF/Wirelessly

Comments

There are also many main Bluetooth configurations.  Details Published on 2023-8-24 20:26
 
 
 

6788

Posts

2

Resources
4
 
manhuami2007 posted on 2023-8-24 17:40 It is quite complicated to use

There are also many main Bluetooth configurations.

This post is from RF/Wirelessly
 
 
 

6841

Posts

11

Resources
5
 
It is very convenient to build a project with stm32cubemax. I wonder if its monitoring protocol stack is easy to learn?
This post is from RF/Wirelessly

Comments

It is a bit complicated and involves many files. However, it is similar to other brands of Bluetooth protocol stacks, which are all event-driven and have some similarities.  Details Published on 2023-8-25 07:59
 
 
 

274

Posts

8

Resources
6
 
lugl4313820 posted on 2023-8-25 07:25 It is very convenient to build a project with stm32cubemax. I wonder if its monitoring protocol stack is easy to learn?

It's a bit complicated, and involves a lot of files. But it's similar to other brands of Bluetooth protocol stacks, all are event-driven, and have some similarities.


This post is from RF/Wirelessly

Comments

The original poster can give a detailed introduction here. Nowadays, dental monitoring is very easy to use in wearable devices.  Details Published on 2023-8-25 13:02
 
 
 

6841

Posts

11

Resources
7
 
manhuami2007 posted on 2023-8-25 07:59 It is a bit complicated and involves many files. However, it is similar to the Bluetooth protocol stack of other brands, both are event-driven, and there are similarities.

The original poster can give a detailed introduction here. Nowadays, dental monitoring is very easy to use in wearable devices.

This post is from RF/Wirelessly
 
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

Featured Posts
Download "DSP Integrated Development Environment CCS Development Guide"

Download "DSP Integrated Development Environment CCS Development Guide"

CERTIFICATION TEST OF MOTOROLA GSM BTS ICI

Exam Outline 1. Exam Purpose To certify the HORIZEN MACRO1800 and 900 base station installation and commissioning qualif ...

Understanding Electromagnetic Radiation

This post was last edited by btty038 on 2020-8-27 18:43 497385497386 497391

ST MEMS waterproof pressure sensor LPS27HHW review summary

Event details: https://bbs.eeworld.com.cn/thread-1149042-1-1.html Evaluation summary: @jianglihui @lxdiyi Hardware ...

Award-winning live broadcast: Third-generation TI C2000 new features resource update

524222 Click to register>>> Live broadcast time March 24, 10:00-11:30am Live Topic Third Generation TI C2000 New ...

15th Anniversary] EE DIY (Progress) -- Upper Computer UI Changes

This post was last edited by RCSN on 2021-7-12 18:00 For details of DIY projects, see this post The previous host com ...

How to delete products on Pingtouge's scenario-based Bluetooth Mesh cloud platform

The project created incorrectly on the Life IoT platform needs to be deleted. If a test device has been added, it will p ...

Power supply - What is the principle of BUCK feedback?

637151 As shown in the figure, unlike the conventional two feedback resistors to collect voltage, In the figure, the fee ...

If there is a capacitor between two diodes, will this circuit burn the capacitor?

The +7V on the left is a common power supply. The current is relatively small, but it is always on. The +5V on the right ...

Shanghai Hangxin ACM32G103 Development Board Study Notes 06 (ADC Sampling)

## ==8: ADC sampling== ### 8.1: ADC overview and feature overview: !(https://boreyun.oss-cn-shanghai.aliyuncs.com/image- ...

快速回复 返回顶部 Return list