Skip to main content
Associate
October 29, 2025
Question

SPC58 RAM Loader over BAF (crash on clock/peripheral init)

  • October 29, 2025
  • 1 reply
  • 228 views

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

1 reply

JAnis_PDKAuthor
Associate
November 10, 2025

i fix this!!! thx for no response :p

Visitor II
November 26, 2025

Hi,

I have similar problem.

Can you please explain how do you fix It?

Thank you!