This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to debug uvision in simulation

Hi,
I am using uvision 5 in windows 7 64 bit os. My device is FRDM KL46Z. In my device, i can debug any code. However, in simulation i can not debug. There is not any errors but in assembly line when i proceed with F11, i am trapping to some loop even when i did not reach the main yet. Is there someone who can use debugger with simulation?

Parents
  • A number of devices that aren't fully simulated will hang when the programs are simulated, but everything will work well on the real hardware - the simulator will run through CPU instructions that waits for the virtual hardware to toggle some bit - but the faked processor doesn't have any logic to toggle that bit.

    If you get a lockup while waiting for an oscillator/PLL to synchronize, you can comment away that piece of code to make the simulator able to reach main() - but you may still get stuck with other issues if the simulation can't produce UART, SPI, ... events for your main loop or ISR to process.

Reply
  • A number of devices that aren't fully simulated will hang when the programs are simulated, but everything will work well on the real hardware - the simulator will run through CPU instructions that waits for the virtual hardware to toggle some bit - but the faked processor doesn't have any logic to toggle that bit.

    If you get a lockup while waiting for an oscillator/PLL to synchronize, you can comment away that piece of code to make the simulator able to reach main() - but you may still get stuck with other issues if the simulation can't produce UART, SPI, ... events for your main loop or ISR to process.

Children