I have reverted to my known working code from several months ago(prior to any problems) and problem persists.
#KEIL UVISION 5 PRO#
I tried tried two adapters (J_Link Pro and Flasher) and both adapters exhibit the same problem.
#KEIL UVISION 5 HOW TO#
It seems that uVision has "forgotten" how to connect to my device, but it can use a connection established by J-Flash.ĭuring my investigations, I have found that the JTAG device chain (see attached screenshots) is populated when when J-Flash has connected, but is empty when J-Flash has not connected.
If (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_0) != HAL_OK) RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1 RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV1 RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1 RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_HSI |RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2 RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
If (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK) RCC_OscInitStruct.HSICalibrationValue = 16 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI **Initializes the CPU, AHB and APB busses clocks _HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3) **Configure the main internal regulator output voltage HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_RESET) HAL_GPIO_WritePin(GPIOA, GPIO_PIN_5, GPIO_PIN_SET) * Initialize all configured peripherals */ * Reset of all peripherals, Initializes the Flash interface and the Systick. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, * SERVICES LOSS OF USE, DATA, OR PROFITS OR BUSINESS INTERRUPTION) HOWEVER * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
#KEIL UVISION 5 SOFTWARE#
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * without specific prior written permission. * may be used to endorse or promote products derived from this software Neither the name of STMicroelectronics nor the names of its contributors * and/or other materials provided with the distribution. * this list of conditions and the following disclaimer in the documentation Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer. Redistributions of source code must retain the above copyright notice, * are permitted provided that the following conditions are met: * Redistribution and use in source and binary forms, with or without modification, * are owned by their respective copyright owners. * inserted by the user or by software development tools
* that are not between comment pairs USER CODE BEGIN and ** This notice applies to any and all portions of this file Selanjtnya kita tinggal membuat program blink nya, Replace saja code dalam main.c nya dengan code berikut : /**