Hello everyone,i have some problems in bootloader program of S32R274,i describe the problems below.
The linker file settings is shown in the picture below.
Download the elf files of the three-core APP to 274 through the download device, use the memory viewing function, export the data of the flash used by the Z4 and Z7 cores as file 1, and burn the S19 file of the APP project to 274 by using the CAN bus through the bootloader program. Use the memory viewing function and export the data of the flash used by the Z4 and Z7 cores as file 2;
By comparing the two files, it is found that file 1 and file 2 are exactly the same.But there are some problems:
And there are my questions:
1.When debug bootloader, what are the possible reasons that the Z7 core does not run after the program jumps?
2.Run directly (bootloader and APP programs are already in the flash), what are the possible reasons why the program does not run?
If anyone know something about the problems, please tell me.
Thanks sincerely.
Hi,
if only application is programmed in the flash, is it working as expected? Are all cores running?
If the answer is yes, what steps are performed before jumping from bootloader to application?
Regards,
Lukas
Hello Lukas,
The answer is yes, and i have solved the problem now. It looks that clearing sram causes the program run away. I have a new problem now, after power on the board, the program could jump to APP program and there are messages on the CAN bus, everything seems normal, but there is no object in the data(there is expected one or two objects), after check the memory i found that the adc original data is "0"(all of the region that save the adc original data), but when only APP is programed in the flash, there are detected objects.
If you know something about this, could you please give me some suggestions.
Thanks sincerely~
Regards,
Fei,Xu