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.

F2812-Internal Flash

Other Parts Discussed in Thread: TMS320F2812

Hi,

I used internal flash to build a program but i encounter this error.

Messages:
Can't Set Breakpoint at 0x3d87cd: Error 0x00000008/-2047 Error during: Break Point,  Unable to set hardware breakpoint at 0x003D87CD. All hardware breakpoints are already in use. Some hardware breakpoints may be used by analysis.   Sequence ID: 7 Error Code: -2047 Error Class: 0x00000008

StdoutT:
Invalid CIO command (142).  Can't read memory at address (0x8dc0), please check the memory map.

Location at 0x3d87cd is for main.obj (.text).

So, I try use the solution as suggested in this forum by enabling the two checkboxes titled Do Not Set End of Program Breakpoint At Load and Do Not Set CIO Breakpoint At Load.This solution successfully remove those errors BUT i could not obtain the results that i should get.

My program run in flash, then save the results in certain memory location eg. 0x00108000, but i could not obtain the correct results in the saved location.

Appreciate any helps. Thank you.

 

Regards,

Lin

  • Lin,

    From the description it is difficult to say what is going wrong.

    Are you trying to use C I/O (ex printf etc?)  If so you won't see printf activity without the C I/O breakpoints.  Usually I avoid using these functions in flash because of this limitation.

    Does the program work if it is run from RAM?

    The address 0x108000 is in XINTF zone 6 - does the hardware platform you are using have memory on the external interface at this location?

    Have you tried stepping through the code to try and see where the issue might be?

    Regards

    -Lori

  • Hi Lori,

    Im not trying to C I/O. After i download my program into on the chip flash, there is errors indicate "Can't Set Breakpoint at 0x3d87cd", so i try the solution suggested in this forum by enable the two checkboxes titled Do Not Set End of Program Breakpoint At Load and Do Not Set CIO Breakpoint At Load.

    My program cannot run in RAM because the .text section memory in RAM not enough (error: can't allocate .text, size 00003b3f (page 0) in RAMH0 (avail:00001ffe). Thus i change my program to run in on chip flash.

    My debug is type of Custom_MW.

    My hardware is just a eZdsp TMS320F2812 board. I do not have external hardware connection. But when i run other program and stored the the results in 108000 address. Correct answer obtained.So it is because i run in flash and the answer after the program executed it cannot send back to 108000?

    and one more issue is my .text file is very large approximately consists of  size 0x 3000-4000 addresss in flash. do this affect the execution in flash?

    Please assist me.

    Thank you.

    -Lin-