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.
hi, I have a simple question concerning the demo version of uVision 2. I wrote a simple test program in assembler which just switches an LED and it runs perfect with my target eprom. I define a offset, so that nothing can be linked into the memory from 0x0 - 0x8000
offset equ 0x8000 cseg at reset ds offset cseg at reset+offset jmp init_cpu ORG offset+0x100 program starts here...
The reset vector is fixed at 0x0000; it is defined by the CPU hardware - this is the 1st instruction your CPU will executa after a reset. Therefore your jmp init_cpu needs to be placed at 0x0000 - then you can locate the rest of your code wherever you like (within the restrictions of the demo version, of course!)
Therefore your jmp init_cpu needs to be placed at 0x0000 done. then you can locate the rest of your code wherever you like (within the restrictions of the demo version, of course!) What exactly are the restrictions of the demo version? The docs for the eval-version from keil say Programs start at offset 0x0800. Does that mean, that I have to set a jmp at 0x0 pointing at 0x800 and everything is fine (i.e. setting the OFFSET variable in my above example to 0x800)? I tried this and it did not work. The problem is, I'm not sure if my eprom simulator works, and before I buy another one I want to be sure. Christian
The problem is, I'm not sure if my eprom simulator works You may try it in the µVision2 simulator.