Part Number: MCU-PLUS-SDK-AM263PX
Other Parts Discussed in Thread: UNIFLASH
Tool/software:
Hi,
I’m working with the AM263Px CC evaluation board. I’m using CCS version 12.8.1 and SDK installed is am263px_10_00_00_35.
Based on the examples Enet LwIP HTTP Server On Bare Metal (No-RTOS) and OSPI Flash IO, I have implemented an UDP TFTP server. It receives a binary file and writes it to the flash. I now implemented that code in a bootloader (sbl) to be able to update the application that is supposed to run. I chose the sbl_ospi because it already has the functionality to run an application that has been flashed to the EVM flash. I called that new bootloader sbl_ospi_enet. I added enet to the sbl_ospi syscfg and the TFTP server to the source code. The bootloader waits for a command to run the application (0x4b 0x01 0x20) that has been flashed before (together with the sbl) (1) or to flash a new application (0x4b 0x01 0x21) and overwrite the existing (2). This works in certain circumstances.
- Only nortos applications run.
I tested with a couple of applications from the examples folder. Some of them work and others don’t.
Nortos applications gpio_led_blink and hello_world: The sbl completes with loading the image and switching to the application.
Freertos application hello_worl: The sbl hangs when initializing core R5FSS0_0. (line 177 in main.c)
- I use uart_uniflash.py to flash the EVM. The idea of the sbl is to overwrite the flashed data (appimage) if necessary, before the sbl finds and loads it. If both sbl_ospi_enet and the application are flashed, the bootloader does not run at all. If only sbl_ospi_enet is flashed (no application), the bootloader runs. Without the application, (1) can no longer be selected or executed. (2) works as described above.
I could need some help to fix the problems above. Can I do like this at all? Have I missed or misunderstood something?
Questions that I have are:
- Where do I have to place the tftp server in main?
- What MPU ARMv7 settings and memory configurations in syscfg are needed?
Regards,
Wega
