Content originally posted in LPCWare by 00zigor on Fri Sep 26 13:48:36 MST 2014
Hey LabRat,
Sorry for the delayed answer.
Finaly got my code working on both CMSIS and LPCOpen.
So, on question 1:
Quote:
Why is your timer flag not volatile?
It didn't need to be anything else at that moment, that flag was just so I wouldn't call another function in timer0 interruption, memory alocation was not a concern at the moment and a global variable as the fastest choice.
Question 2:
Quote:
Why are you using different setting for receive and transmit message?
I was just testing how to receive a message from another device using the exemples that i had, that part was not really necessary now that I think of it.
Question 3:
Quote:
Why are you using a timer match instead a simple Systick timer?
Because this way I can know whether my harware stoped working or not.
I have a LED at MAT0.0 pin blinking whitout software interference.
Question 4:
Quote:
Why do you init your messages every time before sending a new message?
I was just desperate... :bigsmile:
Anyway, turns out I had a major cold soldering at my board witch was causing bus error in many registers including ICR whitch made me think that i was receiving a message whitout the correct data, once i undertood that things really started to improve.
Now I'm moving on to the next stage with this project.
CMSIS is working fine and LPCOpen worked wonderfully.
Thank you so much.