We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have been making some clocks configuration changes in C code. I verified the register values using the debugger. I have made below code changes to check the clock frequencies using oscilloscope . ie, MCO to PA8
After making the below code changes, ULINK2 is unable to connect with the device. The moment after I click "Load" I get error as "No Cortex-M Device found in JTAG chain" . It was working fine before I load this code. The uVersion I use is 5.33.
I did try setting the debug settings,
1. Connect: with Pre-reset
2. Enabled Reset after Connect
3. Rest: HW RESET
4. Enabled Stop after Reset
-------------------------------------------------------------------------------------------------------------------------
//Set the MCO to SysCLKpRcc->CFGR |= RCC_CFGR_MCOSEL_0;
// Enable alternate function for GPIOA8GPIOA->MODER |= GPIO_MODER_MODE8_1;
// Configure GPIOA8 to very high speedGPIOA->OSPEEDR |= (GPIO_OSPEEDR_OSPEED8_1| GPIO_OSPEEDR_OSPEED8_0);
//Alternate function for portA-8GPIOA->AFR[1] |= GPIO_AFRH_AFSEL8_3;
Can someone help me resolving the issue?
PA8 isn't used by the debug interface - is it?