cancel
Showing results for 
Search instead for 
Did you mean: 

Break at address "0xfffffffe" with no debug information available, or outside of program code.

Ekim.1
Associate II

Hello, everyone!

I am using STM32CubeIDE and STM32H753VI.

I have to write the code written on Sector 0 of Bank 2, not Sector 0 of Flash Memory Bank 1.

I modified the VECT_TAB_OFFSET value in the system_stm32h7xx.c file as follows to process this work.

#define VECT_TAB_OFFSET  0x00100000UL

After that, STM32CubeIDE was used to change to debug mode and pressed the Resume button, and the following window came out.

0693W000000VL38QAG.png

 The View Disassembly is as follows.

0693W000000VL3DQAW.png

Why did this happen? How can I solve this?

8 REPLIES 8
Ekim.1
Associate II

anyone? ;(

I don't use H7. What is at 0x00100000UL? Executable RAM? Did you actually copy the vector table there? How is that area set in MPU?

JW

Pavel A.
Evangelist III

0x00100000 indeed is Sector 0 of Bank 2. Is this the actual location of your code in flash? We cannot know without the .ld file.

People, it is added to the BASE of FLASH, it is not an absolute value

The STM32H7 probably isn't going to auto-magically jump there, and the bank swap would likely map it to 0x08000000, which wouldn't help if all the table entries pushed up at 0x08100000

Do you transfer control from Bank 1, or set any Option Bytes to facilitate this address?

If it faults before SCB->VTOR is set up, it might pull an 0xFFFFFFFF value from blank flash.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

What is the method of setting up an Option Bytes to facilitate this address?

Are you asking how to set option bytes? With CubeProgrammer for example.

Yes, and the other question I have is whether my program can work normally just by setting up an option byte.

In fact, I used the IAR embedded workbench, where when I changed the vector table value from the project option, the program was downloaded to the location I wanted.I'm trying to change the compile tool with STM32CubeIDE, but it's not as easy as I thought.

AKris.1
Associate

i had a same issue at debugging time . i had some break points in the main.c ,i removed all the break points .then it works fine

i do not know whether it work for you or not .just try it, thank you.😊