Skip to main content
Graduate
January 8, 2021
Question

Hello, I use CubeMX 6.1.1 and Keil 5.33.0.0 I got error "Invalid ROM Table" when trying to flash the MCU. with Debug settings set to Under Reset / HW Reset

  • January 8, 2021
  • 3 replies
  • 4230 views

By default the ST-Link Debugger setting Pack "Keil.STM32L0xx_DFP.2.1.0" is Enable and I got error "Invalid ROM Table" when trying to flash the MCU. But If I just Disable the checkbox Enable in the Pack tab in ST-link Debugger setting then the flashing is OK :)

I'm I doing something wrong or is this a bug ?

Thanks for help,

Thomas

    This topic has been closed for replies.

    3 replies

    Thomas LBAuthor
    Graduate
    January 8, 2021

    A more detailed log from another project when flashing (same conditions):

    File    : C:\Keil_v5\ARM\PACK\Keil\STM32L0xx_DFP\2.1.0\Keil.STM32L0xx_DFP.pdsc 

    Sequence  : DebugPortStop 

    Context  : Item #2: <control if="DoDebugPortStop">

             Item #0: <block>::Line 3 

    Expression : "v5\ARM\PACK\Keil\STM32L0xx_DFP\2.1.0\Keil.STM32L0xx_DFP.pdsc" 

    E310    : Debug access failed - cannot write value 0x00000000 to DP register 0x08

    Flash Load finished at 17:30:12

    Thomas LBAuthor
    Graduate
    January 11, 2021

    Target is STM32L051K8tx, If you want to reproduce just generate code from this:

    ST Employee
    February 22, 2022

    Hi Thomas,

    in Options for Target... under Debug -> Settings -> Pack,

    make sure to uncheck "Enable".

    This solved the problem for me.

    Currently, I have no explanation for this behavior, likely a bug in Keil.

    0693W00000Ka3BxQAJ.png 

    Best regards

    Jaroslav

    Thomas LBAuthor
    Graduate
    February 22, 2022

    Hello, is this some kind of joke?

    More than one year to give me answer that I already gave in original post?

    (BTW the bug is still there)

    Regards,

    Thomas

    Super User
    February 22, 2022

    @Thomas LB​ Have you asked Keil about this? One of advantages of choosing Keil is their fast and professional support.