Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/05/07 07:55
Read: times


 
#146589 - You really need to study some basics first!
Responding to: ???'s previous message
Shehryar Shaukat said:
i will be executing code from the MMC...

To do that, the MMC will need to be memory-mapped into the 8051's CODE space - is it?

This won't work via any sort of serial or command-based interface.

...and will be executing the hex file record by record.

No, that will certainly not work!

An 8051 (or any other processor, for that matter) cannot execute an Intel Hex file.

An Intel Hex file is merely a way of representing and transmitting binary data in a text-only format - it is not an executable format!

You need to:
1. Read the Hex file from the MMC
2. Convert the Hex file back to the corresponding binary executable form
3a. Save the converted binary executable to your RAM mapped into XDATA space
3b. Re-map your RAM into CODE space
4. Start the new code.

(3a and 3b may not be separate steps, depending on your hardware)

This has been mentioned already:
http://www.8052.com/forum/read.phtml?id=146452

Although Erik's words may seem harsh, they do appear to be true:
http://www.8052.com/forum/read.phtml?id=146453


Well the questions which arise then are...

You need to sort out the fundamental issues above first!

1. does each record represent one instruction, or multiple instructions

Have you actually looked at the definition of the Intel Hex File Format yet?

The original is here: ftp://download.intel.com/support/processors/i960/devtools/intelhex.pdf
See also: http://www.keil.com/support/docs/1584.htm

will i have to follow the the addressing scheme followed by the original hex file

Yes, of course you will!
Think about it: IF you change the addresses where the code is loaded, how will all your jump instructions know the new location to jump to...?!

so when my hex file refers them will these functions be out of scope ?

A hex file has no concept of "scope"; neither do 8051 instructions - they will simply use whatever address you give them...


