Electronic – Can’t run code in Keil for STM32L433RCT6P on NUCLEO-L433RC-P

armkeilstm32stm32cubemxstm32l

Recently at Embedded World 2018 in Nuremberg I got, for free, NUCLEO-L433RC-P with STM32L433RCT6P chip onboard. I want to broaden my knowledge in STM32 chips. Before, I did simple stuf on STM32F4.

NUCLEO-L433RC-P

All the jumpers on the board are placed correctly.

I opened STMcubeMX, selected the NUCLEO-L433RC-P board from board selection and used all the default settings for it. I also did a version with selecting the STM32L433RCTxP chip directly, not the board, and setting everything manualy. My end goal was to blink a LED.

I folowed this tutorial only for guidance, did not change RCC or SYS or anything like that: https://www.youtube.com/watch?v=BJdXR0Al6os

This is where problems began. After generating code and opening Keil I got the update window and updated everything for STM32L433RCT6P. Under boards there was no NUCLEO-L433RC-P to be found or updated. After closing that window this appeared (I tried and tried again while going through all the options):

options 1

At this point I just tried writing code an seeing what would happen. I have checked everithing in options for targer and compiled everything. After clicking the Download button if got the same thing for both scenarios:

enter image description here

What am I to do to fix this?

Versions: Keil V5.24.2.0, STM32CubeMX 4.24.0

Best Answer

Device not found in available Device Family Packs. Use PackInstaller: 'Check For Updates' to update the list of supported devices.

Keil doesn't know the device. Since Keil 5, it doesn't by default come with all supported devices. You have to install devices manually via the Pack Installer.

enter image description here

In the log:

No Algorithm found for: 08000000H - 08000F53H.

Since Keil does not know the device, it has no idea how it should even begin to program it. It needs firmware to load in SRAM and run to be able to program flash. This comes with the pack installer.

enter image description here

Error: Flash Download failed - "Cortex-M4"

That's just the least descriptive error message you get on almost every error.
Get used to it.