Hi,
I am working on this basic bootloader application: renesasrulz.com/.../3223 and I am trying to upload the "S7SK_HMI_MMF" project. In this case, I have to copy on a USB stick the two binaries: flash.bin and qspi_flash.bin. My question is: what are they referred to? Is the first related to the executable and the second to the GUIX resources?
In particular, I would like to try to load my own GUIX HMI project application using the bootloader: how can I generate the two .bin files to copy on the USB stick? I saw there is a .bat file that should do the work, but it seems it doesn't work. Any help?
Thanks,
regards.
Hi adboc, yes, now I successful create the two .bin files by the execution of the batch file. I took a HMI SK-S7G2 example file and, as described in the notes,:
- I added the pre-build command (AddSectionAttribute.py) in the project property (the .py script that add the "__attribute__ ((section(".qspi_flash")))" to the resources) - I replaced the S7G2.ld file from the bootloader example with the original one present in my project (this step should addresses correctly the application) - I run the batch file and copy the two generated .bin on a USB stick
The bootloader on the S7 seems to perform the updating (the onboard LEDs should blink as expected), but at the end , when I reset the board, I cannot see anything on the LCD!
Perhaps are there any other steps ore configurations to do to the original project? In order to place the GUIX resources onto the QSPI, is sufficient to perform the first step described above?
the python script seems to refer to the correct path. By the way, I can't understand why the resource file is called twice:
C:\Python27\python.exe ${workspace_loc}/${ProjName}/AddSectionAttribute.py ${workspace_loc}/${ProjName}/src/gui/TimeAndTemp_resources.c ${workspace_loc}/${ProjName}/src/gui/TimeAndTemp_resources.c
Perhaps are there any other resources to call when I modify the GUIX project?
Is that script called automatically at every build or I have to run it explicitly?
Looking for "0x60000000" in the .map file gives the following:
Memory ConfigurationName Origin Length AttributesFLASH 0x02000000 0x00400000 xrRAM 0x1ffe0000 0x000a0000 xrwDATA_FLASH 0x40100000 0x00010000 xrQSPI_FLASH 0x60000000 0x04000000 xrSDRAM 0x90000000 0x02000000 xrw*default* 0x00000000 0xffffffff
[...]
.qspi_retentive 0x60000000 0x0 0x60000000 __qspi_retentive_start__ = . *(.qspi_retentive*) 0x60000000 __qspi_retentive_end__ = . 0x00000000 __qspi_retentive_size__ = (__qspi_retentive_end__ - __qspi_retentive_start__).qspi_flash 0x60000000 0xc7eb0 0x60000000 __qspi_flash_start__ = .
.qspi_flash 0x60000000 0xc7eb0 0x60000000 __qspi_flash_start__ = . *(.qspi_flash*) .qspi_flash 0x60000000 0xc7eb0 ./src/gui/TimeAndTemp_resources.o 0x60000000 display_1_theme_1_color_table [...] 0x60000000 __qspi_region_start_address__ = __qspi_flash_start__ 0x64000000 __qspi_region_end_address__ = (__qspi_flash_start__ + __qspi_region_max_size__)
Could you see something wrong?
I think it is only a probkem about visualization: in fact, the screen in blank, but the LED blinks correctly at every touch.
Hello Karol,
My project is generated from an import of the S7SK_HMI_MMF in the Bootloader folder from Renesas, so the configuration may be correct; in practise is exactly the same application, in which I only added a prompt text and a text button in the GUIX "main_window". The DTC seems to be not present, as shown in the following screenshot:
Do you confirm that the pre build python command to give in the C/C++ Build properties must be the following? Is this the "TimeAndTemp_resources.c" the only resource file to add?
Thank you.
adboc,
Yes, I have. Infact, the attributes seems they are added to the resource file:
The problems seems to come out when I make some changes to the project (e.g. add a prompt to a window). When I do these changes, I guess the resources.c file would be updated. Does it make sense to verify in some way if the "updated resource" are correctly sent to QSPI?