Hello, I have a problem with extracting data from *.m51 to build simulator. There are some library code in *.m51, placed in segments: LIB_CODE and LDIV. I guess it's length and address depends on which KEIL *.lib files are used. Do you have any idea what should I do when simulator comes to lib part? Is there a possibility to enter in library code and debug? I don't have a source of KEL lib files, and don't know their order in LIB_CODE segment.. Best regards, Branislava
"I have a problem with extracting data from *.m51 to build simulator." We know that, because you already have a thread running on the very same subject! http://www.keil.com/forum/docs/thread6554.asp So here's the very same answer: You mean you're building your own simulator? Wouldn't it be better to use the existing Keil simulator, and its AGSI to add your extensions?? Surely, you don't need the map/listing files anyhow - what you need is the Debug Information that's contained in the Object File? That's what the Keil simulator uses, I'm sure!
You mean you're building your own simulator? Wouldn't it be better to use the existing Keil simulator, and its AGSI to add your extensions?? what is even more ridiculous is that he is building a simulator, if he is making a FPGA '51 he should make an emulator Surely, you don't need the map/listing files anyhow - what you need is the Debug Information that's contained in the Object File? That's what the Keil simulator uses, I'm sure! I have no ides what the simulator uses, but all emulators I know of use just the object file. Erik
"I have no ides what the simulator uses, but all emulators I know of use just the object file" Absolutely. The Linker Listing is just a human-readable presentation of the information in the Object file. The Object file contains all the necessary information in machine-readable form - so use it! Don't mess about with Listing files! The OMF51 spec is here: http://www.keil.com/download/docs/80.asp
Yes,objest file is enough for simulator, but not for debugger. Debugger needs *.lst file. The problem is entering source code under libraries (LIB_CODE). (Sorry, that I didn't mentioned debugger) Brana
Debugger needs *.lst file. No, it doesn't. If you don't trust, feel free to try for yourself: kill all the *.lst files from a Keil project, then run it in the Keil integrated debugger --- works like a charm.
if you need to see it in an emulator, load the CEIBO ICE code and try it. (it runs as a simulator when no hardware is connected. Erik
yes, KEIL debugger is working without *.lst file :) .. but we have "special request" to use lst (and still don't know would we get source code for simulator...) Thank you all.. Brana
(and still don't know would we get source code for simulator...) I am sure there is some simulator where someone will sell you the source code. I can suggest a few. expecting someone that has invested time (= money) in coding a simulator to give it to for free you is silly. This "modern" idea "I want the best money can buy for free" does not make sense Erik
View all questions in Keil forum