2022-10-30 06:36 AM
Good day, I am trying to get a simple "counter" variable which just increments the counter by 1 every second, to display on my Chart in Cube Monitor, and have followed the instructions given in the STMicroelectronics youtube video - https://www.youtube.com/watch?v=pBbUH6xzUDU&ab_channel=STMicroelectronics . I confrimed that the correct .elf file has been chosen, but when I run the code, and start the acquisition, I am not seeing any values displayed on the chart. Can anyone give some advice on this please. I can add more details and screenshots if needed.
2022-10-31 07:44 AM
Hello.
Can you check if there is anything displayed on the chart? (May be always 0?)
Here is a list of points to check when there is no acquisition:
It should help to find why it is not displaying the data.
On embedded side, it is important to check that counter is not "optimized" by the compiler: if it is not used anywhere, it could be updated only in one register and not in memory. Declaring variable as "volatile" should force the compiler to always write it in memory.
Please, let us know if it solves the question, or give the result or previous tests.
Best regards
Stephane
2022-11-23 09:29 AM
Good day Stephane , I managed to sort it out thank you, something was wrong with the building blocks I used, I reverted back to the blocks given in the template and set up everything from there and managed to get it to work thank you.