Tool/software:
Hi,
We have developed a board to control 2 bldc motors using FOC.
The FOC is running in 2 tasks in CLA. The FOC algorithm & state machine are described in a function in shared.h file. Everything works fine.
As I want to see some variables for debug, I have copied them from RAMLS to CLA_to_DMA_mem to be send next throw USB.
If I do the copy from a function in shared.h the total size of my code running in CLA is 0x2640.
If I do it directly in the tasks (so twice), the total size of my code running in CLA is 0x25b6.
Duplicating the code provide a smaller code than using a function (strange).
My question is, are the functions in shared.h by default inline?
My function is not declared inline.
Sincerely.
Jérôme