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

startup file

Hello,

Can you please tell me about STARTUP.a51 file:
When I create new KEIL project is it necessary to select device from the list of devices?
When I create new project, no matter if I choose to include STARTUP.a51 file in project or not, STARTUP.a51 will exist in *.m51 file, and also will appear in the begining of the FPGA simulation (8051 core is included in FPGA design), and also in *.hex file.
Can I avoid that?

Can you please help me about that, It's very urgent...

Best regards,
Branislava

  • Can I avoid that?
    Sure, but your program will suddenly start doing strange things. If you just take 5 minutes to look at the code, you will see what it does.

    Erik

  • If you chose not to add the startup.a51 file, a minimum startup will be added. This code will just clear data memory and set the hardware stack pointer to an initial value. If you have any routines with the 'using' keyword for register bank context switching, the hardware stack pointer is advanced by eight bytes per register bank.
    Is this a problem in your FPGA simulation?
    Bradford

  • If you don't explicitly include a startup.a51 file in your project the default startup code will be linked automatically. If you really want to suppress this create an empty startup.a51 file and include that in your project.

  • Thank you all..

    There is no problem in FPGA simulation. I just needed information about what exactly is happening in the begining (where startup file is) because of debugger which has to be made , will use KEIL generated files (.M51, .obj, .lst)

    Best regards,
    Branislava

  • I've found it useful for low-level simulations to strip down the existing STARTUP.A51 to get rid of the memory initialization loops and keep only the absolute minimum init code. The simulated memories can be cleared by the simulator itself. This saves a lot of computation at the start of the simulation before "getting to the good part".