Issue with flashing of encrypted firmware on s32k344-4EVB board Dear Team, I installed the HSE Demo Example from the following NXP source: # https://www.nxp.com/webapp/Download?colCode=S32K3_HSE_DemoExamples After installation, I attempted to flash the hse_firm_install (full memory) by modifying the linker file to include the .bin.pink file. The flashing process completed and produced some results (logs attached below). However, I am not certain whether the firmware was successfully flashed. Subsequently, I uninstalled the software because my system began crashing. After reinstalling and trying to repeat the same process, I now receive the following error: Makefile not found. Kindly assist us with the following: How can we verify if the firmware has been successfully flashed? What could be the possible cause of the “Makefile not found” error after reinstallation? Are there any additional configuration or setup steps required before building the HSE demo examples? Do we need to use any external flashing tool, or can the flashing be performed directly from the provided example setup? Your guidance will help us proceed correctly with the flashing process. Thank you for your support. Re: Issue with flashing of encrypted firmware on s32k344-4EVB board #Thank you@lukaszadrapa for confirming and for your continuous support. Re: Issue with flashing of encrypted firmware on s32k344-4EVB board According to value of HSE GPR register at 0x4039_C028 - yes, HSE firmware is installed. You can also check FSR register in MU_0. If bit 24 (HSE_STATUS_INIT_OK) is set, the firmware is up and running and it is possible to trigger HSE services.
Regards,
Lukas Re: Issue with flashing of encrypted firmware on s32k344-4EVB board # Hi @lukaszadrapa , Thank you for your support. We checked the memory at address 0x4039C000 and got the value 0x00030003. Could you please confirm if this indicates that the HSE firmware is successfully flashed on our S32K344 board? Also, we have documented our results — could you kindly review the attached document and provide your feedback? Thanks again for your help! Re: Issue with flashing of encrypted firmware on s32k344-4EVB board Hi @Sanjana_k
I can see some differences in projects properties. For example, this is in original S32K344_HSE_FW_INSTALL example and it is very different when comparing it with your screenshots:
So, you obviously do not use original example but it is some modified project. I don't think I can help with this. I recommend to start with original project which is working as expected.
Regards,
Lukas
Re: Issue with flashing of encrypted firmware on s32k344-4EVB board # @lukaszadrapa This is the complete procedure we followed for the project and its attached is below. Please review it and help us with the firmware flashing process Re: Issue with flashing of encrypted firmware on s32k344-4EVB board # Thank you @lukaszadrapa for your support earlier. After re-running the build, the project compiles successfully, but now .elf file is not generating . Could you please suggest what might be the reason for this and how to resolve it? Please view the image below . Appreciate your help as always. Re: Issue with flashing of encrypted firmware on s32k344-4EVB board No, according to HSE GPR register at 0x4039_C028, the firmware is not installed.
And it's not very clear to me what you are doing. It's not necessary to copy the elf file like that. The steps are:
- Import S32K344_HSE_FW_INSTALL to S32 Design Studio.
- Open the linker file (either for full_mem or for ab_swap version) and adjust the path to the pink file accordingly - use the latest version of firmware for your device. The latest firmware for s32K344 is currently 0.2.55.0.
- Build the project. Then you can find the elf file in FULL_MEM folder.
- Load the project to your board either by debugger in S32 Design Studio or you can use any other debugger or flash programmer.
- Reset the device two times. First time, it will program HSE feature flag in the UTEST flash. After next reset, the firmware will be automatically installed and bit 0 in HSE GPR will be set.
Regards,
Lukas Re: Issue with flashing of encrypted firmware on s32k344-4EVB board # 1. The results below were obtained after flashing. Please confirm whether the firmware has been correctly flashed. 2.There is an .elf file listed under the binaries section, but it is not physically present in the folder. Please review the screenshot of the .elf file — the scratch mark (red cross or slash) indicates that the file is missing or the path reference is broken. 3.Earlier, an error appeared stating that the .elf file was not found. To resolve this, we manually copied the generated .elf file from the project explorer into the hse_fw_install folder. After doing so, the error disappeared, and we obtained the results shown below. Re: Issue with flashing of encrypted firmware on s32k344-4EVB board According to the error message, the linker file cannot be found. It points to some folder, not to linker file:
-T "C:\NXP\HSE_FW_S32S3XX_0_2_1_0\hse_full_mem\interface\inc_custom"
Go to project properties and select the right linker file here:
Regards,
Lukas
Re: Issue with flashing of encrypted firmware on s32k344-4EVB board # This error occurred during the build process of the led_blink example project after reinstallation. Re: Issue with flashing of encrypted firmware on s32k344-4EVB board #Please help us solve the error Re: Issue with flashing of encrypted firmware on s32k344-4EVB board #This error occurred during the build process of theled_blink example project after reinstallation. Re: Issue with flashing of encrypted firmware on s32k344-4EVB board Hi @Prabhavathi
1. Simplest way to check if HSE is installed and correctly initialized: First, check HSE GPR register at 0x4039_C028. Bit ‘0’ says if HSE firmware is installed or not. Then check HSE_STATUS_INIT_OK flag in FSR register in MU0. This flag says if HSE is up and running. Notice that user should wait until it’s set after reset before triggering HSE services.
The description of HSE GPR register and FSR register can be found in HSE Firmware reference manual v2.6. It can be downloaded from section Documentation->Secure files: https://www.nxp.com/products/S32K3
2. I would need more details. Which S32 Design Studio do you use? Could you describe what steps you did exactly? Could you take a screenshot of the error message?
3. No. The only requirement is to select the right pink file in the linker file when installing HSE firmware. Other examples can be used as is, no further steps are needed.
4. These examples can be loaded by any flash programmer or directly from S32 Design Studio.
Regards, Lukas
記事全体を表示