Hi,
I am having problems to flash over CAN using BAM.
Below is the error message I get from the RAppID gui:
Error message
"Loss Communication with BAM at Password. Check that Password is correct."
"Password Verification failure"
"Initialization
Error with BAM. Check Password or Verify Boot Configuration Setting
ABS2=1, ABS0=0, FAB=1, Please cycle power and try again."
Our code works normally when flashed over a "universal programmer" (debugging), but we need to be able to flash over CAN (CANCase XL).
* We have FlexCAN0 and FlexCAN1 activated.
I have tried the suggestions from the posts below, but so far, no success:
Rappid error - cannot boot from CAN with autobaud
Boot Assist Module (BAM) with FlexCAN MPC5604P
From what I understood, I just have to add the following in my code (to enable BAM), is this really all I need to do ?
I cannot understand more than that from the documentation.
-----------------------------------
#define RSTCFG_PCR 210
#define BOOTCFG0_PCR 211
#define BOOTCFG1_PCR 212
...
main(void) {
// BAM -------------------------------
PCR[BOOTCFG0_PCR].B.PA = 1;
PCR[BOOTCFG1_PCR].B.PA = 1;
PCR[BOOTCFG0_PCR].B.IBE = 0; // ABS0
PCR[BOOTCFG1_PCR].B.IBE = 1; // ABS2
RSR.B.BOOTCFG = 0x01;
PCR[RSTCFG_PCR].B.PA = 1;
PCR[RSTCFG_PCR].B.IBE = 0;
... (our normal application code)...
}
-----------------------------------
Hi ,
I have saw this discussion and I' m intersted about it. A part of the hardware configuration of BOOTCFG pins , Can you only confirm that the RAppID Boot Loader Utility works with the Vector Can Case XL for the MPC5644A? I ask you because before buy that I want to be sure as mauch as possible that there is no bug o problem to use that type of setting for booloading .
Thanks in advance ,
Alessandro.
Hi Alessandro,
yes, Vector CAN Case XL is supported, I'm not aware of issues.
But notice that this tool from Vector is not available anymore. It was replaced by VN1600 devices. I got information from SW team that it's backward compatible and it works too.
Regards,
Lukas
Hi,
you can't enable the BAM by software. ABS2, ABS0 and FAB pins or BOOTCFG pins (depends on device) must be configured on hardware level - it is necessary to tie the pins to required voltage level. The state of these pins is read during reset, so they cannot be set by software.
Regards,
Lukas