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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/25/06 17:46
Read: times


 
#121037 - not really
Responding to: ???'s previous message
Using SDCC one can just call or embed the generated C in your version of
char _sdcc_external_startup (void)
This function is called right after setting up the stack and before any other initializations.
Other compilers (like IAR) have a similar C function. Is this one of those areas where Keil is more cumbersome than others? ?


Not really, I have no knowledge that calling a C function at the 'critical place' will be a problem; however. I am not very comfortable running C before the code is totally initialized. Maybe I'm just too 'scared' but "better safe than sorry".

So, for the SILabs (and other with pin/memory/... configuration) I insert the critical initializers at the very start in assembler. Things like UART initialize I do 'at the top of main' in C.

Erik

List of 13 messages in thread
TopicAuthorDate
C8051F340 newbie ques            01/01/70 00:00      
   described in excriciating deail in this totally ir            01/01/70 00:00      
   Just a chip?            01/01/70 00:00      
      dev kit            01/01/70 00:00      
         can you try..            01/01/70 00:00      
            config wizard            01/01/70 00:00      
               not recommened            01/01/70 00:00      
                  recommended / required ...            01/01/70 00:00      
                     that was not intended            01/01/70 00:00      
                        _sdcc_external_startup            01/01/70 00:00      
                           not really            01/01/70 00:00      
         and you do not need one            01/01/70 00:00      
            But...            01/01/70 00:00      

Back to Subject List