Author Topic: The meaning of DAP w.r.t M3 arm processor  (Read 708 times)

0 Members and 1 Guest are viewing this topic.

Offline ArioTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: za
The meaning of DAP w.r.t M3 arm processor
« on: June 08, 2023, 08:44:45 am »
Hi Everybody,

I need some assistance or basically an explanation. I am working on a project where some LPC1787 MCU are programming, and others not. It is probably a manufacturing issue. However I need to get to the bottom the issue.

My question:

In the IDE/debugger I use read the the following info from a debug log:

Thu Jun 08, 2023 10:05:22: Firmware: J-Link Ultra V4 compiled Sep 22 2022 15:00:10
Thu Jun 08, 2023 10:05:22: Selecting SWD as current target interface.
Thu Jun 08, 2023 10:05:22: JTAG speed is fixed to: 8000 kHz
Thu Jun 08, 2023 10:05:22: Found SW-DP with ID 0x2BA01477
Thu Jun 08, 2023 10:05:23: Failed to power up DAP
Thu Jun 08, 2023 10:05:24: Found SW-DP with ID 0x2BA01477
Thu Jun 08, 2023 10:05:24: Failed to power up DAP



What does DAP refer to and where can I read up more on its meaning ?
 

Any help or guidance on where to find some answers would be appreciated greatly!!
While googling I find people with similar issues, however no clear explanation regarding the meaning of "DAP" and "SW-DAP"

Thanks in advance :)
« Last Edit: June 08, 2023, 08:56:48 am by Ario »
 

Offline janoc

  • Super Contributor
  • ***
  • Posts: 3796
  • Country: de
Re: The meaning of DAP w.r.t M3 arm processor
« Reply #1 on: June 08, 2023, 09:06:35 am »
DAP - "Debug Access Port".

That's the part  of the ARM core that actually allows  you to debug the chip and also to program it.

That error means that your chip is talking to the debugger over SWD but the DAP is not responding - e.g. could be disabled by some configuration/fuse to prevent reverse engineering. You may have to clear that first somehow, if it is possible on your chip.

Or your programmer is not capable of programming that chip.

https://developer.arm.com/documentation/102585/0000/what-is-a-debug-access-port

https://developer.arm.com/documentation/102585/0000/Common-DAP-related-auto-detection-issues

The other possibility is that your MCU is in JTAG and not SWD mode - this apparently depends on whether the /RESET is pulled low or high during the debug probe connection, according to the datasheet.
« Last Edit: June 08, 2023, 09:16:06 am by janoc »
 
The following users thanked this post: Ario

Offline Jeroen3

  • Super Contributor
  • ***
  • Posts: 4079
  • Country: nl
  • Embedded Engineer
    • jeroen3.nl
Re: The meaning of DAP w.r.t M3 arm processor
« Reply #2 on: June 08, 2023, 09:40:27 am »
Or there is already software inside that change the gpio modes of the SWD pins.
 
The following users thanked this post: Ario

Offline ArioTopic starter

  • Regular Contributor
  • *
  • Posts: 54
  • Country: za
Re: The meaning of DAP w.r.t M3 arm processor
« Reply #3 on: June 08, 2023, 01:13:31 pm »
Hi,

Thank you both, Jeroen, and Janoc. I can not believe I did not know what DAP stands for.  :'(
However you have put me on the right track, and I am 85% sure the combination of your suggestions led me to finding the issue. Thanks so much!

As soon as I confirmed the issue properly I wil give feedback on what caused my issue.

Spoiler: Read your Errata
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf