Adding full support for STLINK CHIP ID L4RX
@@ -1659,7 +1659,8 @@ int stlink_erase_flash_page(stlink_t *sl, stm32_addr_t flashaddr)
if ((sl->chip_id == STLINK_CHIPID_STM32_L4) ||
(sl->chip_id == STLINK_CHIPID_STM32_L43X) ||
(sl->chip_id == STLINK_CHIPID_STM32_L46X) ||
- (sl->chip_id == STLINK_CHIPID_STM32_L496X)) {
+ (sl->chip_id == STLINK_CHIPID_STM32_L496X) ||
+ (sl->chip_id == STLINK_CHIPID_STM32_L4RX)) {
// calculate the actual bank+page from the address
uint32_t page = calculate_L4_page(sl, flashaddr);
@@ -2086,7 +2087,8 @@ int stlink_write_flash(stlink_t *sl, stm32_addr_t addr, uint8_t* base, uint32_t
if ((sl->chip_id != STLINK_CHIPID_STM32_L4) &&
(sl->chip_id != STLINK_CHIPID_STM32_L43X) &&
(sl->chip_id != STLINK_CHIPID_STM32_L46X) &&
- (sl->chip_id != STLINK_CHIPID_STM32_L496X)) {
+ (sl->chip_id != STLINK_CHIPID_STM32_L496X) &&
+ (sl->chip_id != STLINK_CHIPID_STM32_L4RX)) {
if( sl->version.stlink_v == 1 ) {
printf("STLINK V1 cannot read voltage, defaulting to 32-bit writes on F4 devices\n");
