background image

 

Breakpoints 

 

F²MC-16FX Family, Emulating and Debugging with Softune and MB2198-01, Doc. No. 002-04828 Rev. *B 

33 

 

 

 

 

For Software breakpoint 1, this was at source code line no. 47, since after build there is valid instruction at that 
line; breakpoint is maintained at same Line number 47 

For Software breakpoint 2, this was at source code line no. 48, since after build there is no valid instruction at 
that line; breakpoint is maintained at same location H’F802CC 

For Hardware breakpoint 3, this was at source code line no. 49, since after build there is neither a valid 
instruction at that line nor an op-

code; although breakpoint is maintained at same memory location H’ F802B7, 

break point is not shown in source code window. 

For Hardware breakpoint 4, this was at source code line no. 56, since after build there is valid instruction at that 
line; breakpoint is maintained at same source code line no. 56 

Содержание MB2198-01

Страница 1: ...F MC 16FX Family Emulating and Debugging with Softune and MB2198 01 Doc No 002 04828 Rev B Cypress Semiconductor 198 Champion Court San Jose CA95134 1709 http www cypress com ...

Страница 2: ...ability arising out of any security breach such as unauthorized access to or use of a Cypress product In addition the products described in these materials may contain design defects or errors known as errata which may cause the product to deviate from published specifications To the extent permitted by applicable law Cypress reserves the right to make changes to this document without further noti...

Страница 3: ...ipulating 12 4 1 Monitoring and Manipulating Processor Status 12 4 2 Monitoring and Manipulating CPU Registers 12 4 3 Monitoring and Manipulating Assembly Variables 14 4 4 Monitoring and Manipulating C Variables 15 4 5 Monitoring and Manipulating Memory 15 4 6 Symbol view 17 4 7 Local variables 18 5 Breakpoints 19 5 1 Setting Break points 19 5 1 1 Setting code break point through editor window 19 ...

Страница 4: ...2 Vector 73 12 1 Display and setting vectors 73 12 1 1 Display 73 12 1 2 Setting an address 73 12 2 Jump 74 13 Debug Environment Setup Procedure 75 13 1 Step Execution 75 13 2 Watch 76 13 3 Radix 77 13 4 Emulation 77 13 5 Setting Breakpoint while Running 79 13 6 Monitoring 79 13 7 Directory 80 13 8 Tab 81 13 9 Error output 81 13 10 Load 82 13 11 Frequency 83 13 12 Break 83 14 Trigger Input and Emu...

Страница 5: ...rkbench V30L33R11 For in depth information please refer to the following manuals MB2198 01 Hardware Manual Emulator MB2198 01 Getting Started Application Note MCU AN 300217 MB2198 01 Installation Guide Application Note MCU AN 300209 This document describes the debugging methods of a MB96V300B system together with a Flash CAN 100P 340 target board Please note that the debugging principle is the sam...

Страница 6: ... with Softune Workbench At first choose an evaluation MCU here MB96F348HS copy the template project of the Softune samples into an own folder here Emulation_Test and start the Softune Workbench Software 2 2 Main c The following program based on the standard template project is used for demonstrating emulation and debugging Please change Main c to the following ...

Страница 7: ...ed although they are not used in this example then the Port00 of the MCU is set to output Port00 is the LED Port of the Flash CAN 100P 340 board Then the wait function is called with the value 5000 2 3 Compiling Main c To compile the project please use Setup Project first In Project Setup Project C Compiler Category Optimize has to be selected General purpose Optimization Level None Then compile t...

Страница 8: ...ne and MB2198 01 Doc No 002 04828 Rev B 8 Now building Configuration Template prj Debug Start asm Main c vectors c Mb96348hs asm Now linking Your path Emulation_Test ABS Template abs Now starting load module converter Your path Emulation_Test ABS Template mhx No Error ...

