Ive got a project on the MSP430F2619 - it's running well. We are in the testing phase of the project and I needed to create some custom firmware for one of the tests that will use the majority of the code already written. I didn't want to mess with the original source files, so I copied them all to a new directory and created a new project in CCS for the test firmware.
I don't get any errors, but in the Debug Pane instead of saying "Entry Point Reached" it says "Running. The green "Resume" button is grayed out. Terminate, Suspend and Reset buttons are all active, but seem to have no effect (Terminate will exit the debug session) - but the MSP430 is not running (at least not the code I just built and downloaded. None of my periphals are responding (UART, SPI, Blinking LED etc). I've placed breakpoints in the code and they never trip.
I'm sure it's something simple in the project configuration, but I haven't been able to find any differences in this new project, and the original, except the original runs and allows debugging and the new project does not.
Rkensparc said:I don't get any errors, but in the Debug Pane instead of saying "Entry Point Reached" it says "Running. The green "Resume" button is grayed out. Terminate, Suspend and Reset buttons are all active, but seem to have no effect (Terminate will exit the debug session) - but the MSP430 is not running (at least not the code I just built and downloaded.
"eabi (ELF)" causes the BSS segment to be zero-initialized, which depending upon the program may slow down the C startup code sufficiently so that the watchdog fires, such that the C main entry point is never reached.
I'll try that next time - I didn't this because last year I tried to do something with a new project(I don't remember for sure, but was thought it might have been the import) and CCS created a sub directory, in which it created another sub directory, in which another sub directory was created.... It did this until the windows allowable file name size was maxed out. I couldn't access or delete any of the sub directories using windows. I finally found an app someone had written that would delete the directory structure.
Like I stated, I don't remember if it was the import function, but I didn't want to risk running into the same problem, so I was hesitant to try the Import and have the same issue. I thought coping my original files to a new directory, and creating a new project would be easiest.
You should buy the development license because you are an honest person. In terms of functionality and ability there is no difference. The difference is that with the debug license you agree with NI that you will only use it for debugging (i.e. stepping into and out of code and troubleshooting systems). According to that agreement you aren't supposed to save and edit sequence files (with slight exception). I agree that it is kind of a gray area.
Does anybody know how to debug logic on M1 when running in Rosetta mode?
Whenever I attach the Debugger to Logic directly, it crashes with Exception: EXC_BREAKPOINT (code=EXC_I386_SGL, subcode=0x0) (without loading any plugin).
Yes I tried both, the problem with launching Logic with the debugger attached is that Logic does not even start in Rosetta.
Using /usr/bin/arch -x86_64 "/Applications/Logic Pro X.app/Contents/MacOS/Logic Pro X" to attach the debugger to Logic Rosetta does not work either.
Taking into account that this is the most popular cross-platform browser of all, you should be certain that such a Chromium-based development technology will allow you to inspect, debug, and guide you through the browser.
It is helpful to first create a sample Node.js application before reading about debugging. You can follow the Node.js walkthrough to install Node.js and create a simple "Hello World" JavaScript application (app.js). Once you have a simple application set up, this page will take you through VS Code debugging features.
However, for most debugging scenarios, creating a launch configuration file is beneficial because it allows you to configure and save debugging setup details. VS Code keeps debugging configuration information in a launch.json file located in a .vscode folder in your workspace (project root folder) or in your user settings or workspace settings.
Note: You can debug a simple application even if you don't have a folder open in VS Code, but it is not possible to manage launch configurations and set up advanced debugging. The VS Code Status Bar is purple if you do not have a folder open.
Do not assume that an attribute that is available for one debugger automatically works for other debuggers too. If you see red squiggles in your launch configuration, hover over them to learn what the problem is and try to fix them before launching a debug session.
In VS Code, there are two core debugging modes, Launch and Attach, which handle two different workflows and segments of developers. Depending on your workflow, it can be confusing to know what type of configuration is appropriate for your project.
If you come from a browser Developer Tools background, you might not be used to "launching from your tool," since your browser instance is already open. When you open DevTools, you are simply attaching DevTools to your open browser tab. On the other hand, if you come from a server or desktop background, it's quite normal to have your editor launch your process for you, and your editor automatically attaches its debugger to the newly launched process.
The best way to explain the difference between launch and attach is to think of a launch configuration as a recipe for how to start your app in debug mode before VS Code attaches to it, while an attach configuration is a recipe for how to connect VS Code's debugger to an app or process that's already running.
VS Code debuggers typically support launching a program in debug mode or attaching to an already running program in debug mode. Depending on the request (attach or launch), different attributes are required, and VS Code's launch.json validation and suggestions should help with that.
In order to start a debug session, first select the configuration named Launch Program using the Configuration dropdown in the Run and Debug view. Once you have your launch configuration set, start your debug session with F5.
In addition, the debug status appears in the Status Bar showing the active debug configuration. By selecting the debug status, a user can change the active launch configuration and start debugging without needing to open the Run and Debug view.
Tip: Use the setting debug.toolBarLocation to control the location of the debug toolbar. It can be the default floating, docked to the Run and Debug view, or hidden. A floating debug toolbar can be dragged horizontally and also down to the editor area.
The Reapply All Breakpoints command sets all breakpoints again to their original location. This is helpful if your debug environment is "lazy" and "misplaces" breakpoints in source code that has not yet been executed.
A Logpoint is a variant of a breakpoint that does not "break" into the debugger but instead logs a message to the debug console. Logpoints enable you to inject logging while debugging without modifying the source code. They are especially useful when you're debugging production servers that cannot be paused or stopped. Logpoints can also help you save time by not having to add or remove logging statements in your code.
Add a logpoint with the Add Logpoint command in the left editor gutter context menu, or by using the Debug: Add Logpoint... command. You can also configure the setting debug.gutterMiddleClickAction to toggle a logpoint when pressing the middle mouse button in the editor gutter.
Note: Logpoints are supported by VS Code's built-in Node.js debugger, but can be implemented by other debug extensions. The Python and Java extensions, for example, support Logpoints.
Variables can be inspected in the VARIABLES section of the Run and Debug view or by hovering over their source in the editor. Variable values and expression evaluation are relative to the selected stack frame in the CALL STACK section.
Variable values can be modified with the Set Value action from the variable's context menu. Additionally, you can use the Copy Value action to copy the variable's value, or Copy as Expression action to copy an expression to access the variable.
VS Code makes commonly used paths and other values available as variables and supports variable substitution inside strings in launch.json. This means that you do not have to use absolute paths in debug configurations. For example, $workspaceFolder gives the root path of a workspace folder, $file the file open in the active editor, and $env:Name the environment variable 'Name'.
Launch.json supports defining values (for example, arguments to be passed to the program) that depend on the operating system where the debugger is running. To do so, put a platform-specific literal into the launch.json file and specify the corresponding properties inside that literal.
Please note that the type property cannot be placed inside a platform-specific section, because type indirectly determines the platform in remote debugging scenarios, and that would result in a cyclic dependency.
You can add a condition and/or hit count when creating a source breakpoint (with the Add Conditional Breakpoint action) or when modifying an existing one (with the Edit Condition action). In both cases, an inline text box with a dropdown menu opens where you can enter expressions:
3a8082e126