Hi expert,
According to S32DS Flash tool guide, there is a target application which is located in the target SRAM. My device is S32Z and my question is
Thank you very much for your support.
BR,
Catherine
Hello @Catherine,
Please find my answers to your questions:
A1) You are correct, the time in which the application is loaded is when clicking the "Upload target and algorithm to hardware" to hardware button. However, the algorithm is not the first thing being loaded to the S32Z2 chip, the first biniry that gets load into the chip is in this case the S32Z2E2.bin file, which you can find in your installation directory, it should be similar to this: C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32Z2E2.bin.
If you check the command line approach you can see that when load the algorithm is loaded you need to select a binary corresponding to the chip, for example in my setup it would be:
S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32Z2E2.bin -a C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\flash\S26HS512.bin,0,A -i uart -p COM27
The paths and COM number may change in your setup.
A2) I should have ansered the fisrt part of the second question in the first answer. For the algorithm path, you can find it in the following folder, for example for flash S26HS512, which is used in the S32Z2280-594EVB board:
C:\NXP\S32DS.3.6.0\S32DS\tools\S32FlashTool\flash\S26HSom512.bin
A3) Your understanding is correct, the core responsible to run the serial application is the SMU/M33, you can see this in the reference manual [page 3219, S32Z2 Reference Manual, Rev. 3.1, 07/2024]:
And for the whole program is loaded to the SRAM the core should be automatically started.
You can get a better perspective on how to interact with the S32FT operations by checking the command line options, you can get a "preconfigured" set of commands by setting up your S32FT GUI, for example:
Then clicking on the "Launch command prompt" button:
a windows command line instance will appear, and in it some commands already configured for your setup will be available:
# Retrieve existing COM ports
# S32FlashTool -i uart -p ?
# Retrieve connected, supported CAN adapters
# S32FlashTool -i can -p ?
# Retrieve Ethernet adapters
# S32FlashTool -i ethernet -p ?
# Load the target binary and read the MCUID
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32Z2E2.bin -i uart -p COM27 -mcuid
# Load the target binary and the flash memory algorithm
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32Z2E2.bin -a C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\flash\S26HS512.bin,0,A -i uart -p COM27
# Read 0x100 bytes from the address 0x0000_0000 of the flash memory
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32Z2E2.bin -i uart -p COM27 -fread -addr 0x00000000 -size 0x100
# Upload (program) a file [FILE] to the flash memory starting with address 0x0000_0000
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32Z2E2.bin -i uart -p COM27 -fprogram -addr 0x00000000 -f [FILE]
# Upload a binary [FILE] to SRAM at address [ADDRESS] and execute it
# S32FlashTool -t C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\targets\S32Z2E2.bin -i uart -p COM27 -addr [ADDRESS] -boot [FILE]
C:\NXP\S32DS.3.5\S32DS\tools\S32FlashTool\bin>
Please let me know if this information solved your questions.