Whatsup
Iam back
Recently, I tried to set up the development environment. It took merely 7 days.
I wanted to use the light_startup library for startup settings on my bare-metal STM32F411. Wow. That was a tragic story.
My old friend Gemini was my first call for help. But he was useless. Wrong commands, wrong diagnosis, wrong file paths. He confidently gave me fake information, and I followed it. That cost me days.
The real breakthrough came when I stopped asking AI "what is wrong" and started feeding it the official documentation. Error messages, library READMEs, gprbuild specs — once the AI had the actual source material, it could finally analyze things correctly. Without that, it was just guessing.
So here is what I learned: AI itself is kind of dumb. But AI + official docs is a different beast.
The actual problems I ran into:
gprbuild 26.0 (LTS) was not compatible with the library. The AI could not even tell me why until I pasted the error message directly.
The linker script had a nested INCLUDE structure, and the linker kept getting lost because nobody told it where to look.
Alire hides toolchain files deep in a cache folder with a random-looking name. You have to hunt it down yourself.
Anyway. I finally got the environment running. Yeahy!
Next time, I will show you how I actually started writing code for the STM32F411.
Sorry for using AI to write a record but I did not record anything during the 7days trial.
So I just tell him what I remember about the tragedy.
For the next time, I will record and write more genuine report.
I will be back.
Top comments (0)