Страница 9: ...8 01 MCU AN 300209 and Emulator System MB2198 01 Getting started MCU AN 300217 for details 3 2 Entering Debugger Mode After successful compilation of the project start the debugging mode via COM1 2 USB or LAN by double clicking on the regarding Debug sup entry in the workspace window After successful connection to the emulator reset MCU open Main c close it first if it is open and then click on ri...

Страница 10: ...s Since Softune version V30L34R05 it is possible to set bookmarks in source code lines or debugging windows Bookmarked lines are marked with the line number in a green bubble in the debug window and completely in green in source code lines With the bookmark arrow buttons it can be stepped through the code stopping at bookmarked lines ...

Страница 11: ...target system with LEDs on Port00 you will see the LEDs flicker if FLASH CAN 100P 340 Target board is used 3 5 Stop Execution To stop the MCU click on or select Debug Abort Now the system is halted but it can be continued again by clicking on Run continuously or selecting Go 3 6 Reset MCU To reset the MCU clock on or select Debug Reset of MCU Note This works only if the application is stopped e g ...

Страница 12: ... flag 1 enable S Stack flag 0 User stack 1 System stack T Sticky bit flag 1 shift right instruction executed N Negative flag MSB 1 in last operation Z Zero flag Last operation resulted in 0 V Overflow flag Overflow at last operation C Carry flag Last operation caused carry The value of the flags can be easily changed by clicking into the white square A check mark indicates that the flag is set 1 4...

Страница 13: ... User Stack Pointer SSB System Stack Bank Register SSP System Stack Pointer PCB Program Bank Register PC Program Counter RW0 RW7 General Purpose Registers TBR Interrupt vector Table base register The contents of these registers can be changed by double clicking them A pop up window will occur and look like the following picture Under Register value option one can enter a new value for the register...

Страница 14: ...ame of the assembly program The Mode must be Assembler in this case The Watch window will then contain the variable name and value If we select other than this then watch window will show variables memory location and not the data contained at that location Note You can change the radix of the value by right clicking on the variable entry and choose via Radix Binary Octal Decimal or Hexadecimal To...

Страница 15: ...able name and value Note You can change the radix of the value by right clicking on the variable entry and choose via Radix Binary Octal Decimal or Hexadecimal To manipulate the value just double click on the entry and enter in the pop up window Edit variable a new value The radix can be chosen via D H B or O As explained in previous chapter to view memory content of Special Function Register one ...

Страница 16: ...so view can be set up to see data in bit byte word or long Right click on memory window click on setup On a Setup Display dialog box select bit byte word or long from drop down menu To change a memory content just double click on the respecting byte and Edit memory data dialog window pops up In this window one can specify the address default is the address of the clicked byte and the new value The...

Страница 17: ...d Watch and Memory window is updated at1000 ms and one can see the addresses H 2530 in Memory window and variable i in Watch window changing its values Alternately one can select the same functionality by right clicking on Watch Memory window and on popup menu clicking on Monitoring 4 6 Symbol view If one want to know where a variable is located in the memory than one can choose View Symbol Then u...

Страница 18: ...n Reference The following icons are used Icons Flag Names Function Variable Label 4 7 Local variables Local variables of functions can be displayed via View Local A new window will open Note that this window only shows contents if the debugger is in stop mode e g breakpoint reached and the actual function has local variables ...

Страница 19: ...o select some of the bits from break address For each bit set to one in address mask field corresponding bit from break address is compared for exact match with the corresponding bit hold by PC and for each bit set to zero corresponding bit from break address is ignored Detail explanation with example is given in coming chapters Data Break Point When Data break point is set program execution stops...

Страница 20: ...s shown in the circle For the software break point default the cross is blue while there is a red cross in the circle for the hardware break point If you now start the execution the CPU will halt on this break point The actual line gets a yellow background color Clicking to this circle again or right clicking into the circle and clicking on Break Point Set Reset releases the break point Alternatel...

Страница 21: ...1 Doc No 002 04828 Rev B 21 5 1 2 Setting code break point using Dialog box A code break point can also be set using Dialog box Open break point dialog box by clicking on Breakpoints on Debug menu On code tab select software or Hardware type breakpoint Type desired break address ...

