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.

Something abnormal of emulator using "5515EVM+stethoscope Front-End module "

5515EVM+stethoscope Front-End module , the enulator is Digital Spectrum 5515DSK, with CCS3.3.

I wanted to combine the STETHSystem.pjt and CSL_MMCSD_SdCardExample_Out.pjt together to add "read&write SD card" functions to the stethoscope project. So I added the CSL_MMCSD_SdCardExample_Out.pjt  to STETHSystem.pjt as a dependent project,  I changed some settings so it built successfully, but there are some warnings of the      -heap size of STETHSystem.pjt, so I changed the heap/ stack...  size and set them to SARAM(default is DARAM) because the space of DARAM is not enough. I built the project and emulated, the project can read and write data to SD card and communicate with UART, but it can't communicate with the Front-end board any more because I can't get the sound data from the front-end board. 

So I guess it may be the problem of the front-end board but it is not, I burn the original STETHSystem.pjt code(nothing changed,provided by TI, worked well yesterday)  to NOR( with standalone mode) , it works well. but when I emulate the original STETHSystem.pjt with CCS3.3, it still cannot get data from front-end board, but can read&write data to SD card and communicate with UART,that's weird, I don't know what's wrong. 

Can anybody give me some advice?

Thanks in advance,

Gao Jiao

  • Hi,

    It sounds weired but I believe that there is always something went not correctly when it's not working as expected.

    So your observation on this behavior, original STETHSystem.pjt is fine and also CSL_MMCSD_SdCardExample_Out.pjt is ok if it runs separately.

    However if it combined then front end part is not working. 

    Suggestion: When you combine two codes, have you gone through  configuration of peripherals setting registers correctly.

    Or any DMA conflicts between two projects.

     

    Regards,

    Hyun

  • Hi Hyun,

    Thank you very much for your reply. I think you are right, because front end part will not work as soon as I insert the SD card. It will be OK when I remove the SD card.

    But now I'm facing a problem with the emulator, it is weird too. I summarized the problem as follows:

    1.Standalone mode

         I burned the original STETHSystem.pjt codes to NOR and ran the program in standalone mode.

         Observations: 1) front end part is OK without the SD card

                                 2) front end part don't work if I insert the SD card

    2.Debug mode(emulation mode)

        I open the original STETHSystem.pjt with CCS3.3, load programs to the board, and run it

        Observations: 1) front end part don't work with SD card

                                 2) front end part don't work without SD card

                                 3) after trying 30 or 40 times, front end part will work 1 time, and don't work again

     

    So it is indeed very weird. I tried in debug mode with another PC, it is the same problem. I'm wondering if it is the problem of the board, because since the front end part didn't work with the combined project in debug mode, I didn't try the combined project any more. But it still didn't work with the original project in debug mode.

    The front end part didn't work since I changed "vector .sysmem  .data .cinit .cio and .switch" size&location when I emulated the combined project. But after that, I didn't use the combined project any more, so after that, I used the original project, and all projects were built with default options, and I'm sure of that.

    So it seems as if that one time emulation has effects on the later emulations, it has changed something inside the board, but I don't know how. Do you have any idea?

    Best Regards.

    Gao Jiao

    gaojiao18@gmail.com