actually i had a program working very well when i tested it with my system. but when i created a new hex file from different computer for the same program it did not work. both systems had UV kEIL4
so i copied the project file from 1st computer and pasted it in the 2nd computer and in that project i compiled again so the new hex file does work.. why is this happening ?
What is the problem in the compiler of the 2nd pc ? plz help
Hello Nilesh,
"hex file from other UV project does not work"
did you tested the code with internal simulator in 2nd system?And for loading the code which method you are using?
Debugger or ISP?
I am downloading the code in the chip with ISP See there is no other problem except the IDE and mostly in startup.s i have brought the UV project from the computer where the KEIL was perfectly installed i guess , but in the 2nd computer the keil does not work untill i use it through the project file i brought from other computer.
i tested the code in second system with the simulator, it works fine.
It's all sounding a bit obtuse.
The translation sounds like you cut and pasted some source files into a NEW project, this didn't work, but when you brought the WHOLE OLD project including project files, source, directory tree across it worked.
If that's what you're saying, then you need to look deeper into the project settings and options, and make sure those are all consistent. Look at things like the Target CPU/Speed, memory addresses, compiler/linker options/settings, debug/flash settings, etc. If you don't have the paths set up correctly it could be pulling include and library files from the wrong place.
If you think it's a Keil issue, then look explicitly at what VERSIONS are on each machine, as KEIL4 represents a whole slew of releases and is not sufficiently detailed to draw much of a conclusion.
thank you so much for your reply,
" The translation sounds like you cut and pasted some source files into a NEW project, this didn't work, but when you brought the WHOLE OLD project including project files, source, directory tree across it worked. "
exactly this is what i am saying sir, when i create a new project the code does not work. but when i copy a complete working project from other system with its folder which is including that project the code works fine on the controller kit.
now i will check everything as you have suggested above, hopefully it will work.
version of keil on all the systems is same.
hello
you were right. there was only one problem in the keil and that was - "options for Target1" --> "linnker" --> tick on - "Use memory layout from target dialog"
after this the code executes fine.
can you explain why so ?