It's strange how different the TI assembler is from the IAR one, with which I'm a bit more familiar. The variables window allows you to view the variables near the current. You just have to define a 16 bit constant to be placed in the. Occasionally you will find too many variable within the current frame to easily view. The contents of the Overview tab are displayed. But this also gives a hint how to get the actual address where you want it. In the Business Objects tab, select the business object that you want to view. 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). See Section 1.9 for more information regarding the boot code. 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: StopWDT mov.w #WDTPW|WDTHOLD,&WDTCTL Stop watchdog timer RESET mov.w #_STACK_END,SP Initialize stackpointer 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 I have declared RESET to be global, and I have set the linker option to make RESET the entry point. I am using MinGW distributions for compiler options. 9 Writing Portable C Code for CCS and MSP430-GCC for MSP430. If I manually set it in the watch window to RESET, the program runs as expected. Can't see the contents of vector or other containers (e.g map) while debugging (C++ program) in Visual Studio Code Asked 3 years ago Modified 4 months ago Viewed 1k times 4 I have written a simple C++ (11) program to test the debugger in Visual studio code in Windows. I can see that PC is intially set to 0x0000. Once you open CCS you can select the configuration from the debug dropdown menu and CCS. However, when I run this program in the debugger, execution begins at address 0x0000 instead of at my designated entry point, called RESET (0x10000). It will build dot out file which is downloadable program file in CCSV6. 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. |