TWR-K60F120 - GDB PEMicro program receives SIGTRAP, 0xfffffffe ?

cancel
Showing results for 
Search instead for 
Did you mean: 

TWR-K60F120 - GDB PEMicro program receives SIGTRAP, 0xfffffffe ?

885 Views
robertnguyen
Contributor II

KDS 3.0, MQX 4.2, GDB PE Micro Interface Debugging

 

Could not run gdb, does kds 3.0 support K60? Below are the error messages:

 

GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140731-cvs

Copyright (C) 2013 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=arm-none-eabi".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

monitor preserve0 0

monitor selectcore 0

Warning: the current language does not match this frame.

continue

Continuing.

Note: automatically using hardware breakpoints for read-only addresses.

 

 

Program received signal SIGTRAP, Trace/breakpoint trap.

0xfffffffe in ?? ()

 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

Connection from "127.0.0.1" via 127.0.0.1

Copyright 2012 P&E Microcomputer Systems,Inc.

Command Line :C:\Freescale\KDS_3.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_2.2.5.201511061812\win32\pegdbserver_console -device=Freescale_K6x_K60FN1M0M12 -startserver -singlesession -serverport=7224 -interface=USBMULTILINK -speed=5000 -port=USB1 

 

CMD>RE

 

Initializing.

Target has been RESET and is active.

CMD>CM C:\Freescale\KDS_3.0.0\eclipse\plugins\com.pemicro.debug.gdbjtag.pne_2.2.5.201511061812\win32\gdi\P&E\supportFiles_ARM\Freescale\K6x\freescale_k60fn1m0m12_1x32x256k_pflash.arp

 

Initializing.

Initialized.

 

;version 1.08, 06/02/2014, Copyright 2014 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [mk_1024k_n_pflash0_pflash1]

 

;device freescale, k60fn1m0m12, 1x32x256k, desc=pflash

 

;begin_cs device=$00000000, length=$00100000, ram=$20000000

 

Loading programming algorithm ...

Done.

CMD>EM

 

Erasing.

Module has been erased.

 

Initializing.

Initialized.

 

;version 1.08, 06/02/2014, Copyright 2014 P&E Microcomputer Systems, Inc. All rights reserved. www.pemicro.com [mk_1024k_n_pflash0_pflash1]

 

;device freescale, k60fn1m0m12, 1x32x256k, desc=pflash

 

;begin_cs device=$00000000, length=$00100000, ram=$20000000

 

Loading programming algorithm ...

Done.

CMD>PM

 

Programming.

Processing Object File Data ...

                               

.

Programmed.

CMD>VC

Verifying object file CRC-16 to device ranges ...

   block 00000400-0000040F ...

Ok.

 

   block 00000420-00002117 ...

Ok.

 

 

   Checksum Verification Successful. (Cumulative CRC-16=$154E)

 

CMD>RE

 

Initializing.

Target has been RESET and is active.

Labels (1)
0 Kudos
9 Replies

442 Views
russlyttle
Contributor I

Same problem, but with K22FN512M12. It doesn't happen on all projects in all workspaces, just some. For those where it occurs, it always happens.

0 Kudos

442 Views
russlyttle
Contributor I

Fixed it. In the debug configuration, under Debugger tab, Advanced Options check the Non-Volatile Memory Preservation option to prevent overwriting the bootloader. In my case I preserved From: 0 To: ffff

Not sure how the Debug script got corrupted, but it did.

0 Kudos

442 Views
robertnguyen
Contributor II

Did not work for me. See the message below:

GNU gdb (GNU Tools for ARM Embedded Processors) 7.6.0.20140731-cvs

Copyright (C) 2013 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=arm-none-eabi".

For bug reporting instructions, please see:

<http://www.gnu.org/software/gdb/bugs/>.

monitor preserve0 1 0 65535

monitor selectcore 0

Warning: the current language does not match this frame.

No source file named C:
Freescale
Freescale_MQX_4_2
mqx
examples
hello
hello.c.

continue

Continuing.

Note: automatically using hardware breakpoints for read-only addresses.

Program received signal SIGTRAP, Trace/breakpoint trap.

0xfffffffe in ?? ()

0 Kudos

442 Views
russlyttle
Contributor I

Did you reload the bootloader? Any time I see that message I have to use our Seeger Flasher to reload a bootloader image.

0 Kudos

442 Views
robertnguyen
Contributor II

I don't have the Seeger Flasher. But I have no problem with the board using Code Warrior. I saw quite a few folks can use KDS 3.0 with this board. I probably missed something in my KDS or MQX 4.2 set up.

0 Kudos

442 Views
russlyttle
Contributor I

Have you tried the particular board using Code Warrior after getting the error with KDS 3.0? If it still works, then the bootloader is OK. So many things can mess up the bootloader, I’ve just got in the habit of re-flashing it whenever I see an error like the one you have.

0 Kudos

442 Views
robertnguyen
Contributor II

I have no problem with Code Warrior. I posted my problem on P&E Micro site yesterday, hopefully they can tell me how to setup their gdb server correctly.

0 Kudos

442 Views
robertnguyen
Contributor II

I rebuild the whole development tool chain without using PE and this problem went away. I guess that my previous BSP project with PE was somehow messed up or corrupted.

0 Kudos

442 Views
evgenyerlihman
Contributor IV

Hey Robert,

You mean you stopped using PE debugger and currently using a different one?

Thanks,

Evgeny

0 Kudos