Forum Replies Created
-
AuthorPosts
-
fergus.dixon@pacom.com
ParticipantGreat thanks for the info. The next question was going to be “What is the Hardware tracing for?”
So, to summarize, Software tracing is a cutdown tracing utility which can be useful if you are very smart, otherwise the Segger J-Trace Pro is the way to go but cost $4k or so.
fergus.dixon@pacom.com
ParticipantWith the trace, now that it is working, how do you view the last 1000 lines of code executed? I see that you can add tracepoint events but a trace is when you stop the code and view previous execution.
For example, I am pretty sure another service is coming in and interrupting the code which is why data is going missing. I am not sure how many services we have running but it would in the hundreds so impossible to find without a trace function.
fergus.dixon@pacom.com
ParticipantOK, thanks. It looks like an elf file is always generated by gcc.
I did try to load a smaller project and it seems to work. It asked a question about relocating records which I didn’t get on the main project. I will keep trying. Thanks for the info.
fergus.dixon@pacom.com
ParticipantAnother update. The issue is still there, and I really need to use the Trace function. I have turned off the bin output file and now the arm GCC compiler generates an elf file. However Visual GDB does not seem to be able to find the file even though it is present in the output folder:
stm32-h7.elf: No such file or directory.
-
This reply was modified 2 weeks, 4 days ago by
fergus.dixon@pacom.com.
fergus.dixon@pacom.com
ParticipantQuick update. I managed to fix the issue which was caused by the command buffer having an extra zero in the array and a length of 1. Resetting the buffer fixes the issue but there is still the question of how this random byte is getting set which is where a trace would be great. I will ask the team if anyone knows how to make an elf file from the arm compiler and come back here to report how it goes with an elf file. Thanks again for the help.
-
This reply was modified 4 weeks, 1 day ago by
fergus.dixon@pacom.com.
fergus.dixon@pacom.com
ParticipantThanks for the reply. Would hex files also work? There is no easy way I can see for gcc to make an elf file.
fergus.dixon@pacom.com
ParticipantWe are using a bin file not an elf file. It looks like the relocation is caused by the live tracing. I searched the code for relocate and can only find standard code.
Attachments:
You must be logged in to view attached files. -
This reply was modified 2 weeks, 4 days ago by
-
AuthorPosts