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.

Concerto blinky problem

Hi!

I am working with Concerto. I get  setup_m3 nicely flashed and running. When I try to loas blinky, I get following error message:

Trouble Writing Memory Block at 0x13e70e on Page 0 of Length 0x16:

(Error -1156 @ 0x4E26)

Device may be operating in low-power mode. Do you want to bring it out of this mode?

(Release 5.0.429.0)

If I accept this proposition, CCS collapses.

What is the problem?

br

Matti

  • Hi Matti,

    Are you sure you are writing the correctly applications to each core?  Make sure before you program each core, that the desired core is selected in the debug window.  Also try pausing the M3 application when you program the C28.  Setup_M3 only need to run once every reset to ensure that the C28 can control the GPIOs.  Also make sure CCS is completely up to date.

    Try these things and let me know if you are still having trouble.


    Trey

  • The guide actually is very ambigue:

    "Before loading any control example, execute the setup_m3 project on the Master Subsystem.
    We have provided scripts to automate setting up watch variables and associated gaphs called
    ’SetupDebugEnv.js’ in the ccs folder of a few examples. Once you have established a connection to
    the target device in debug mode go to View->Scripting Console. Within the console click the Open
    Command file icon in the far right corner of the console window and select the javascript file."

    Do I have to use the setupdebugenv.js? or not?

    Anyhow. I get the errors:

    Trouble Writing Memory Block at 0x13e70e on Page 0 of length 0x16:

    (Error -1156@0x4E26)

    Device may be in low-power mode. Do you want to bring it out of this mode?

    (Release 5.0.429.0)

    and it doesn't mater if I click yes.

    in the console I get:

    C28xx_0: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
    C28xx_0: Flash Programmer: Error initializing device.
    C28xx_0: Flash Programmer: Error erasing Flash memory.
    C28xx_0: Flash operation timed out waiting for the algorithm to complete. Operation cancelled.
    C28xx_0: Trouble Writing Memory Block at 0x13e70e on Page 0 of Length 0x16: (Error -1156 @ 0x4E26) Device may be operating in low-power mode. Do you want to bring it out of this mode? (Release 5.0.429.0)
    C28xx_0: Error: (Error -1135 @ 0x8000) The emulator reported an error. Confirm emulator configuration and connections, reset the emulator, and retry the operation. (Release 5.0.429.0)

    What i'm doing:

    I build the setup_m3 from V1.40 version folder and the blinky_c28.

    then I have the target configuration which i built in the chapter 1 of the users guide.I lounch it.

    I then connect to each core.

    after that I select the first thread which has cortex_M# in the name. I click target->load program, I load from browse projects the setup_m3

    then I click on the second core which has C28XX in its name and I try to load the bliky example and I get the error I posted above.

    it would be nice to update the user guide since a lot of thing that are posted there aren't similar anymore, and i had to search for them for a while.

    thanks.

  • Emanuel,

    Sorry to hear Concerto is frustrating you.  We've tried to make it as easy to use as possible, and we are always trying to improve upon that.

    To answer your first question, no you do not need to use setupdebugenv.js.  This is just a java script which will pre-populate the expressions window with a few choice variables.  Typically we do this to help highlight the variables a user might want to view or control using the debugger.

    Hrmmm...Are you using a controlCARD or custom hardware?  Its very odd that you can program the M3 but not the C28x.

    I apologize for the guides referencing CCSv4.  We are working on updating the guides to reflect CCSv5, but they are not done yet.

    Regards,
    Trey

  • Hi Trey,

    I am experiencing the same problem as this post. I was trying some experiments on the concerto control card using the TI Experimenter Docking station, with NO external hardware attached. Things were working really well until the c28 core stopped functioning. I can connect to the C28 core but cannot upload any code either to the RAM or FLASH.

    The Error Dialog box we get is " Can't Run Target CPU : (Error - 1156 @0x0). Device may be operating in low-power mode. Do you want to bring it out of this mode? (Emulation package 5.1.73.0)" The dialog box has Cancel, Yes, No Options, but none of them make the C28 core to function.
     

    M3 core is working perfectly fine, we can connect, upload programs, and see them working.

     
    We have Code Composer Studio V5.4. We tried to get support from the e2e forum, but still couldn't find a solution to get concerto to work again. I also posted a problem in the forum, but till now I could not get help to get concerto work. The post is below:
    http://e2e.ti.com/support/microcontrollers/c2000/f/171/p/284414/992587.aspx#992587
    We have already tried power cycling, updating CCS , trying debugging using different computers, but still the problem remains.
    Thanks in advance for any help if you can offer.
    Bin
     
  • Bin,

    You may have accidentally locked the code security module which would prevent you from loading code.  After connecting to the core, can you check to see if its locked?

    Regards,

  • Hi Trey,

    Thanks for your reply.

    1. I am not very sure that how could I check if C28 core is locked or not. After connecting, I tried to click Scripts->Code security module->Unlock_CSM(and Unlock ECSL), but nothing happened.

    2. I checked your post on the link below and tried to follow it step by step. And finally the message what I got was M3 core is unlocked. But there was nothing about C28 core. In fact, M3 core is working fine on my board. Could you please also advise me how to unlock the C28 core.

    http://e2e.ti.com/support/microcontrollers/c2000/f/171/t/126681.aspx

    Thanks a lot,

    Bin

  • Hi Trey,

    I guess this problem occured when I change the flash linker command file in C28. Below is the screen shot of the parts which I changed before and after.

    Before:

    After:

    Could you please help if this caused the lock of C28 and how can I unlock it?

    Thanks a lot!

    Bin