2023-12-21 04:01 AM
Hi,
I'm programming an STM32F030C8T6 MCU. When I attempt to upload my code, it gives me an error: "Could not halt device (19)". I noticed that this only happens when ADC is enabled from CubeMX. When I disable it, everything works fine. The code doesn't even use it. It is only when I have enabled ADC in the .ioc file in my project directory in STM32CubeIDE. I need ADC for my project. What could be causing this and how can I fix it?
Thanks.
Solved! Go to Solution.
2023-12-21 07:36 AM
Hi,
I noticed now that VDDA is connected to VDD in my schematic, but I had not connected it in the PCB design. This is definitely the cause of the problem. How could I resolve it without ordering another one? Also the pins are so small that I doubt I will have any luck soldering them together.
Thanks.
2023-12-21 04:35 AM - edited 2023-12-21 04:36 AM
....coming from :
https://community.st.com/t5/stm32-mcus-products/could-not-halt-device-19/td-p/621800
Did you try to up- or down- grade the software pack:
->
->
(in IDE, in edit ioc -> CubeMX-> manage software packs ...) then you see this;
2023-12-21 04:37 AM
Hello @JS8
Is there any warning in CubeMx when you enable the ADC?
2023-12-21 05:04 AM
Hi,
I removed the most recent install and installed the previous software pack. Didn't work, sadly.
2023-12-21 05:05 AM
Hi,
I don't see any warnings. Where would these typically appear?
2023-12-21 05:09 AM
Hello @JS8 ,
Could you please send your project including your .ioc file?
2023-12-21 05:18 AM
Hi,
Here's the link to my project . I uploaded it via WeTransfer.com
2023-12-21 05:23 AM
Could you please compress the project (.7z) and attach it here in the community using drag and drop feature?
2023-12-21 05:31 AM
2023-12-21 05:37 AM
Could you please change your system clock frequency to 48MHz instead of 8MHz as following and use PLL?
Your ADC clock is coming from HSI which is 14MHz. So I suspect an issue on the ratio between the two frequencies.