Can't reach break pioint in main function in s32ds

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can't reach break pioint in main function in s32ds

904 Views
rahulramakrishn
Contributor III

Hi

I trying to run the ENET_RMII_UDP code in the S32DS. While running in the terminal I saw a note "Note: automatically using hardware breakpoints for read-only addresses". I run another program in the same environment and that work well without any problem.

I want to know the reason why the program does not reach the break point in the main function? The IDE shows that the program is running, but I didn't saw any packets sending from the board. It also take lot of time to stop the execution after I click the stop button.

Regards

Rahul Ramakrishnan

0 Kudos
2 Replies

702 Views
jiri_kral
NXP Employee
NXP Employee

Hi Rahul, 

I tested the example with DEVKIT-MPC5748G - and I can reach breakpoint on main() without any issue. Make sure that you are using debug launch-group or boot core for multi core MCU:

pastedImage_1.png

Here is output from my debug console for reference: 

GNU gdb (GDB build.sh rev=g738c595 s=F494 ELe200 -V release_g738c595_build_Fed_ELe200_ML3) 7.8.2
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=powerpc-eabivle".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
monitor preserve1 0
load C:\\Users\\nxf24838\\workspaceS32DS.Power.2017.R1/enet_rmii_udp/enet_rmii_udp_Z4_2/Debug/enet_rmii_udp_Z4_2.elf
Loading section .startup, size 0x246 lma 0x11d0000
Loading section .core_exceptions_table, size 0xf4 lma 0x11d1000
Loading section .intc_vector_table, size 0xbc8 lma 0x11d2000
Loading section .text, size 0x3c0 lma 0x11d2bd0
Loading section .ctors, size 0x8 lma 0x11d2f90
Loading section .dtors, size 0x8 lma 0x11d2f98
Loading section .eh_frame, size 0x8 lma 0x11d2fa0
Loading section .data, size 0x4 lma 0x11d2fa8
Loading section .got2, size 0x1c lma 0x11d2fac
Start address 0x11d0000, load size 4858
Transfer rate: 237 KB/sec, 441 bytes/write.
load C:\\Users\\nxf24838\\workspaceS32DS.Power.2017.R1/enet_rmii_udp/enet_rmii_udp_Z2_3/Debug/enet_rmii_udp_Z2_3.elf
Loading section .startup, size 0x1b6 lma 0x13a0000
Loading section .core_exceptions_table, size 0xf4 lma 0x13a1000
Loading section .intc_vector_table, size 0xbc8 lma 0x13a2000
Loading section .text, size 0x3b0 lma 0x13a2bd0
Loading section .ctors, size 0x8 lma 0x13a2f80
Loading section .dtors, size 0x8 lma 0x13a2f88
Loading section .eh_frame, size 0x8 lma 0x13a2f90
Loading section .data, size 0x4 lma 0x13a2f98
Loading section .got2, size 0x1c lma 0x13a2f9c
Start address 0x13a0000, load size 4698
Transfer rate: 131 KB/sec, 427 bytes/write.
load C:\\Users\\nxf24838\\workspaceS32DS.Power.2017.R1\\enet_rmii_udp\\enet_rmii_udp_Z4_1\\Debug\\enet_rmii_udp_Z4_1.elf
Loading section .rchw, size 0x4 lma 0xfa0000
Loading section .cpu2_reset_vector, size 0x4 lma 0xfa0004
Loading section .cpu0_reset_vector, size 0x4 lma 0xfa0010
Loading section .cpu1_reset_vector, size 0x4 lma 0xfa0014
Loading section .startup, size 0x26e lma 0x1000000
Loading section .core_exceptions_table, size 0xf4 lma 0x1001000
Loading section .intc_vector_table, size 0xbc8 lma 0x1002000
Loading section .text, size 0x1590 lma 0x1002bd0
Loading section .ctors, size 0x8 lma 0x1004160
Loading section .dtors, size 0x8 lma 0x1004168
Loading section .eh_frame, size 0x8 lma 0x1004170
Loading section .data, size 0x62 lma 0x1004178
Loading section .got2, size 0x1c lma 0x10041da
Loading section .sdata, size 0x4 lma 0x10041f6
Start address 0x1000000, load size 9572
Transfer rate: 146 KB/sec, 478 bytes/write.
monitor endmultiload
monitor selectcore 0
Warning: the current language does not match this frame.
continue
Continuing.
Note: automatically using hardware breakpoints for read-only addresses.

Temporary breakpoint 1, main () at ../src/enet_rmii_udp_Z4_1.c:47
47 {
set architecture powerpc:vle
The target architecture is assumed to be powerpc:vle
No breakpoint number 2.

Hope it helps. 

Jiri 

0 Kudos

702 Views
jiri_kral
NXP Employee
NXP Employee

Hi Rahul, 

what is your MCU/EVB?

Jiri

0 Kudos