Страница 22: ...e or Hardware breakpoint at required address If you now start the execution the CPU will halt on this break point The actual line gets a yellow background color When you select Hardware code breakpoint it is also possible to select Address Mask and Pass count These features can be used by clicking Details button on a break dialog box ...

Страница 23: ...sk For example if we set Code Breakpoint at address H F802C6 and address Mask H FFFFF0 and when program is executed it will stop at all the address where there is valid instruction from H F802C0 to H F802CF Similarly when we select Pass count program will halt executing at hardware code break point when program counter executes instruction at the address selected in the break address field as many...

Страница 24: ...lating and Debugging with Softune and MB2198 01 Doc No 002 04828 Rev B 24 Breakpoint can be released by selecting breakpoint from Break list and clicking on Delete button alternately it can also be disabled by clicking Disable button ...

Страница 25: ...Rev B 25 5 1 3 Data Break point As shown below Break dialog box is opened by clicking on breakpoints option on Debug pull down menu On Data tab clicking on Details button will open Data break point details dialog box Address Mask and Pass count feature work same as that of Hardware code break point ...

Страница 26: ...or data size When size is selected to byte address is of odd memory location data for comparison condition and the data mask should be specified in higher order byte bit address 8 to15 in the field of Data and Data Mask If memory address is at even location data for comparison condition and the data mask should be specified in lower order byte bit address 0 to 7 in the field of Data and Data Mask ...

Страница 27: ...hen there is a read or write access to location H 002539 When it is selected as Data agreement for all data access at break address the content read from or written to is equal to that specified in Data field program execution will halt For example if we set breakpoint as shown in above figure program execution will halt every time when data H 05 is read from or written to location H 002539 And if...

Страница 28: ...n to location H 002538 When Data mask is selected for each bit set in data mask field that bit from Datafield is compared for the exact match with the corresponding bit of Data which is to be read or written at the break address by the MCU i e Program will stop executing due to hardware break point whenever following condition is met Data read by MCU at Break Address Selected Data Mask Data Data M...

Страница 29: ...he small or medium memory model _near ROM constants cannot be set for a break point automatically when ROM mirror function is used The symbol reference is still located in 0xFFbank When breaking on a constant read access please change address in the breakconfiguration from 0xFFxxxxto 0x00xxxx 5 2 Position of Break point When break points are set to some location and after that code is modified and...

Страница 30: ...Breakpoints F MC 16FX Family Emulating and Debugging with Softune and MB2198 01 Doc No 002 04828 Rev B 30 ...

Страница 31: ... was at source code line no 47 since after build there is no valid instruction at that line breakpoint is maintained at same memory location H F802B7 For Hardware breakpoint 4 this was at source code line no 54 since after build there is valid instruction at that line breakpoint is maintained at same source code line no 54 In case of second rule it may happen that there is no op code but an operan...

Страница 32: ...Breakpoints F MC 16FX Family Emulating and Debugging with Softune and MB2198 01 Doc No 002 04828 Rev B 32 And now if code is modified and rebuild break points will change its position ...

Страница 33: ...e after build there is no valid instruction at that line breakpoint is maintained at same location H F802CC For Hardware breakpoint 3 this was at source code line no 49 since after build there is neither a valid instruction at that line nor an op code although breakpoint is maintained at same memory location H F802B7 break point is not shown in source code window For Hardware breakpoint 4 this was...

Страница 34: ...ructions executed so far While execution of a program the address data and status information can be sampled and stored in the trace buffer This function is called real time trace In depth analysis of a program execution history can be performed using the data recorded by real time trace 6 1 Trace Window Trace window can be opened by clicking Trace on View pull down menu ...

Страница 35: ...nclusive data value Note that the last executed frame has the number 0and all previous frames negative numbers The time stamp shows the execution time of the instruction including all internal cycles in nano seconds billionth seconds In this view the executed instructions are shown not fetched instructions Every time after program run to refresh a trace window right click on Trace Window on a popu...

