Tool/software:
Hello guys,
Please help me find out why and how to prevent the following:
struct Dispositivo_BVRC BillAcceptor_SCL_Create(unsigned char UPort,unsigned char index)
{
struct Dispositivo_BVRC Ans;
Ans.ID=25;//Device_CFG_BV_SCL.ID;
Ans.Port=UPort;
Ans.Type=BillAcceptor;
Ans.Estado=AccInstalado;
return(Ans);
}
when the program enters this function, the Variable "ans" that has a defined struct called from a header file. Overlaps the memory of a global variable declared in another .c file...
Hope this is enough for you guys, I dont want to get you lost with all the other code...
The compiler version is: TI 20.2.7 LTS