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.

Code Area unlock or remove protection

I am uploading new code to the USB STK 5505 via the serial port.

And scatter loading it to the right DATA area. If I run the program through JTAG it works. But does not run from flash.

I think the code area is protected.  Is there a register or something to unlock it?

 

Any help is appreciated

 

  • C5505 can run from external memory. How did you program the code into the flash? Please verify it. One way to verify this is to read the data back from flash.

     

    Thanks,

    Peter Chung

     

  • I am not programing the flash.

     

    I am downloading the bin file to 0x8000 through the serial port.

    And then coping it to the code area just like the boot loader.

    But it does not get written. But if I modify the code area from JTAG it changes.

    I think I cannot modify the code area from my program. Is there a way to unprotect it so I can modify it

    Because the debugger can do it.

  • Hello microt, 

    Please take a look at the process of burning the NOR flash given in our FAQ #4 and #5 on C5000 Wiki page. If you follow this process you should be able to burn any program in the NOR flash successfully. 

    Regards,

    Mugdha

  • Somebody please read..what I am asking. I do not want to flash the code

     

    Thanks for your help. I

  • I have flashed this code using your "eZdsp_Programming_Tool" and it works good.

    But I have something like a boot loader in my code which will downlaod new code from serial port and load it to the relevant code space

     

    My issue is this new code cannot be written to the CODE space. it looks like to be write protected..

     

    My code works as neeed through JTAG only when I flash and run my code it is write protected

  • No code space is protected. Please provide detail information. Are you trying to fetch instrunction from the flash on the ezdsp?

    Note:

    1) If CPU is running from a memory block and trying to write new code to the same block , you can't.

    2) If you want to run from an external flash, you have to make sure the code you want to fetch from the flash are programmed in the flash. You can't just write it to the flash memory like sram. You have to follow the flash writing process.

     

    Thanks,

    Peter Chung

     

  • I do not know how to provide more info.

     I am not running from flash.

    As far as I know.. once the USBstick 5505 boots up.

    The code is runnig from RAM.

    I am trying to update this RAM code space, with my new code which I downloaded.

    Would you explain this

    >>1) If CPU is running from a memory block and trying to write new code to the same block , you can't.

     

    Are you talking about flash blocks