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-Unable to access the DAP

Hi,

I use our costum designed board with concerto and there was no problem until today. After I loaded a new software to m3 core, I can not connect to m3 core again. The fault is "Unable to access the DAP." I know the problem was related with my code and I have corrected my code. But now, I can not connect the m3 core any more.

Is it possible to connect m3 core again?

Thanks.

  • Hi Ahmet,

    One of the issue which could prevent connecting to DAP is "security passwords getting programmed". This could happen if your linker cmd file had issue and code got loaded at secure location.

    You could try booting the device in "wait-in-reset" mode (EMU0 =0 and EMU1 = 1) and that should help in connecting to M3. Once connected, please check the secure password location and see if it's been programmed with some value.

    Regards,

    Vivek Singh

  • Hi,

    I can connect m3 core while booting the device in "wait-in-reset" mode. When I check the secure password location, I see some values here.

    Now, I can't erase flash and I can't load program m3 core.

    Regards,

    Ahmet

  • Hi Ahmet,

    It's good that you are able to connect to device and able to see the value at secure password locations. Since secure password locations are programmed, you need to Ist unlock the device using correct password values and then erase all the sectors. To unlock the device, write correct password values in the CSMKEY registers. You can provide these values to CCS flash plug-in also. To do so, click on Tools -> On-Chip Flash. This will open plug-in GUI in which you can enter the password value for Zone1 as well Zone2 (if Zone2 secure password locations are also programmed) and then erase the flash.

    Below is snapshot for opening the plug-in GUI and fields in plug-in to enter the password values (this is showing only Zone1. When you scroll down in plug-in GUI you'll find the password fields for Zone2 as well).

    Hope this resolves the issue.

    Regards,

    Vivek Singh

      

  • Hi Vivek,

    Thank you for detailed information. I've entered the correct password and I've unlocked the zone1 and zone 2.

    I see "Operation completed succesfully." and "Performing security operation" knowledge in console.

    After that, I tried to erase flash but I couldn't do it. I take an error: Error executing flash operation.

    And I see these errors in console:

    Cortex_M3_0: Flash Programmer: Error erasing Sector J. Operation Cancelled.
    Cortex_M3_0: Flash Programmer: Error erasing flash. Please check if the device is locked.

    I checked if the device is locked or not. I unlock the device succesfully again and again, but  the console gives me the same errors every time.

    Regards,

    Ahmet Bakır

  • Ahmet,

    When you click on the 'Unlock' button, if the unlock was successful, you should get the following output in the console:

    Cortex_M3_0: Performing Security Operation...
    Cortex_M3_0: Device unlocked.
    Cortex_M3_0: Operation completed successfully.

    And if it failed, you should get the following error:

    Cortex_M3_0: Performing Security Operation...
    Cortex_M3_0: Device unlock failed. Device is still locked. Please check the provided password.

    Also, when you are erasing your device, please make sure your password is still in the password location, even if you press unlock beforehand. This is because there is an reset during the erase, which will lock the device again. It will try to unlock using the provided password before performing the erase. If the password is correct, you should be able to erase sector N, removing the password entirely.

    Hopefully this information is useful.

    Thanks,
    Ricky
  • Hi Ricky,

    Everything is OK except the erasing flash.

    I can unlock device and I can get the correct output in the console. There is no fault.

    Cortex_M3_0: Performing Security Operation...
    Cortex_M3_0: Device unlocked.
    Cortex_M3_0: Operation completed successfully.

    While erasing flash, I check if the correct password is still in the password location.

    Finally, I am trying to erase flash and I get the following output in the console:

    Cortex_M3_0: Erasing Flash memory...
    Cortex_M3_0: Flash Programmer: Error erasing Sector J. Operation Cancelled.
    Cortex_M3_0: Flash Programmer: Error erasing flash. Please check if the device is locked.

    What could be the reason of this error? Is it my fault or not?

    Regards,

    Ahmet Bakır

  • Hi Ahmet,

    You are using F28M35 of F28M36 device ?

    Can you send the snapshot of the memory view (in CCS) for following address range -

    F28M35 - "0x200000 to 0x200020" AND "0x27FFDC to 0x27FFF0"

    F28M36 - "0x200000 to 0x200020" AND "0x2FFFDC to 0x2FFFF0"

    Regards,

    Vivek Singh

  • Hi Vivek,

    I am using f28m35 device.

    Regards,

    Ahmet Bakır

  • Hi Ahmet,

    After unlocking the device, could you just erase the SECTOR A (instead of all the sectors together) . In CCS Flash plug-in GUI you can select to erase just one sector. If you are able to erase the SECTOR A successfully (view the memory content in CCS to make sure you see all the security settings as 0xFFFF_FFFF) then try programming other sectors and see if that helps.

    Regards,
    Vivek Singh
  • Hi Vivek,

    I can solve the problem while erasing only the SECTOR A primarily.
    It is completely my inattention. Thank you for detailed response.

    Regards,
    Ahmet Bakır