This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Alexey,
If your operating system is Linux and if you use gdb as debugger, you can do a core dump by following the TI WIKI link:
If your OS is SYS/BIOS and use CCS, you can follow this link: http://processors.wiki.ti.com/index.php/SYS/BIOS_FAQs#5_Using_CCS_and_ROV_to_view_a_core_dump_file
Regards,
Shankari.
-------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
--------------------------------------------------------------------------------------------------------
Thank you
But, I do not understand why the script does not work.
Example:
mknod -m 660 /dev/mem c 1 2
chown root:mem /dev/mem
dd if=/dev/mem of=/tmp/memory.dump bs=1024 skip=1024 count=8
it's given in the man-file of Linux
Hi Alexey,
Alexey said:But, I do not understand why the script does not work.
Which script you are talking about?
Alexey said:Example:
mknod -m 660 /dev/mem c 1 2 chown root:mem /dev/mem dd if=/dev/mem of=/tmp/memory.dump bs=1024 skip=1024 count=8
What is this example? From where did you pick this from? Why did you give it here?
And most importantly, please make me understand, how these things are related to your first post on core dump?
Regards
Shankari
clarify some points:
- Do you know how to write data to the ARM system register from user space or kernel space of Linux?
- Do you know how to construct the file system of Linux?
- How to create the image disk using standard utitlites of Linux?
if you know it then you know what /dev/mem
this script example, you can find any linux distribution
Make console command:
$man mem
Hi Alexey,
yes/No to your questions will not solve your problem. I mean to ask those questions in a different perspective. Please read it again.
I have posted you few links which talks about generating a core dump files. By any chance, you happenned to read it and follow it? Did you give it a try? Whether it served your purpose?
And also, You will find many scripts scatterred across the TI web links. If your script/portion of the script posted in this thread is picked from any of the TI WIKI links/ ti.com web pages, there is a chance for us to have a look and revert back to you.
Different people follow different methods to generate core dumps at different environments. The one which I referred to you is one of the methods.
It is not possible for us to give a qualified answer that why your script doesnot work without knowing/ your environmental setup, experimental requirements e.t.c
May be you can try in Linux forums. If you would like to move this thread to Linux forum, I can do that as well.
Regards,
Shankari.
Thanks for the answer
I want to tell you why asked the question about dump memory
Сan I create programs for DSP core using CCS 5.4.0?
I want download DSP execute programm from ARM core linux.
Firstly, i create *.out file in the CCS 5.4.0
Secondly, i make image from *.out file(see spru186w.pdf)
hex6x.exe --boot --ti_txt --map=leddsp.map LedDSP.out -o LedDSP.txt
and *.map file
********************************************************************************
TMS320C6x Hex Converter v7.4.2
********************************************************************************
INPUT FILE NAME: <LedDSP.out>
OUTPUT FORMAT: TI-TXT
PHYSICAL MEMORY PARAMETERS
Default data width : 8
Default memory width : 8
Default output width : 8
BOOT LOADER PARAMETERS
Table Address: 0x0000, PAGE 0
Entry Point : 0x800000
OUTPUT TRANSLATION MAP
--------------------------------------------------------------------------------
00000000..ffffffff Page=0 Memory Width=8 ROM Width=8
--------------------------------------------------------------------------------
OUTPUT FILES: LedDSP.txt [b0..b7]
CONTENTS: 00000000..00000d73 BOOT TABLE
.text:_c_int00 : btad=00000000 dest=00800000 size=00000080
.text : btad=0000008c dest=00800080 size=00000c60
.cinit : btad=00000cf4 dest=008014e0 size=00000074
Thirdly, My linux kernel module wrote data to the address range for this sections from image file
Then I write 1 to the LRST bit in PSC0.MDCTL15 to release the DSP local reset and entry point address in HOST1CFG.
Did you make such action?
In my device this action should do my program. I need to exchange DSP execute programm through WEB interface. WEB server work in the ARM core under linux
And I want to see the memory dump for this sections
Are you understand my problem?
I found some errors in the documentation.I corrected them. A large number of people on this forum have problems because of these errors
But i have some problems.
So, I read HOST1CFG register default value 0x80000001, but In document spuh77a.pdf writen 0x700000.
Why?
I read other register is correct.