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.

Conection problem

Other Parts Discussed in Thread: CONTROLSUITE

I am using for a custom project the f28335. As I don`t know to much about memory map and most of configuration parameters, i started working with  one of the TI examples, actually it is HVACI_Sensorless_2833x.

Suddenly today i had this error message when i tried to run my code in the DSP:

Trouble Writing Memory Block at 0xc372 on Page 1 of Length 0x2:
Error 0x00000002/-1142
Error during: Memory,
Processor blocked debug accesses. An operation was attempted while
the CPU was in a non-debuggable context. To continue to honor the debug
context, press Cancel. To force debug access, press Rude Retry.

This is completly new for me, and It appeared without any previous code changes.

I am using CCS Version: 4.2.4.00033.

I have read a post for someone with similar problem but there was no solution given.

Any ideas?

Thanks

  • It sounds like you may have real time mode enabled in your Debug window.  Try turning this off and the error message should go away.  You will want to start the code before enabling this feature.

    Kris

  • Yes, I always run my code with the Enable Silicon Real-Time mode and the Enable Polite Real-Time Mode switch on, because I modified some global variables through the watch windows, is that incorrect?? I can try to do so now cause i don`t have the kit here.

    What is confusing is that until today I have always done in that way without any error message. Why now that is a problem?

    I couldn`t understand: "You will want to start the code before enabling this feature." For starting the code you mean to run it or to restart it?

    Thanks for your answer

  • This error could be related to something else, but the only time I remember seeing it is with RTM enabled.  I haven't used Polite Real Time Mode much though, so maybe that prevents the error.  I haven't investigated this too much, but I have a hunch that when a device reset is performed for whatever reason (debug reset, new code loaded, etc) with RTM enabled, you will sometimes get an error similar to the one you are seeing.

    The way I typically use it is I have it disabled before I load the code or perform a reset, use the green run button to start the code, and then enable real time mode while the code is still running.  Before I want to halt the processor or reset it, I try to remember to disable RTM first.  This has been the most stable way I have found to use it.

    If this doesn't fix it, let me know and we'll look for other causes.

    Kris

  • Hi Kris,

    I couldn`t get a better result with your advice. I still geting the error message:

    Trouble Writing Memory Block at 0xc354 on Page 1 of Length 0x1:
    Error 0x00000002/-1142
    Error during: Memory,
    Processor blocked debug accesses. An operation was attempted while
    the CPU was in a non-debuggable context. To continue to honor the debug
    context, press Cancel. To force debug access, press Rude Retry.

    The new thing that happened is that when I halt the program in the ccs editor this file opened:

    DSP2833x_CodeStartBranch.asm

    Is you have new ideas, they are certainly welcome as I don`t have a clue of what could be generating the error.

    Nico

  • Nico,

    Just to confirm, you load the code fine, but when you actually go to start it you receive this error?

    Can you go back and try to run a controlSUITE example that has not been modified to rule out hardware configuration/defect?

    Kris

  • Kris,

    yes I load the code fine, and the error massege appears when I change the value of the enableflag in the watch window. I tried with other kit and there is no problem.

    Nico

  • Hi Kris,

    Just to close the Post, I could solve the problem, How could I do it? I don`t really know, I just tried to do the same many times, I closed the CCS and debug several times, I tried in another computer and in another kit, suddenly it started working.

    It wasn´t a surprise because It is not the first time the CCS crashes randomly. Although I would like to know why that occurred.

    Just for the record, the way of using the realtime enable and the polite buttons is like this:

    1.  Click on the “Enable silicon real-time mode” button and “Enable polite real-time
    mode” button . This will allow the user to edit and view variables in real-time. Do not reset
    the CPU without disabling these realtime options!
    2. A message box may appear. If so, select YES to enable debug events. This will set bit 1
    (DGBM bit) of status register 1 (ST1) to a “0”. The DGBM is the debug enable mask bit.
    When the DGBM bit is set to “0”, memory and register values can be passed to the host
    processor for updating the debugger windows.

    Those steps must be done before running the code.

    Thanks anyway for your help.

    Nico

  • Kris I am having the same problem now!. But I have been trying to conect to the kit for a week, and can not achieve that.

    I tried with another kit and it can conect properly. Do you know if there is a sort of blocking of the emulator and how can I reset it. Or did you have any advance in solving this problem?