I know this has been asked several times, but after studying them, I still cannot make this work. Please help!
Please see attachment for flash configuration and error messages.
Things tried:
Solved! Go to Solution.
Hello @Elisay
The Release notes, mention the R2016a up to R2020a because, at the release date, the latest MATLAB version available is R2020a. From my experience, you can use the R2020b with no worries for the code generation, but there might be some issues with PIL, or may not. But for code generation, you can use the R2020b with no worries.
For not show any blocks in the Simulink Library Browser, just open the Simulink Library Browser and press the F5 button. If a dialog box appears, just use the option in the middle, smth with Generate in the memory, I can't provide a screenshot.
Regards,
Marius
Hello @Elisay ,
Looks like the debug probe cannot connect to the MCU. This is not something related to the rbf file. Can you please try checking if the probe is right connected and the MCU is powered up?
Also, for the MPC5777C you have to do an extra step when flashing the bootloader RBF file. Please check below or in the MPC57xx_Series_Quick_Start_Guide delivered with our toolbox. However, the error you receive is not related to the step below. It has to do with the connection.
Hope this helps,
Marius
Hello @mariuslucianand:
Thanks much for your reply to my recent question regarding RBF flashing on MPC5777C-DEVB! With your help, I have been able to flash the bootload via PROGPPCNEXUS (not with S32 though). We have just got Embedded coder and am going through the UART_hello_world example, but I have got an error message of "Loss communication with CCP MCU. Please cycle power and try again. The operation has timed out." Flashing was still in "INIT" stage when the error appeared.
I have made sure I reset my board every time, but the error persists. I also tried to re-flash the bootloader, but no luck so far. Please advise what might be the problem. Thanks much!
Thanks much @mariuslucianand for your prompt reply!
Your advice definitely helped - I now can pass the 61% stopping point, but got a new problem that stops the flashing process. Please see attached for console output regarding this. By the way, I indeed have done in my flash configuration the extra step #5 you mentioned.
Update: Still no luck with S32 flashing, so I tried programming using PROGPPCNEXUS. It seems worked, at least no errors. But I cannot get the message from the Simulink uart_hello_world_mpc574xP.mdl model. Like I mentioned, I was able to get the welcome message when setting up the hardware, which means the serial port is working. Please advice what else I could use to test the problem.
Oh, we are still in the process of renewing Matlab embedded coder - I hope that's not a pre-requisite for this step.
Hello @Elisay,
The model you are mentioning is uart_hello_world_mpc574xP.md while the board you are trying to execute the generated code is the MPC5777C. Please try using the uart_hello_world_mpc5777C.mdl model. It seems that you are trying with the wrong model.
Hope this helps,
Marius
Thanks @mariuslucianand ! Yes, I tried the uart_hello_world_mpc5777C.mdl model too. After back and forth debugging, it looks like we might have some problem with "reset" and a power-off is necessary before doing a reset. Is there a fix for this?
Also appreciate any information regarding BMS using NXP MBD toolbox, especially if there is a BMS demo available for MPC5777C-DEVB.
Just found that the Toolbox does not show in Simulink library browser! After some investigation, it looks like the Toolbox I'm using, version 3.2.0, was created with Simulink version 10.2, which goes with MATLAB R2020b, but I'm using R2020a. The reason I use R2020a is because the Release Notes of MBD Toolbox V3.2.0 indicates it supports R2016 up to R2020a.
Now I am really confused - which version should I use to make this work? Please help!
Hello @Elisay
The Release notes, mention the R2016a up to R2020a because, at the release date, the latest MATLAB version available is R2020a. From my experience, you can use the R2020b with no worries for the code generation, but there might be some issues with PIL, or may not. But for code generation, you can use the R2020b with no worries.
For not show any blocks in the Simulink Library Browser, just open the Simulink Library Browser and press the F5 button. If a dialog box appears, just use the option in the middle, smth with Generate in the memory, I can't provide a screenshot.
Regards,
Marius