Electronics > Beginners
CS32F103C8T6 datasheet and tests (was:"UNEXPECTED idcode" flashing bluepill)
Macbeth:
Ah, sorry. I deliberately left the part of the path that contained dates and version numbers out.
As for Windows search and indexing, I loathe it and disabled mine ages ago. I've detested every windows search after XP.
I highly recommend the lightweight, astoundingly fast file search tool 'Everything' https://www.voidtools.com/ - it's a life changer! :-+
ebastler:
Just downloaded "Everything" and took it for a quick spin. Wow, that's impressive indeed! I had not come across that tool -- thank you very much for pointing it out!
ebastler:
While I am in the process of asking naive questions... (Hey, glad this thread happens to be in the "Beginners" section!) ;)
With a full installation of the STM32CubeIDE, where do I find the example source code from STM? I understand that an extensive collection of examples should be part of each "MCU package". I have installed the package for the STM32F1x, but for the life of me can't find a library of examples anywhere.
Thanks!
Macbeth:
I don't know about an example code library, but STM32CubeMX will auto generate most of the HAL code for you. Unfortunately I can't use my STM32CubeIDE right now as I've just upgraded to latest version and it keeps popping up an error dialog when I try to start a new project - "Error downloading the following files: mcusFeaturesAndDescription.json (Timeout during download)" :palm:
ETA: I followed this youtube for a USB Serial example
Note with STM32CubeIDE you do not need to start with MX and then link it to Eclipse like in the vid. STM32CubeIDE will call start MX for you when you launch a new project.
Now a problem with this dodgy bluepill is the USB example didn't work. I'll try it again with this upgraded version CubeIDE when I can finally download the above missing file ::)
ebastler:
--- Quote from: Macbeth on October 16, 2019, 12:12:25 pm ---I don't know about an example code library, but STM32CubeMX will auto generate most of the HAL code for you.
--- End quote ---
Thanks! I have successfully used the CubeMX component (now nicely integrated into the IDE) to generate the initialization code for SPI, NVIC, various GPIOs and two timers. But the generated code does not go quite as far as I had hoped. E.g. one apparently has to call HAL_TIM_Base_Start_IT () to actually get things going, which I only found via random Googling. And I am not sure whether the IRS needs to do anything, e.g. to re-enable the interrupt. Where does one find that sort of information, in a more systematic way?
STM advertises here (https://www.st.com/en/embedded-software/stm32cube-mcu-mpu-packages.html) that in the MCU packages,
--- Quote ---"A large number of code use examples are also included making it even easier to get started"
--- End quote ---
The graphic near the bottom of that page links to the individual MCU packages; and my STM32CubeIDE states that it has the STM32F1 package installed. (Obviously, since it can generate code for the processor.) So where are all those code use examples? :-//
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version