Hi,
I am using LPC2368 microcontroller with Keil UV4 IDE and Ulink2 Jtag for development. I need to perform code coverage analysis for my program. I had seen Code Coverage option in the but when i debug the code this option is disabled.
I had gone through the forums and found out that code coverage is applicable only for Cortex series or during simulation.
I cannot use simulator as i cannot simulate the real time inputs. So i need to debug and find the code coverage.
So please do suggest me how i can perform the code coverage analysis. If not, are there any other integrated tools that are best suited for Keil IDE to perform the test.
Thanks in Advance.
Any reason why you can't simulate the inputs?
The LPC23xx has good simulation support, and you can write debugger scripts that simulates external hardware.
Hi Per Westermark,
Thanks for your response. My inputs are timing related and i need to give them instantly. Ex : SSP peripheral running at 750KHz and timer monitoring the flags present in the SSP routine.
Is there a way that i can simulate the external hardware inputs using debugger scripts?
Thanks in advance.
This is the simulation support for the LPC23xx chips: http://www.keil.com/dd/chip/4152.htm
This page is the simulation support for the dumber SPI: http://www.keil.com/dd/vtr/4152/7833.htm
This page shows the simulation support for SSP which supports a more advanced SPI implementation: http://www.keil.com/dd/vtr/4152/7851.htm
Alas, it's only data in/out that are supported by the virtual registers - and Keil forgot to specify the actual register names for the SSP simulation. But if you can't locate that information somewhere else, then Keil support should be able to correct that web page with complete information.
Note that the simulation scripts can perform actions based on number of clock ticks of the simulation which allows hardcoded stimuli patterns to be played.
Thank you,
I will look into this.