Hi does any body knows why this error is showed?
Description Resource Path Location Type
make: *** [Proyect.axf] Error 1
when I writte my code in main file this doesn't happen but if I do this using a custom files .c and .h the error is showed
Can you shed some more light into this, how can we replicate this problem?
Yes, I mean: I made some functions for my own proyect, when I write these functions on the main.c file, works fine but when I create a mag.c and mag.h (where I put my functions to make it better organized) this error is showed (of course I include the header file in the main.c file). I really would like to fix this but just to make it better.
About diferen problem:
Maybe I have to write a new post but is something just happened I could use the uart example before, receive and transmit data but now I only can trasmit when I send any byte with a serial monitor the callback doesn't reached but everything I send is received by the monitor. Could it be by some software error or could be by hardware error? When I was working and two wires get together and caused a high heating. Could it cause a damage? Even though the trasmit wire is still working.
Can you just attach your project here, or if you can't for confidentiality reasons then attach a smaller project showing the problem.
As for your other issue, please create a new topic and do it in the 32-bit MCU board if it's UART related.
Thanks @tmonte, I will do about UART. In case of this problem, I was doing some proofs and here they are. The first one is how it works, the second one is what happen if I put my functions in a diferent file.
Did you notice this at the end of the build log?
./main.o.data.Porcentaje_NORMAL+0x0): multiple definition of `Porcentaje_NORMAL'
You are defining that variable in a header file and you are including that header file in multiple source files so it's as if you are defining in multiple places. The solution is to move the definition into the magnetometer source and keep only the declaration in the header: uint16_t Porcentaje_NORMAL;
Then it will build.
Thank you so much @tmonte, this was the error.