Страница 36: ...ew Trace view can be changed among Instruction view raw data view or source view For Instruction view right click on Trace window on a popup menu click on Instruction Instruction view show instruction cycles using assembler mnemonics For raw data view right click on Trace window on a popup menu click on Raw Data ...

Страница 37: ... There are two way to refresh the trace view Using right mouse click menu in trace view and choosing Refresh Using trace refresh button of the menu bar Refreshing might be necessary if program execution is continued and then stopped again 6 4 Trace Jump To move cursor to particular frame in trace window right click on trace window click on Jump on Jump dialog box select frame under type option and...

Страница 38: ...lect Line number under Type option and source line number under Position option click OK in editor window one can view source code at selected line number To view assembly instruction at particular memory location right click on trace window click on Jump on Jump dialog box select Address under Type option and memory location under Position option and than select either Source or Assembly under wi...

Страница 39: ...ct memory under window option 6 5 Back Trace When selected Source view one can use Back trace functionality Right click on editor window click on Back trace Back trace dialog box will appear With this functionality one can traverse back and forth in source window in a same sequence in which source code is executed Source code at particular frame number will be highlighted by pink background while ...

Страница 40: ...urce code will be highlighted if we click next source code line number D 1530 will be highlighted which corresponds to frame number D 2 6 6 Search Trace To find particular memory location in trace window one can use find feature Right click on Trace window on a popup menu click on Find Search trace dialog box will appear The line having information about searched memory location is highlighted wit...

Страница 41: ...s mask is selected for each bit set in Address mask field that bit from Search addressfield is compared for the exact match with the corresponding bit of the memory location read by the debugger from trace data buffer I e The line having the frame number for which following condition is met will be highlighted in Trace window Memory location read by debugger Address Mask Search address Address Mas...

Страница 42: ... enabled or disabled by selecting Enable or Disable radio button under Status option Trace data is buffered in the trace buffer The trace buffer becomes full some time during debugging because its size is finite When the trace buffer becomes full the program being executed can be stopped Trace buffer full break is set by selecting Break radio button under Buffer full break option MB2198 01 Emulato...

Страница 43: ...ected and the trace buffer becomes full the program being executed is not stopped but the trace data buffering will stop And when No stop option is selected and the trace buffer becomes full since the trace buffer has a ring structure previous trace data is over written by new trace data 6 8 Setup Filtering To make effective use of the limited trace buffer capacity a trace filter function is incor...

Страница 44: ...ng with Softune and MB2198 01 Doc No 002 04828 Rev B 44 When selected code No acquire only data read write access will be acquired in trace data buffer Similarly when selected data No acquire only code fetch will be acquired in trace data buffer ...

Страница 45: ...lowing values to be specified for data regions Start address End address Access attributes read write Only data access specified in the range of Start Address and End address with the Attribute selected will be buffered in trace data buffer Loop Compress function can be used so that sampling of redundant frames occupying two or more trace framescan be reduced to sampling of one frame ...

Страница 46: ... trace data is captured for all code fetch and data access in between the two break points as set in the code shown below When it is selected No compress total number of frame captured is 8775 And when it is selected Compress total number of frame captured is 7975 As seen in below diagram several frames are replaced by one frame ...

Страница 47: ...s called a trace trigger Up to 8 trace triggers can be preset 4 for code attribute and 4 for data access attribute However actually the maximum number of trace triggers is determined by events available because the common hardware is used with other features like hardware break point sequence etc Trace trigger can be configured to start trace data buffering or to stop trace data buffering in trace...

Страница 48: ...op under Trace control option in Trace trigger details dialog box Trace trigger can be enabled disabled or deleted by selecting an event from the list and clicking on Enable Disable and Delete button respectively Similarly an event set previously can be modified by clicking on Change button Select an event from the List and click on Change button Trace trigger details dialog box will appear ...

Страница 49: ...s set further it is possible to configure whether trace data should be buffered or not before trace trigger is hit by selecting Acquire or No acquire under Trace state established before the trace trigger hit option A trigger event related to code can be set by selecting a Code under type option and clicking on Details button ...

