??? 04/25/05 02:50 Read: times |
#92285 - Assembly Language Responding to: ???'s previous message |
Thanxs a lot for all your suggestions and sorry that i couldn't reply your queries.
Mr.Raghunathan ""If you use FlashMagic for program download, suggest select option to Verify after Programming."" I am not using a "FLASH MAGIC". I have a parallel programmer "XELTEK SUPERPRO Z"at my office. ""Physically verify if the Flash has been programmed as it should be. Use the Display Flash memory option and check out."" I haven't tried the verification option. ""Using assembly, if you have reached 8k+ code, I guess that you have a large look up table. Maybe you are getting lost while retrieving data or using this table."" You are right. But i don't have a large lookup table. It is a large subroutine which i call. The problem was anything below 8kb in the subroutine works well, but anything above 8kb makes the system to hang up. ""Not sure if your assembler is sensitive to case of labels. If case sensitivity is not ON, suggest switch it ON if possible."" The assembler is sensitive to case of labels. It requires the code to be written in CAPS. So the entire code is in CAPS. ""Divide and rule. Start with the smallest segment of code and keep adding to it till the MCU crashes. Slow process but mostly a sure way to debug."" That's how i came to the conclusion that there is nothing wrong with the code but with the location at which it is placed. ""Take a short break. This is a definite way to change your perspective of analysing the issue."" The above tip surely worked for me as i thought a way of reducing the code. Mr.Michael Karas ""You did not tell us which device you are using......but make sure you actually have more than 8K bytes of FLASH for the program. "" The device i am using 89V51RD2BN. It has 64kb Flash memory and 1kb internal RAM. ""You did tell us what part you are using,....sorry."" It is ok. it happens nothing to feel sorry. Mr.Mehdi ""Another way is sending total of your program with or without comment!"" I didn't get you,Sir. Do you mean sending the entire program with or without comments? ""without for me ,with for anothers"" Everyone will have to understand the entire program without comments becoz i have written very very few comments good as no comments. I know it is a bad practice to write the code without comments.But I was so much possessed with making the code work that i forgot to write comments. Mr.Andy Niel ""So the question is: does 8KB refer to source size, or the size of the executable code in Flash?"" The 8kb is the size of the hex code not the entire program with comments. Mr. Sachin Shintre ""Are your erasing the second block (0x2000 to 0x3fff) of Flash before programming your 8K+ code?"" Yes i am erasing the entire 64kb FLASH memory. I have already cut down on the code. Initially, it was 8kb+ but now i have reduced in to 7.76kb (to be exact). There were many LJMP & LCALL instructions. I converted them into AJMP & ACALL wherever it was possible. But this is not the end of the story. The code is someday gonna reach 8Kb+. There is a lot more programming yet to be done. SUSHIL |
Topic | Author | Date |
Assembly Language | 01/01/70 00:00 | |
Some tips | 01/01/70 00:00 | |
Do you have Enough,,, | 01/01/70 00:00 | |
I stand Corrected,.... | 01/01/70 00:00 | |
Re:Assembly Language | 01/01/70 00:00 | |
Eh??? | 01/01/70 00:00 | |
Re | 01/01/70 00:00 | |
What size are we talking about? | 01/01/70 00:00 | |
we talking about a same size! | 01/01/70 00:00 | |
HUH | 01/01/70 00:00 | |
To Erik! | 01/01/70 00:00 | |
if you do't know | 01/01/70 00:00 | |
If i know that i don't know? | 01/01/70 00:00 | |
ERASE | 01/01/70 00:00 | |
Assembly Language | 01/01/70 00:00 | |
Comments - a lesson learned? | 01/01/70 00:00 | |
redeeming the situation | 01/01/70 00:00 | |
JMP and CALL | 01/01/70 00:00 | |
I know of none | 01/01/70 00:00 | |
Which Assembler | 01/01/70 00:00 | |
Case sensitivity... | 01/01/70 00:00 | |
irrelevant | 01/01/70 00:00 | |
Not at all. | 01/01/70 00:00 | |
I apologize | 01/01/70 00:00 | |
No problem. | 01/01/70 00:00 | |
Assembler limit? | 01/01/70 00:00 | |
Try Flash Magic | 01/01/70 00:00 | |
8k? | 01/01/70 00:00 | |
Assembly Language | 01/01/70 00:00 | |
no | 01/01/70 00:00 | |
One more attempt.. | 01/01/70 00:00 | |
To Sushil ! | 01/01/70 00:00 | |
updated? | 01/01/70 00:00 | |
'step by step' or 'divide and conquer' | 01/01/70 00:00 | |
Assembly Language![]() | 01/01/70 00:00 |