We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I'm newbie in Keil and mVision. I would like to know if it is possible to simulate a KL25Z in mVision because I need to run some tests but I forgot my board at office.
Thanks.
DanielRuiz said:I'm newbie in Keil and mVision
Do you have any experience with any other IDEs ?
Start here: http://www2.keil.com/mdk5/learn
As ChenTang said, the simulator only gives limited simulation of the internals of the chip - it certainly does not simulate a board.
Perhaps NXP have some specific tools which could help you ... ?
community.arm.com/.../158950
I have imported a MCUX example (from the SDK created from MCUX for Keil tools). This example is "hello world". When I configure debugger in "use simulator" and, then, debug my project, it stops (hangs) in the line "/* Wait for CLKST clock status bits to show clock source is ext ref clk */" at file fsl_clock.c.
How I need to configure my environment (no board, only simulation) for testing correctly a "hello world" example?
DanielRuiz said:it stops (hangs) in the line "/* Wait for CLKST clock status bits to show clock source is ext ref clk */"
So it's waiting for an external clock.
Clearly, that is never going to happen in the simulator!
DanielRuiz said:Wait for CLKST clock status bits to show clock source is ext ref clk
So don't do that, then!
But note that you are going to get similar problems on all external hardware interactions!
That's why it is generally much easier to use an actual board.
Surely, online suppliers are still available ?
eg,
https://uk.farnell.com/nxp/frdm-kl25z/arm-kinetis-kl25z-freedom-dev/dp/2191861
it's only twelve quid!
https://www.mouser.co.uk/ProductDetail/NXP-Semiconductors/FRDM-KL25Z?qs=wI1qWm3nqpC0oYrjHig4og==
https://www.digikey.com/product-detail/en/nxp-usa-inc/FRDM-KL25Z/FRDM-KL25Z-ND/3529594
etc, etc, ...