2025-10-29 3:03 PM
Hello,
I’m experimenting with a simple RAM loader for SPC58 loaded through BAF over CAN.
The same program runs perfectly when I debug it in RAM using UDESTK, and I’ve adjusted the linker so the code starts at 0x40070000. It initializes CAN, does a few GPIO tests, etc. — all good under the debugger.
However, when I upload the same image to RAM via BAF, it starts but crashes as soon as it tries to initialize the clock, and if I skip that, it later crashes on peripheral initialization (CAN, GPIO, etc.).
So my question:
What are the main things I’m missing for a program executed directly from BAF in RAM?
Is there something specific about system/clock or peripheral state that must be skipped or re-initialized when booting this way?
Any hints or example references for a working SPC5 RAM loader via BAF would be very helpful.
Thanks!
— Janis