2023-01-14 10:49 PM
2023-01-15 12:26 AM
Check internal power supply settings and Flash wait states.
2023-01-15 03:39 AM
I performed these steps appended in the data sheet but during debugging the program comes to write to FLASH_ACR to adjust the number of flash wait states and gives Target is not responding.
Thank you.
2023-01-15 04:52 AM
Is PWR module enabled?
2023-01-15 05:37 AM
I enabled the clock for Both PWR and Flash interface before Clock Configuration and the problem appears at assigning wait states to Flach_ACR register by showing the target does not respond during the debug session.
2023-01-15 08:09 AM
By using magic numbers instead of named constants and multiple statements to set a single register you are asking for trouble. Why not:
RCC_>AHB2ENR |= RCC_AHB2ENR_GPIOAEN | RCC_AHB2ENR_GPIOBEN | RCC_AHB2ENR_GPIOCEN;
Also, FLASH->ACR register contains some important bits set by default. So, to set wait states without turning off the debug interface, use:
FLASH->ACR |= 4u;
2023-01-15 10:50 PM
Thank you so much