This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debug Connection Error in ARM development studio

Hi, I am using ULINKpro D and JTAG connection to program a Cortex M7 baremetal device. 
Although ULINKpro D seems to be installed correctly (device manager - USB) and the connection between ULINKpro D and my DU seems okay, I cannot connect the debugger and this page shows up;


Also I get an error in Console:

Unable to connect to device ARMCS-DP



I tried a couple of changes and I have this error as well:

Detected number of devices = 136, maximum allowed = 128. This problem is usually a result of the scanchain not acting correctly when using JTAG scans to count the number of devices.


Does anyone know how to solve it?
The only thing that has to be mentioned is that I am using 20 to 20 pin adaptor provided in the package of ULINKpro D.

Thanks & regards 

Parents
  • Hi again!
    When we used malloc of size 2**15 in C code, it does not allocate.

    uint16_t *out = (uint16_t *)malloc(samples_size * sizeof(uint16_t));
    if (!out) {
    fprintf(stderr, "Memory allocation for out failed.\n");
    exit(1);
    }
    unsigned int samples_size       = 1 << 15;

    Our DTCM 256kb and also ITCM is 256kb.

    CM7_DTCMCR
    x 0xE000EF94
    0xE000EF94: 0x00000049

    CM7_ITCMCR
    x 0xE000EF90
    0xE000EF90: 0x00000049

    It seems that I cannot use all 256kb that I have in DTCM.
    Can you give me insights through this?

Reply
  • Hi again!
    When we used malloc of size 2**15 in C code, it does not allocate.

    uint16_t *out = (uint16_t *)malloc(samples_size * sizeof(uint16_t));
    if (!out) {
    fprintf(stderr, "Memory allocation for out failed.\n");
    exit(1);
    }
    unsigned int samples_size       = 1 << 15;

    Our DTCM 256kb and also ITCM is 256kb.

    CM7_DTCMCR
    x 0xE000EF94
    0xE000EF94: 0x00000049

    CM7_ITCMCR
    x 0xE000EF90
    0xE000EF90: 0x00000049

    It seems that I cannot use all 256kb that I have in DTCM.
    Can you give me insights through this?

Children