Skip to main content
Ekim.1
Associate III
April 6, 2020
Question

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

  • April 6, 2020
  • 5 replies
  • 6995 views

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?

This topic has been closed for replies.

5 replies

Ekim.1
Ekim.1Author
Associate III
April 6, 2020

anyone? ;(

waclawek.jan
Super User
April 6, 2020

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.
April 6, 2020

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.

Tesla DeLorean
Guru
April 6, 2020

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 (See Profile) Up vote any posts that you find helpful, it shows what's working..
Ekim.1
Ekim.1Author
Associate III
April 7, 2020

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

Pavel A.
April 7, 2020

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

AKris.1
Visitor II
July 22, 2020

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.:smiling_face_with_smiling_eyes: