central_and_peripheral routine issue

Platform: SF32LB52-DevKit-LCD development board
SDK version: Latest v2.4
Issue: I copied the central_and_peripheral example from the SDK into my own folder. Under the path \my_project\central_and_peripheral\project\hcpu, I ran scons --board=sf32lb52-lcd_n16r8, and the build succeeded normally. However, when I modified the content of main.c, the compilation output showed no changes. Even a full rebuild did not help. Only when I modified the main.c file in the SDK path (C:\OpenSiFli\sifli-sdk\example\ble\central_and_peripheral\src) did the changes take effect and compile correctly. It seems that the project is still including the main.c from the SDK directory. How can I fix this?

Modify line 17 of the SConscript file located in the central_and_peripheral\project\hcpu directory to read: objs.extend(SConscript(cwd + ‘../../src/SConscript’, variant_dir=‘peripheral’, duplicate=0))

Hello, has this issue been resolved subsequently? If so, how was it resolved? :grinning_face_with_smiling_eyes:

The main branch of this latest SDK has already fixed it.