Hi all,
Running on a LPC55S69JBD100. The application is running fine, but as soon as I want to jump to a function residing in RAM I get a bus fault.
The RAM section is created in the linker file, the function resides in that section says the .map file, and checking the function address at runtime is indeed in that RAM section. Defined a function pointer to that function but as soon as code wants to jump to that address, I get:
[ERROR] ( startup.c)( BusFault_Handler @105) : Busfault! f0002
So I'm missing something or doing things wrong.
Just to keep it simple, the function in RAM only sets a variable, no more than that. So that I can focus on the jump to a RAM function.
Would there be any example in the SDK? Already searched for it, but couldn't find something related...
Thanks in advance!
First, I don't know the LPC55S69 particularly well, nor do I have an eval board with this MCU.
But I suppose you have checked the MCU reference manual, and confirmed that the RAM section in question is really connected to the I-Bus, haven't you ?
I know of MCUs were some RAM sections are connected to I- and D-Bus, and others are only to the D-Bus.
Great, thank you Paval. Here's what I did: in the memmap linker file I created a new section:
FYI: toolchain is gcc and cmake, I'm not using MCUXpresso. But if there would be some kind of example somewhere, encapsulated in a MCUXpresso project, that would be neat.
Thanks in advance!
Hello, my name is Pavel, and I will be supporting your case, I need more information, what is the location you need to get access? could you elaborate further about it? consider using an image if necessary.
Best regards,
Pavel