Skip to main content
Visitor II
May 9, 2024
Solved

WARNING app_common.h

I recently create a project for a NUCLEO-WB15CC on STM32CubeMX where the output was the following:

Is there any solution for this warning?

This topic has been closed for replies.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
May 9, 2024

Hello,

In one of the files that defined that macro:

 

#ifndef PAUSE
#define PAUSE(t) ...

 

But need to check which PAUSE definition you need to adopt!

Seems that that warning is indicating PAUSE macro was defined differently in app_common.h and ble_common.h.

You need to check.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.

2 replies

Andrew Neil
Super User
May 9, 2024

It's better to post the code & the messages as text - not images;

use this button:

AndrewNeil_0-1715276383182.png

 


@marcos_ramos wrote:

Is there any solution for this warning?


Don't redefine it!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
mƎALLEm
mƎALLEmBest answer
ST Technical Moderator
May 9, 2024

Hello,

In one of the files that defined that macro:

 

#ifndef PAUSE
#define PAUSE(t) ...

 

But need to check which PAUSE definition you need to adopt!

Seems that that warning is indicating PAUSE macro was defined differently in app_common.h and ble_common.h.

You need to check.

To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.