Hi,
in MDK 3.40 Xtal is <undefined>.How can I solve this problem?
As mentioned already:
Hans Schneebauer said:Please remember that XTAL is a virtual register in the µVision simulator. It has no influence on your code and therefore your application
You need to define the clock-tree setup in your application. I suggest using STCube to do that. Please see our examples how to do that.