Boot Manager interface to SP processor not working for MCU3 VDK

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Boot Manager interface to SP processor not working for MCU3 VDK

149 Views
Luca_Fodale
Contributor II

Hi all,
I'm working on GM SW based on GRAYVIP 22 with HSE FW s32n5_gp_fw_1.1.8_0.19.0_pb250801 This Software implements the boot manager and boot loader code. Loading the envelop1 bin, i am able to see the correct value in the memory area.

image.png

After this, the boot manager on CRS executed the  FBL_Port_BM_InitializeInterface() function that is used to establish an interface to SP processor.
Inside this function, there is a do-while loop that needs a specific response of SP to continue and itis never satisfied until the elapsed time is not reached, because the FBL_BM_SPResponse is always 0xFF.

image (9).png

Do you have any hints?
I can share the reproducer 
Tags (1)
0 Kudos
Reply
1 Reply

119 Views
petervlna
NXP TechSupport
NXP TechSupport

Hello,

Could you specify what  is SP?

if there is no response from SP then check 

 

  • Verify SP Firmware Boot

    • Use a debugger or trace to confirm SP is alive and executing code.
    • Check if SP is stuck in a reset or waiting for a trigger.
  • Log or Trace SP Behavior

    • If possible, add logging or breakpoints in SP code to see if it receives any request or command from CRS.
  • Review Boot Manager Expectations

    • Look into the documentation or source code to understand what FBL_BM_SPResponse should be set to when SP is ready.

Best regards,

Peter

 

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2181241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EBoot%20Manager%20interface%20to%20SP%20processor%20not%20working%20for%20MCU3%20VDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2181241%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20all%2C%3CBR%20%2F%3E%3CSPAN%3EI'm%20working%20on%20GM%20SW%20based%20on%20GRAYVIP%2022%20with%20HSE%20FW%26nbsp%3Bs32n5_gp_fw_1.1.8_0.19.0_pb250801%20This%20Software%20implements%20the%20boot%20manager%20and%20boot%20loader%20code.%20Loading%20the%20envelop1%20bin%2C%20i%20am%20able%20to%20see%20the%20correct%20value%20in%20the%20memory%20area.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20471px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image.png%22%20style%3D%22width%3A%20471px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359757i78D19EB935C85D48%2Fimage-dimensions%2F471x346%3Fv%3Dv2%22%20width%3D%22471%22%20height%3D%22346%22%20role%3D%22button%22%20title%3D%22image.png%22%20alt%3D%22image.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CDIV%20class%3D%22%22%3EAfter%20this%2C%20the%20boot%20manager%20on%20CRS%20executed%20the%26nbsp%3B%20%3CEM%3EFBL_Port_BM_InitializeInterface%3C%2FEM%3E()%20function%20that%20is%20used%20to%20establish%20an%20interface%20to%20SP%20processor.%3CBR%20%2F%3EInside%20this%20function%2C%20there%20is%20a%20do-while%20loop%20that%20needs%20a%20specific%20response%20of%20SP%20to%20continue%20and%20itis%20never%20satisfied%20until%20the%20elapsed%20time%20is%20not%20reached%2C%20because%20the%20%3CEM%3EFBL_BM_SPResponse%3C%2FEM%3E%20is%20always%200xFF.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22image%20(9).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22image%20(9).png%22%20style%3D%22width%3A%20999px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F359758iA3C545CFCCAF5BC5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22image%20(9).png%22%20alt%3D%22image%20(9).png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22%22%3E%3CBR%20%2F%3EDo%20you%20have%20any%20hints%3F%3CBR%20%2F%3EI%20can%20share%20the%20reproducer%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2181825%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Boot%20Manager%20interface%20to%20SP%20processor%20not%20working%20for%20MCU3%20VDK%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2181825%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3ECould%20you%20specify%20what%26nbsp%3B%20is%20SP%3F%3C%2FP%3E%0A%3CP%3Eif%20there%20is%20no%20response%20from%20SP%20then%20check%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CP%3EVerify%20SP%20Firmware%20Boot%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EUse%20a%20debugger%20or%20trace%20to%20confirm%20SP%20is%20alive%20and%20executing%20code.%3C%2FLI%3E%0A%3CLI%3ECheck%20if%20SP%20is%20stuck%20in%20a%20reset%20or%20waiting%20for%20a%20trigger.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3ELog%20or%20Trace%20SP%20Behavior%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EIf%20possible%2C%20add%20logging%20or%20breakpoints%20in%20SP%20code%20to%20see%20if%20it%20receives%20any%20request%20or%20command%20from%20CRS.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3EReview%20Boot%20Manager%20Expectations%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ELook%20into%20the%20documentation%20or%20source%20code%20to%20understand%20what%20FBL_BM_SPResponse%20should%20be%20set%20to%20when%20SP%20is%20ready.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EBest%20regards%2C%3C%2FP%3E%0A%3CP%3EPeter%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E