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.

PCIexpress example project behaviour.

Hello all,

I have accomplished project example from
mcsdk_2_01_02_06\tools\boot_loader\examples\pcie\
and ask to answer following question:

Project "Hello world" succesfully works with the MDSEVM6678L/MDXEVMPCI boards
under Linux (Debian and Ubuntu)
after 1-st command "sudo insmod pciedemo.ko" only.
But then Linux hangs after the following sequence of commands:
"sudo rmmod pciedemo.ko",
"sudo insmod pciedemo.ko"
How to repeat the executing of the pciedemo program without reloading of the OS?


I used:
Code Composer Studio 5.2.1.00018
mcsdk_2_01_02_06


Best regards,

  • Hi Viktor,

    Please take a look at below link work-around. Then, you should be able to repeatedly remove the module, insert the module, remove, insert ... without power cycle the host PC.

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/237005/831358.aspx#831358

    Thanks,

  • Hi Ganapathi,

    thank you for your quick answer and excuse me for the late reply.

    After the building of HelloWorld and LocalReset projects
    I executed next sequence of the Linux commands:

    Commands                             Comments
    ---------------------------------------------------------------------------------
    lspci                                        Multimedia controller presents
    cd pcie_test                            Folder with the HelloWorld-project
    sudo insmod pcidemo.ko
    dmesg                                    OK
    sudo rmmod pcidemo.ko
    lspci                                        Multimedia controller presents
    cd ..
    cd pcie_local_reset                Folder with the LocalReset-project
    sudo insmod pcidemo.ko       =>returning to command prompt after about 10 sek
    sudo rmmod pcidemo.ko
    lspci                                        Multimedia controller presents
    cd ..
    cd pcie_test                            Folder with the HelloWorld-project again
    sudo insmod pcidemo.ko       => returning to command prompt within Debian Kwheezy 1.5,
                                                     but Terminal hung within Ubuntu 14.04.

    I used:
    settings in the pcidemo.c for HelloWorld-project
    ----------------------------------------------------------------
    #define BIG_ENDIAN 0

    #define HELLO_WORLD_DEMO 1
    #define POST_DEMO 0
    #define EDMA_INTC_DEMO 0
    #define LOCAL_RESET 0

    #define EVMC6678L 1
    #define EVMC6670L 0
    #define EVMC6657L 0


    settings in the pcidemo.c for LocalReset-project
    ---------------------------------------------------------------
    #define BIG_ENDIAN 0

    #define HELLO_WORLD_DEMO 0
    #define POST_DEMO 0
    #define EDMA_INTC_DEMO 0
    #define LOCAL_RESET 1

    #define EVMC6678L 1
    #define EVMC6670L 0
    #define EVMC6657L 0


    Please help me to understand:
    why the same sequence successfully works within Debian and hangs the system within Ubuntu ?
    (my target OS have to be Ubuntu)

    Best regards,

    Viktor.

  • Hi Viktor,

    I think this is a Linux system issue.

    Have you take a look at below thread reply?

    http://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/p/237005/834146.aspx#834146

    Thanks,

  • Hi Ganapathi,

    yes, *.log gives right settings and sequence, but Ubuntu still hangs.

    I think it is really the problem of concrete version of the OS.

    Many thanks.

    Best Regards,

    Victor