??? 08/17/06 15:03 Read: times |
#122448 - Problem using uVision 3 |
Hello:
I'm writing codes for a Quiz Game Controller. I used to write Assembler code in a less-famous IDE (with only a text editor and a compilier), without any idea of "modules". Difficulties arises when I try to write the whole 1xxx lines code onto the same page. For example, it's annoying to scroll and find the specific line. Therefore I switch to uV3. The target is a AT89S52. I had successfully have my code worked using the previous IDE. The HEX file was no larger than 2kB. However, I encountered problem in spliting the code into modules using the uV3. I'm new to uV. It show "L121: IMPROPER FIXUP". I did some search and thought it is the linker problem. Some AJMP and/or some DJNZ/JNB jump out of range. Therefore I use LJMP and LCALL instead. After making that modification it said "0 Error(s), 0 Warning(s)." so I load the HEX file generated to the MCU. But the code isn't working correctly. The MCU do some LED blinking effects after power up as expected. An IR remote control is used to send commands to it. But using the uV generated HEX file the LED just keep blinking and doesn't react to the remote control. Seems that the remote control ISR is never executed. I've tried uV2 with no luck. How to debug? The LED blinking effects code and the remote control ISR are in different modules, under the same project. By the way, how to know exactly where the code segments are placed in the ROM when using "module"? Thanks! Stanley |
Topic | Author | Date |
Problem using uVision 3 | 01/01/70 00:00 | |
did you switch to C? | 01/01/70 00:00 | |
assembler only | 01/01/70 00:00 | |
What if you use uv3 without 'splitting' | 01/01/70 00:00 | |
it works without "splitting" | 01/01/70 00:00 | |
then, it is simple | 01/01/70 00:00 | |
in the .M51 file... | 01/01/70 00:00 | |
the "GRADUAL change" | 01/01/70 00:00 | |
Eighty-Fifty-One | 01/01/70 00:00 | |
This or that? | 01/01/70 00:00 | |
ORG is origin within segment | 01/01/70 00:00 | |
I've done... | 01/01/70 00:00 | |
in Keil![]() | 01/01/70 00:00 |