<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Cannot debug project because of Cannot access target error</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/41576/cannot-debug-project-because-of-cannot-access-target-error</link><description> 
Dear Sirs and Madams! 

 
I am having problems debuging following code: 

 
void ueInitLCD(void)
{
 // Initialization structures
 I2C_InitTypeDef ueI2C_NCP5623_InitStructure;
 SPI_InitTypeDef ueSPI_DOGM128_InitStruct;
 GPIO_InitTypeDef ueGPIO_DOGM128_I2C_InitStruct;</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Cannot debug project because of Cannot access target error</title><link>https://community.arm.com/thread/118721?ContentTypeID=1</link><pubDate>Tue, 25 Apr 2017 18:49:44 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7ef7771e-cbf0-4f34-a405-642f25ff5679</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
PB3 is the JTDO/TRACESWO pin&lt;br /&gt;
PA15 is the JTAG JTDI pin&lt;/p&gt;

&lt;p&gt;
You might want to do a partial remap based on whether you are
using SWD or JTAG connectivity&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot debug project because of Cannot access target error</title><link>https://community.arm.com/thread/94021?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 23:24:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d6e02cc6-bd9a-4601-b936-d0b2a13cd700</guid><dc:creator>Marko Frelih</dc:creator><description>&lt;p&gt;&lt;p&gt;
Indeed, you are right, forgot to attach pin mappings, here they
are now:&lt;/p&gt;

&lt;pre&gt;
#ifndef ARCHITECTURE_H
#define ARCHITECTURE_H

#include &amp;quot;stm32f10x_conf.h&amp;quot;
#include &amp;quot;stm32f10x_spi.h&amp;quot;
#include &amp;quot;stm32f10x.h&amp;quot;

// ~CS (Chip Select) Pin Mapping
#define UE_PORT_DOGM128_CS  GPIOA
#define UE_PIN_DOGM128_CS   GPIO_Pin_15

// RST (Reset) Pin Mapping
#define UE_PORT_DOGM128_RST GPIOC
#define UE_PIN_DOGM128_RST  GPIO_Pin_12

// A0 Pin Mapping
#define UE_PORT_DOGM128_A0  GPIOD
#define UE_PIN_DOGM128_A0   GPIO_Pin_2

#define UE_PERIPHERAL_DOGM128_SPI       SPI1

#define UE_PORT_DOGM128_SPI             GPIOB

// SPI CLK (SPI Bus Clock) Pin Mapping
#define UE_PIN_DOGM128_SPI_CLK          GPIO_Pin_3

// SPI SI (MOSI) Pin Mapping
#define UE_PIN_DOGM128_SPI_SI          GPIO_Pin_5
#endif
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cannot debug project because of Cannot access target error</title><link>https://community.arm.com/thread/86117?ContentTypeID=1</link><pubDate>Mon, 24 Apr 2017 07:39:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3dc60997-17be-409f-9545-da753ed96a24</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Most likely because you are reprogramming pins used by the
debugger. You don&amp;#39;t provide the defines, so hard to see the
details.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>