Hello. I am trying to integrate segger sysview on my board. I can't see the variable I need to see and I'm getting an error like this. While compiling, it sometimes deletes the codes I wrote. What is the reason? Could you help?
Hi there,
This seems like a Segger SystemView specific problem and while hopefully someone will jump on and be able to help you with this, you may have greater success posting your question on the Segger Forum (forum.segger.com) or looking through their resources.
-Josh
RenesasRulz Forum Moderator
https://renesasrulz.com/https://academy.renesas.com/https://en-support.renesas.com/knowledgeBase/
Hi,
What files are you modifying where you changes are being reverted?
There are some folders in the project that will be auto-generated and should not be edited by the user, these are in the ra_gen and ra-cfg folders. The files in the ra folder will not be overwritten unless the file is deleted in which case it will be regenerated when you build. All files in the src folder are unaffected by the build process.
-Gary
Thanks for your answer. As you said, I want to add new libraries to the FreeRTOS.h folder inside the ra_cfg folder.#include "SEGGER_SYSVIEW_FreeRTOS.h"
I removed it from where it was and added it to another folder. He didn't delete it this time. Created the same folder again. I want to make new additions to this .h file. How can I do that? Can you help me? How can I make the change here? I'm waiting for your help. Thank you so much.
In the properties for FreeRTOS you can add a user header file :-
that will be added to the generated file ra_cfg/aws/FreeRTOSConfig.h :-
Hello. Thanks for your quick response. The thing I got error for a long time was actually deleting the files from where I wrote them. Now I want to add some definitions to the same file and main.c file.
#define DWT_CTRL (*(volatile uint32_t*)0xE0001000)
It gives an error when I add these definitions. I thought about adding it to hal_entry.c but it should run before freeRTOS functions in main. Can you help with this?
All the Cortex peripheral registers are defined in the CMSIS header files already, e.g. for the CM33 core, for the DWT :-
and can already be used in hal_entry.c with no additional header files required :-
DWT->CTRL = ( 4<<DWT_CTRL_NUMCOMP_Pos);
The system is beautiful. Health to your hands. The other issue I'm stuck with is I can't add a function to the main.c file.
SEGGER_SYSVIEW_Conf(); SEGGER_SYSVIEW_Start();
I also want to add to the FreeRTOSConfig.h file. If there is a line equivalent to this addition, I would appreciate it if you would specify.
#define INCLUDE_pxTaskGetStackStart 1
Can you share a document about integrating the segger systimview interface with e2 Studio? We need to see the debug when using FreeRTOS. I need your help for this. Thanks a lot for your help.
Hi ylmaz-
main.c is an automatically generated file and at the top of the file it says to not edit it since any changes are overwritten when next generated.
You can edit files in your source directory without them being overwritten.
Hello. Then do I need to define the following functions inside each thread? Do you mind if I define it this way? What is your opinion?SEGGER_SYSVIEW_Conf();SEGGER_SYSVIEW_Start();
I also want to add it to FreeRTOSConfig.h. If there is a line equivalent to this addition, I would appreciate it if you could specify.#define INCLUDE_pxTaskGetStackStart 1
Someone else will need to help with your other questions- or you can just try adding the functions inside each thread to see what happens ;-)