This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem in starting the project

I am using tiva c launch pad for my project.I have copied my startup file in my project and then wrote my code.When I start to debug my project the control remains in the start up file in reset handler section and never goes in my main program.
Please help.

Parents
  • So do you refer to it differently to purposefully make it more difficult for yourself?

    Why wouldn't you just bring in the right #include file in the CMSIS model so the SCB structure was suitably defined?

    What's SCB_CPACR_R defined as? A pointer? An absolute address of the register?

    Let's try a few standard C constructs :

     SCB->CPACR |= 0x00F00000; // CMSIS Structure
    
     SCB_CPACR_R |= 0x00F00000; // Directly?
    
     *SCB_CPACR_R |= 0x00F00000; // A Pointer?
    
     *((unit32_t *)SCB_CPACR_R) |= 0x00F00000; // An Address ?
    

Reply
  • So do you refer to it differently to purposefully make it more difficult for yourself?

    Why wouldn't you just bring in the right #include file in the CMSIS model so the SCB structure was suitably defined?

    What's SCB_CPACR_R defined as? A pointer? An absolute address of the register?

    Let's try a few standard C constructs :

     SCB->CPACR |= 0x00F00000; // CMSIS Structure
    
     SCB_CPACR_R |= 0x00F00000; // Directly?
    
     *SCB_CPACR_R |= 0x00F00000; // A Pointer?
    
     *((unit32_t *)SCB_CPACR_R) |= 0x00F00000; // An Address ?
    

Children