Topic : Library file changes not seen by the compiler

Forum : ARM

Original Post
Post Information Post
June 15, 2009 - 2:16pm
Guest

Dear All.

I am working on a CAN BUS problem and read on the internet that the solution could be to add a line of code to function :

u8 CAN_Init(CAN_InitTypeDef* CAN_InitStruct)
...
/* Wait the acknowledge */
for(WaitAck = 0x400; WaitAck > 0x0; WaitAck--)
{
}

change this to:

/* Wait the acknowledge */
for(WaitAck = 0x400; WaitAck > 0x0; WaitAck--)
{
if ((CAN->MSR & MSR_INAK) != MSR_INAK) {
break;
}
}

I have tried to change this in the stm32f10x_can.c file.

However, when i apply the change it is not reflected when i compile: e.g. i could also write rubbish in the function but it is not seen by the compiler. I have tried to make clean and then make but this does not help.
What should i do for the compiler to re-read the library?

Best regards from a newbie in ARM.
Jacob

Replies
Post Information Post
+1
0
-1
June 16, 2009 - 3:45pm
Guest

Hi

The STM32 library is used as a pre-compiled library by our IDE.
So it is needed to recompile the .lib if you want the modification to be seen.
A project is provide in c:\porgram files\raisonance\ride\lib\arm\stm32...

The other solution is to set in the option do not use st library and to add source files from the library in the project.

Regards,
Matloub