Страница 50: ...d Consider following example it is set to acquire trace data before code trace trigger hit and Trace start is selected under trace control option because of that in trace window it is seen that trace data is acquired before trace trigger is hit and when there is a code fetch from location H F802D5 that event is marked by tag Trace ON and still further data is acquired Similarly instead of Trace st...

Страница 51: ...ing with Softune and MB2198 01 Doc No 002 04828 Rev B 51 And if we select No acquirethanno data before trace trigger will be acquired A trigger event related to Data can be set by selecting a Data under type option and clicking on Details button ...

Страница 52: ... read write access at preset data address trace event is triggered As per the selection in Trace Control option trace data buffering will be started or stopped 6 10 Saving Trace Data Since Softune version V30L34R05 it is possible to save the trace data beginning with a starting frame and ending with an end frame Please enter negative numbers due to negative trace frames The save dialog is availabl...

Страница 53: ...tial condition is met by event sequential control It is used to set more complex breakpoints Two kinds of conditions can be set Code The execution program counter register meets a defined address similar to usual breakpoints Data Defined data is written to or read from a defined address 7 1 Setup Sequence To use the sequence function click Sequenceon Debug pull down menu The sequence window will o...

Страница 54: ...et Hardware Code breakpoint as explained in Sec 5 1 2 Similarly event related to Data attribute can be set in a same way as we set Hardware Data Breakpoint as explained in Sec 5 1 3 After entering required events at respective level click on Setin the sequence window otherwise Softune will not accept the entries and they will get lost Setting must be performed in sequence starting with LEVEL1 When...

Страница 55: ...curs sequencer will reset to Level 1 and will wait till event defined at Level 1 occurs While in Level 2 if event defined at Level 3 occurs sequencer will jump to Level 3 or if event defined at Restart LV2 occurs sequencer will reset to Level 1 and will wait till event defined at Level 1 occurs At Level 3 it can be either configured to halt the program execution or to stop trace data buffering Yes...

Страница 56: ...d MB2198 01 Doc No 002 04828 Rev B 56 Let us consider the following example in the following code sequence break is set as described below At the beginning the sequencer starts in level 1 While execution when PC pass through address H F8032A the sequencer jumps to level 2 ...

Страница 57: ...rough address H F80335 the sequencer jumps to level 3 At level 3 when PC pass through address H F80341 it can be selected to stop program execution or stop further trace data buffering Since we have selected to stop program execution when the program execution halts in a status bar message displayed is Break at multiply Memory address by Sequential break and corresponding line is highlighted by ye...

Страница 58: ...ulating and Debugging with Softune and MB2198 01 Doc No 002 04828 Rev B 58 Same can be verified from trace window as shown below In the above example instead of selecting program execution halt if we select to stop trace data buffering ...

Страница 59: ...ce trace data buffering will stop Now let us consider following piece of code As it can be seen count variable is incremented by 1 every time when variable c is incremented It is incremented by 10 every time when variable b is incremented It is incremented by 100 every time when variable a is incremented Variable out_count is incremented every time when count variable counts 1000 ...

Страница 60: ...o Sequence break in a status bar following message is displayed Break at Memory address by Sequential break and corresponding line is highlighted by yellow background As seen in watch window program execution is halted when variable a b and c are equal to 2 Accordingly variable count is incremented 111 times since instruction count is not executed it is not showing the value 112 for variable count...

Страница 61: ...art Level 1 event in the above example such that it occurs after the event set at Level 1 and before the event set at Level 2 When the program execution starts it halts due to Sequence break in a status bar message displayed is Break at Memory address by Sequential break and corresponding line is highlighted by yellow background ...

Страница 62: ...ccur again i e write 0x0002 at memory location H 002530 This condition will occur after while loop is rolled over first time Same can be verified with the value of variable out_count which is equal to 2 and value of variable count which is equal to 1111 To understand it better let us have a look at trace window The instruction variable is handled as read modify write instruction by MCU Every time ...

