Dear all!
I try to write as "condensed" as possible. Please correct me, where ever my statements might be wrong.
We have a new hardware development.
It uses MPC5775B microcontroller.
I would like to use a bootloader to flash application software via CAN (MSCAN_0).
I understand that this controller does not have a bootloader "pre-flashed" and that I do have to flash a bootloader myself.
I somewhere read that "MPC5777C_S32DS_UART0_CAN0.rbf" is compatible to MPC5775B. I successfully flashed this file using a third party flash tool (PE Micro Cyclone Universal).
Now I tried to "download" ("flash") the actual application file to the MPC5775B.
I tried to use RAppID BL Tool 1.6.7.35. I belive there is no newer version available.
RAppID BL Tool does not have MPC5775B available (since the controller is newer than the software).
I was using this tool before successfully with MPC5643L, therefore I know that the tool "in general" works and drivers are set up correctly.
I selected MPC5777C. BAM status I selected "enabled", use default passwort is enabled.
I trace the CAN communication with a 3rd party CAN tool.
I see exactly one CAN frame in the trace:
ID: 0x011, DLC: 8, 01 00 00 00 AA AA AA AA (hex)
Then RAppID BL Tool indicates "target not responding".
I then power-cycled my board and sent with a 3rd party CAN tool manually the following messages (500 kbit/s):
1) ID: 0x000, DLC: 0
2) ID: 0x011, DLC: 8, FE ED FA CE CA FE BE EF
And now I receive the echo from the MPC5775B: ID: 0x001, DLC: 8, FE ED FA CE CA FE BE EF
Therefore I conclude that the bootloader in general is running and the hardware including CAN transceiver etc. is working properly.
Question now would be:
What did I do wrong and how can I use the RAppID BL Tool to properly "talk" to the bootloader?
I would be very glad for hints.
Please let me know if you need further information.
Best regards,
Alex
P.S.: the MPC5775B is connected to a 40 MHz crystal, MCU_EVTO pin is pulled low via resistor, BOOTCFG[1] is HIGH. The target board and microcontroller are able to run an application software properly if it is directly flashed via JTAG.
Edit No. 1:
I think I am a step further! The RAppID BL Tool GUI comes with a file named "RAppidBL_MCU.rbm". In this file, I copied the line for MPC5777C and re-named it to MPC5775B. Then, I changed the parameter "BAM Type (Type of BAM implementation designated by a number)" from "0" to "1".
[MPC5777B]
RBF_Files\MPC5777C.rbf, 0x40000100, 0x4000, 115200, 115200, 1, 1, 0, 0
Now, I am able to select MPC5775B in the list of targets in the GUI:

And now, when I click "Start Boot Loader" it actually does do something:

So it does correctly begin with the AutoBaud-Rate negotiation and then following the "default password" and everything gets acknowledged by the MCU.
Just: after some time, it prompts an error that the communication was lost...
Edit Nr. 2
I repeated the experiment as follows:
1) instead of MPC5777C_S32DS_UART0_CAN0.rbf I now flashed the "original" MPC5777C.rbf which came directly with the RAppID BL Tool GUI.
2) the BOOTCFG of the microcontroller is now "jumpered" to [00].
Now, at least an erase operation seems to be working:
