Hi,
I want to debug DHCP client as it is assigning two IP addresses to my system alternatively. I realized there are debug events available which can be used to debug DHCP client but they are available in event recorder. I have spend lot of time in trying to make event recorder work, but I am unable to do. I have tried and followed all the steps from selecting DAP in compiler options, selected debug variant for middleware, placing event recorder in uninitialized RAM. I have initialized event recorder by calling EventRecorderInitialize() in main, using EVENT_TIMESTAMP_SOURCE as 0 (DWT Cycle Counter), EVENT_TIMESTAMP_FREQ = 10MHz. I verified frequency value from Project > Options > Debug > Settings > Trace.
Basically did everything that is given in this link: https://www.keil.com/pack/doc/compiler/EventRecorder/html/er_use.html
Still, when I put my system in debug mode and try to view event recorder, I don't see any events. I even tried to check event recorder with STM32WB55 NUCLEO board using Blinky example which comes with the pack. Even that doesn't works. Went through some of help available in forum but nothing helped me. I am using uVision 5.23 and Keil MDK compiler.
Can anyone please help me in understanding what am I missing. Or if there is anything else which can be helpful in debugging DHCP client events. Any help will be really appreciated.
Can anyone please provide any input. I read we need to take special care while defining Timestamp freq. Can someone explain with example or direct me to some link which explains this in detail?
A strong recommendation is upgrading to the latest Keil MDK release, which today is V5.36
http://www2.keil.com/mdk5
https://www.keil.com/update/relnotes/MDK536.htm
Also, see this Video Tutorial on setting up the Event Recorder:
https://www.youtube.com/watch?v=_z7hquSN31I
It is finally working with version 5.36. Most of the sites I have gone through didn't highlighted this. Even 5.23 was ok as per them. I can run the example project that comes with STM32WB55 Nucleo board. Thanks for the response.
Because of project dependencies, I cannot update my original project to uVision 5.36 and need to use 5.23 version. Is there any other way to debug middleware to understand communication between DHCP server and client in detail.