Страница 63: ...In the above figure notice the event at Level 1 2 and 3 is occurred in sequence Value of count variable is 1111 Similarly when we set Restart Level 2 event such that it occurs after the event set at Level 2 and before the event set at Level 3 as shown below When the program execution starts it halts due to Sequence break in a status bar message displayed is Break at Memory address by Sequential br...

Страница 64: ...cer will restart and wait for event at Level 1 to occur again i e write 0x0002 at memory location H 002530 This condition will occur after while loop is rolled over first time Same can be verified with the value of variable out_count which is equal to 2 and value of variable count which is equal to 1111 The set Sequence break can be enabled or disabled by clicking Enable or Disable under Status op...

Страница 65: ...age area Undefined Area A memory area that does not belong to any of the areas described above is part of the user memory area This area is specifically called the undefined area Access attributes can be set for each area for example CODE READ etc can be set for ROM area and READ WRITE etc can be set for RAM area If the MCU attempts access in violation of these attributes the MCU operation is susp...

Страница 66: ... map setup dialog box Up to eight user memory areas can be set with no limit on the size of each area If we try to set more than 8 guarded area following error message will be displayed For example to set a guarded read access to memory sector DF enter H DF0000 in Start address field and H DF1FFF in End address field Select Read option under Guarded attribute field Click on Append ...

Страница 67: ...to H DF1FFF then the following message is displayedon the Status Bar and the program execution suspended For RAM ROM guarded access Read Write violation following error message is displayed Break at address by guarded access data For ROM guarded access Code violation following error message is displayed Break at address by guarded access code If we want delete the set guarded access to a memory ar...

Страница 68: ...od two breakpoints have to be set After the program has run from breakpoint 1 to 2 the Time Measurement will show the difference between the breakpoints Now take a look at example as shown below in a main function two breakpoints are set In a wait function PORT00 is set to high when entered in function and then set to low when left the function Time from Resetto 1st Breakpoint Time from 1st Breakp...

Страница 69: ...e main function 1st breakpoint This first stop initializes the time measurement counter Next run the program till the second breakpoint Now on Debug pull down menu click on Time Measurement one can find the following information If we connect oscilloscope probe at PORT00 we can observe the waveform as shown below As can be seen readings are closely matching with each other difference in time is be...

Страница 70: ...from the function name list immediately displays information for the function in the Source Window The function written in the lowermost line of the function name list is the main function This main function calls the function above it The called function further calls a function above it In this way the function written in the uppermost line is the function in which the current PC exists When ret...

Страница 71: ...n before using this feature The Function call dialog box is opened by right clicking on Call on Debug pull down menu When the function call dialog box opens specify the function you want to call with a correct argument If a breakpoint is set in the called function the program stops at this breakpoint When processing of the called function is terminated and control is returned the function call res...

Страница 72: ...on definition is int multiply char var1 char var2 specify the function call as follow multiply 5 6 Where a constant value is directly specified multiply a b Where variable a b is directly specified Since break point is set in the called function the program stops at this breakpoint When run again at the end of processing of called function control is returned the Result of call function dialog box...

Страница 73: ...andlers When an interrupt is generated the processor saves its execution state via a context switch and begins execution of the interrupt handler at the interrupt vector 12 1 Display and setting vectors 12 1 1 Display To display Interrupt vector table click on Vector at Debug pull down menu 12 1 2 Setting an address Change the address set in a vector in the following procedure 1 Select a vector ta...

Страница 74: ... at the address set in the vector table in the following procedure 1 Select a vector number 2 Click the Jump button If the starting address of the program set in the vector table is incorrect the source cannot be displayed disassemble display The jump function merely displays the jump destination program it does not update the program counter to move control to the address set in the vector table ...

Страница 75: ...tep Scale Automatic Automatically sets the step unit according to the window display state If it is a source code view step will pass through each source line no If it is a Mix mode code view step will pass through disassemble source line no Source Line Executes the step in units of source lines Instruct Executes the step in units of machine languages ...

