![]() ![]() It's strange how different the TI assembler is from the IAR one, with which I'm a bit more familiar. You just have to define a 16 bit constant to be placed in the. But this also gives a hint how to get the actual address where you want it. So maybe because you also named you label RESET the linker gets confused in some way? Maybe name your entry point differently like START or ENTRY. Or at least check in your resulting hex image what value gets written there.Īs the default placement. So another option would be to write to the address 0xFFFE the value of your start address. I can't really see why that wouldn't work, have you checked the actual linker call if that option is applied? So from your description, you are using -entry_point= global_symbol as an option to set the entry point. Upon completion of the bootĬode, the PC is loaded with the address contained at the SYSRSTIV reset location (0FFFEh). In this lab, the CDB file will be used to automatically create the reset vector and. Specifically, I am working with the interrupts under the. Config Tool, control a range of CCS capabilities. See Section 1.9 for more information regarding the boot code. I am using Embedded Coder 6.2 (R2012a) with Code Composer Studio (CCS) 3.3 and the F28335 board. Program counter (PC) is loaded with the boot code address and boot code execution begins at thatĪddress. I haven't programmed an MSP430 in assembly, but it seems like the program entry point is not written to the address 0xFFFE: Counts the elements in an array that return true when the matching. StopWDT mov.w #WDTPW|WDTHOLD,&WDTCTL Stop watchdog timer For Business Teams MuleSoft Composer Connect apps and data instantly MuleSoft RPA New. ![]() SOFTWARE USED: Code Composer Studio and Tera term. RESET mov.w #_STACK_END,SP Initialize stackpointer If you wish you can also view your hex code by using a notepad. retainrefs Additionally retain any sections ![]() I'm guessing I have a problem with either debugger settings or the (boot)loader, but I could be totally on the wrong track.cdecls C,LIST,"msp430.h" Include device header file code is executed based on an event in the Sensor Controller (see the Task. I have declared RESET to be global, and I have set the linker option to make RESET the entry point. LaunchPad, SimpleLink, Code Composer Studio, MSP432 are trademarks of Texas. If I manually set it in the watch window to RESET, the program runs as expected. I can see that PC is intially set to 0x0000. However, when I run this program in the debugger, execution begins at address 0x0000 instead of at my designated entry point, called RESET (0x10000). At the moment, I have a "hello world" program that does nothing but light an LED on the MSP430F5529 Launchpad. I am just starting with MSP430 and Code Composer Studio (CCS). ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |