Hi all,
New to STM32.
I modified one of my products from the ATMEL1284 to the STM32F103 and using the Arduino IDE it works great.
Now, due to the lack of support for the STM32L151/152 in the Arduino boards library I thought I'd give the ST-Link Utility and the STM32CubeProgrammer a go.
I can upload my hex file to the L151 using the ST-Link utility no problem (it appears), but with the STM32CubeProgrammer I can connect, I can read the contents out but I get an error when I tried to upload my hex file.
"Error: Flash loader cannot be loaded"
Also, I get an error when I try to erase sectors of the 151.
I am not using any external loaders.
I have tried my STLINKV3 as well as my STLINKV2 and get the same problem.
I have checked that nothing is write protected in settings and everything is as per default.
My ultimate aim is to find a workflow that I can write my C++ prog using the Arduino IDE and all my libraries, and use it on the L151/L152. I do NOT want to start from scratch and dump all my Arduino libraries etc.
Ideally, there would be a board in the Arduino IDE for the L151/L152 much the same as there is for the F103 etc.
I'm more a hardware engineer than a software guy!
Ideas to help an STM32 newbie along?
Ian.