09202024

Last update2016/05/28 14:38

12.いつ変数とSFR-viewがアップデートされますか?

12.いつ変数とSFR-viewがアップデートされますか?

The variables-view and the SFR-view is only updated the debugging session is suspended. However the SWV Data Trace-views let you trace variables and memory-areas during runtime. 

You can find all of these views by selecting Windows -> Show view -> Others… and then select the Debug-folder.

11.Memory View が0から始まるアドレス:0xA0000000、0x20000000などを表示できません

11.Memory View が0から始まるアドレス:0xA0000000、0x20000000などを表示できません

The problem is that Memory View is set to read some bytes before the address thatyou want information about. You can change that in “Table rendering preferences” for Memory View.

Loading mode is probably set to Automatic and “Number of lines to preload” to 20. The minimum number of rows to preload is 1 if Loading mode is set to Automatic.

Change Loading mode to Manual and the number of lines you want to display.

Another way to read the memory is to use the GDB-console. In the Debug perspective, mark the row with “arm-atollic-eabi-gdb# in the Debug view. Then open the Console view that normally is found at the bottom of the perspective.

This view now displays the console to GDB. In this window you can also write GDB commands. Normally it is easier to and best to control the debugger with buttons, menus and views but sometimes it can be better to be able to use a command directly.

To read 16 addresses hexadecimal from the memory, write this

x /16x 0x20000000

GDB will reply something like:

0x20000000: 0x0000ffff  0x40011c00  0x40011c00  0x40011c00

0x20000010: 0x40011c00  0x40013800  0x40004400  0x40010800

0x20000020: 0x40010800  0x40010800  0x40010800  0x08001ce0

0x20000030: 0x00180010  0x00000000  0x04030201  0x04030201

10.Debug-viewがコードにステップインするためにアクティベートされます

10.Debug-viewがコードにステップインするためにアクティベートされます

The default setting in TrueSTUDIO® is to activate the Debug view when a breakpoint is hit (stepping is like a breakpoint hit).

You can deactivate this by going to Window -> Preferences -> Run/Debug and uncheck Activate the debug view when a breakpoint is hit.

9. 変数や式のためにネイティブなフォーマットタイプを変えることは可能ですか?

9. 変数や式のためにネイティブなフォーマットタイプを変えることは可能ですか?

Select the "Windows"-tab and then select "Preferences".


You will then open up the preference dialog. Select "C/C++", then "Debug".

Under the "general settings" there are some option to set different formats.

8.どのようにデバッガーの内側からデバックを再起動できますか?

8.どのようにデバッガーの内側からデバックを再起動できますか?

To restart a stopped debug session, while still being located in the Debug perspective, do one of the following:

  • Right-click on the application (*.elf file) in the Debug view, and select "Relaunch" in the context menu
  • Make sure that an editor window (containing one of the files from the project you want to restart) has focus, and press the F11 key or select the "Run, Debug" menu command.

The debugger will now relaunch the debug session and allow for futher debugging of that application.