List of 119 messages in thread
TopicAuthorDate
USING EXTERNAL RAM AS CODE MEMORY            01/01/70 00:00      
   no need            01/01/70 00:00      
      MMC ...            01/01/70 00:00      
         Let him do what he wants!            01/01/70 00:00      
            did I say not to?            01/01/70 00:00      
            how to?            01/01/70 00:00      
               But how?            01/01/70 00:00      
                  well,            01/01/70 00:00      
                     end of wrong stick!            01/01/70 00:00      
                        already stated            01/01/70 00:00      
                           I see            01/01/70 00:00      
   How will you load the RAM?            01/01/70 00:00      
   I agree with some here            01/01/70 00:00      
      What's pretty handy is BBRAM            01/01/70 00:00      
         True, but            01/01/70 00:00      
      double-post ... sorry!            01/01/70 00:00      
      A little tidy-up            01/01/70 00:00      
         there is a way ... in fact, several ...            01/01/70 00:00      
            and appears to have lost interest            01/01/70 00:00      
               APOLOGIES AND CLARIFICATION            01/01/70 00:00      
                  answer            01/01/70 00:00      
                     Why 32K?            01/01/70 00:00      
                        Erik's Answer            01/01/70 00:00      
                     FURTHER HELP NEEDED.            01/01/70 00:00      
                        Yes, of course!            01/01/70 00:00      
                           the Basics implementation            01/01/70 00:00      
                              TC?            01/01/70 00:00      
                              Please explain            01/01/70 00:00      
                                 Binary executable format?            01/01/70 00:00      
                                    Still not got it!            01/01/70 00:00      
                                       order of intel hex file            01/01/70 00:00      
                                          records in Intel Hex file not necessarily in order            01/01/70 00:00      
                                             YES THE RECORDS ARE NOT IN SEQUENCE            01/01/70 00:00      
                                                Not strange at all            01/01/70 00:00      
                                 Good question...            01/01/70 00:00      
                                    Binary executable            01/01/70 00:00      
                                       I don't think you were            01/01/70 00:00      
                                          Elaboration requested.            01/01/70 00:00      
                                             GOT it, no elaboration required            01/01/70 00:00      
                                             That's it            01/01/70 00:00      
                        I'm sorry, but            01/01/70 00:00      
                        .            01/01/70 00:00      
                           here is a link to a free 8051 assembler.            01/01/70 00:00      
                           Pardon?            01/01/70 00:00      
                              I didnt mean it that way.            01/01/70 00:00      
                                 Still lost            01/01/70 00:00      
                                    I HAVE TO DEAL WITH HEX CODE            01/01/70 00:00      
                                       Additionaly            01/01/70 00:00      
                                          Duplicate post!            01/01/70 00:00      
                  Some comments            01/01/70 00:00      
         I'm using simple terms            01/01/70 00:00      
            @ Mike Stegaier            01/01/70 00:00      
            Not true            01/01/70 00:00      
               FLASH ROM and EEPROM            01/01/70 00:00      
                  Literal or idiomatic            01/01/70 00:00      
                     here's why            01/01/70 00:00      
                        .            01/01/70 00:00      
                           oh yes, it is            01/01/70 00:00      
                              ...            01/01/70 00:00      
   double post, please ignore            01/01/70 00:00      
   KISS            01/01/70 00:00      
   Similar project            01/01/70 00:00      
   Additionaly            01/01/70 00:00      
      You really need to study some basics first!            01/01/70 00:00      
         Apology            01/01/70 00:00      
      Make it simple...            01/01/70 00:00      
   Dynamic linking            01/01/70 00:00      
      Not on an 8051!            01/01/70 00:00      
         But i have to find a way            01/01/70 00:00      
            Bootloader            01/01/70 00:00      
            tri-processor?            01/01/70 00:00      
            You are where you are            01/01/70 00:00      
               Brand new product            01/01/70 00:00      
         There may be a way out after all ...            01/01/70 00:00      
            I don't think so?            01/01/70 00:00      
   Processor Not my choice            01/01/70 00:00      
   How to use external EEPROM AT24C16A with P89C51RD2            01/01/70 00:00      
   ANDY is right jerson but Thanks :)            01/01/70 00:00      
      Thinking laterally            01/01/70 00:00      
         good idea!            01/01/70 00:00      
            Some sort of P-Code Interpreter            01/01/70 00:00      
   Comments            01/01/70 00:00      
      Really Bad idea!            01/01/70 00:00      
         Misunderstanding            01/01/70 00:00      
            why, oh why?            01/01/70 00:00      
            No - that is still a really bad idea!            01/01/70 00:00      
               Is it Still a bad idea????????            01/01/70 00:00      
                  Use the Linker            01/01/70 00:00      
                     Got it Andy.            01/01/70 00:00      
      Summary needed            01/01/70 00:00      
         Required Summary            01/01/70 00:00      
            somethingt does not jive            01/01/70 00:00      
            something else does not jive            01/01/70 00:00      
               Yes i have 3 processors            01/01/70 00:00      
            Why only 32K            01/01/70 00:00      
               32k is fine but do suggest some IC's            01/01/70 00:00      
                  -2 for help?            01/01/70 00:00      
                     Still don't get it!            01/01/70 00:00      
                  don't be silly            01/01/70 00:00      
                     Thanks ERIC!!!!            01/01/70 00:00      
      comments            01/01/70 00:00      
         What a revelation, I bet most did not know that            01/01/70 00:00      
         ???            01/01/70 00:00      
            THANKS ANDY, you are a real CHUM            01/01/70 00:00      
            my explanation            01/01/70 00:00      
               who on earth, in his right mind ...            01/01/70 00:00      
               You need to think more carefully before you write            01/01/70 00:00      
         Data compression, point taken            01/01/70 00:00      
   CHECKSUM COMPLETED            01/01/70 00:00      
      Time for a new thread?            01/01/70 00:00      
   CONTROLLER SPEEDS/ MISMATCH CRYSTAL??????            01/01/70 00:00      
      Don't ignore the datasheet!            01/01/70 00:00      
         Through a pin/bit complementing program            01/01/70 00:00      
            who gives a hoot            01/01/70 00:00      
            Obviously will be less than the crystal frequency!            01/01/70 00:00      
               Only Complement instruction            01/01/70 00:00      
                  Complement Only?            01/01/70 00:00      
                     Can't be just a single instruction!            01/01/70 00:00      
                        GOT THE POINT.            01/01/70 00:00      

Back to Subject List