Страница 76: ... interpretation as C language expressions Refer 4 4 4 3 Assembler Sets the assembler mode interpretation as assembler expressions Refer 4 4 4 3 Data Size Sets the display size in the assembler mode to either byte word long single or double Memory Buffering Enable In case of variables as arrays or structures memory of whole variables is read They are accessed by size of the top variable Disable In ...

Страница 77: ...array element than the number of array element that you limited when you register or expand an array with a watch variable Element One can specify number a default is D 256 of array element The default of this control is Enable 13 3 Radix Radix Sets the default base number for numerical value Display Source Line Switches source line display to source line non display or vice versa for Trace Instru...

Страница 78: ...is valid or invalid Set it to Disablewhen using the internal watchdog and using breakpoint MCU Mode Full Trace All trace information will be gathered but MCU performance is lowered Real Time Some trace information will be lost The lost information is marked in trace buffer window Suspension of clock by a pin MCU has clock stop detection feature same can be tested when suspension by clock field is ...

Страница 79: ... program halts due to break point This avoids getting interrupt E g from timer during program halt No Stop Peripherals clock is not stop when program halts due to break point This allows peripheral function such as UART or CAN during program halt 13 5 Setting Breakpoint while Running During program execution a break point can be set if the following set up is done 13 6 Monitoring ...

Страница 80: ...mory Window Watch Window Specifies whether to monitor the Watch Window Object Window Specifies whether to monitor the Object Window Control Sampling Specifies sampling time for Watch window Memory window and Object window 13 7 Directory Display path information Specifies the path information to be displayed Append path Sets the path to be added Directory Displays the currently set directory ...

Страница 81: ... Doc No 002 04828 Rev B 81 13 8 Tab Tab Specifies the Tab D 4 D 8 13 9 Error output In GUI Operation Specifies where to output an error at GUI operation In Command Operation Specifies where to output an error at command operation In Batch Operation Specifies where to output an error at batch operation ...

Страница 82: ...is specifies the batch file to execute after the loading of the target file This can also be changed using the debugger s setup wizard Debug Information Only This specifies whether or not to load debug information When checked only the debug information is loaded Consider a system where MCU application program is stored in external flash and MCU is to be started in external vector fetch mode For t...

Страница 83: ...ugging with Softune and MB2198 01 Doc No 002 04828 Rev B 83 13 11 Frequency CPU Frequency Set maximum CPU frequency Lower value results in higher responsiveness of emulation system 13 12 Break Default break point Selects default code break point i e Software or Hardware ...

Страница 84: ...an execution can be stopped The Trigger Input is a hardware break point A logical high 3 3V on this input stops the execution in the debugging mode Note that because of internal latches and different clock speeds of the emulator and the MCU the termination is not immediately The break slip is in a range of dozens to hundreds machine clock cycles The execution can be resumed after a triggered break...

Страница 85: ...04828 Rev B 85 14 3 Emulator Output The BNC Output EMUL goes logical high 3 3V if a program is executed and is low 0V if the program is stopped or a break point has occurred This signal can be used for controlling external hardware TRIG BNC 3 3V To internal emulator circuit 100K 50K TTL Output 5V Internal external ...

Страница 86: ...se find further information in the following documents DSU FR Emulator MB2198 01 Hardware Manual AN205555 F2MC 16FX Family Emulator System MB2198 01 AN205547 F2MC 16FX Family Emulator System MB2198 01 Installation Guide Information about Cypress Microcontrollers can be found on the following Internet page http www cypress com cypress microcontrollers ...

Страница 87: ...t Number 002 04828 Revision Issue Date Origin of Change Description of Change 09 10 2007 MKEA Initial Release 09 26 2007 Updated chapter sequencing 11 09 2007 Add note about data breakpoints for mirrored constants 01 17 2008 Updates due to Softune version V30L34R05 done A 12 24 2015 MKEA Migrated Spansion Document from MCU AN 300240 E V13 to Cypress format B 01 22 2018 NOFL Update logo and links U...

Отзывы: