The clue is in the name: They are called “Warnings” because they Warn you about a potential [color=orange]problem in your code.
Of course not!
It’s not the Warning itself that crashes your target; it’s the underlying [color=orange]problem that causes the crash - that’s why the compiler is warning you!
If somebody warned you, “That car doesn’t look safe”, you would do well to consider whether or not the car is safe before getting into it, wouldn’t you?
If you just ignore them and go speeding off down the autobahn, and it turns out that the car really was unsafe, it’s not the fault of that person or their warning if you get hurt, is it?
Exactly the same applies to warnings that you may receive from a compiler!
Pointers are probably the most powerful feature of ‘C’ - unfortunately, this also means that they are also the most [color=red]dangerous when used carelessly or incorrectly!
The warning is about argument 4 of your call to ‘adl_tmrSubscribe’ - so take a look at it:
Now, go back to the ADL User Guide - what does it tell you about the 4th parameter of adl_tmrSubscribe?
Does your setGpioOutput function match what the ADL User Guide tells you…?
If i compile the code under RTE i get upper messages under “error” section.
If i compile the same code under Target i get those messages under “warning” section.
In both ways, how to correct this errors.
This is the example on one such function:
The Remote (RTE) and Target builds use different compilers:
The Remote build uses a native PC compiler (eg Microsoft);
The Target build uses an ARM Cross-Compiler (eg, GCC).
That explains why the messages are slightly different.
They are both telling you that the types don’t match - so make them match!
and if you do it, ‘C’ is likely to make default assumptions about its type & parameters - which may well not be as you require, so may well end up givig you errors/warnings about type errors and/or mismatches…