This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hello,
I am looking for help with flashing the ipc_ex2_gpio_sysconfig example from Resource Explorer (C2000Ware - 5.02.00.00/English/Devices/F2837XD/F28379D/Examples/Driverlib/dual/ipc/) on LAUNCHXL-F28379D. The build configuration is set to FLASH. When I flash the program in the debug state (and start each core at a time) the program works as expected. The LEDs continue flashing even after I stop the debug process. However, when I flash the code into the flash to run as a standalone, the program never operates (i.e. the LEDs never blink). Is there something in sysconfig file that needs to be changed to be able to run the code as soon as the LaunchPad is powered?
Thank you.
Regards,
Leon
Hi Leon,
Can you check the bootmode switches on the LaunchPad? It seems your device is not set to Boot from Flash. Please refer to the LAUNCHXL-F28379D user guide for the exact switch configuration
Regards,
Peter
Hi Peter,
Thank you for your quick reply. All three switches of S1 are set to 1. Based on TRM table 4-4 the boot mode is Get/Flash. I assume that it is the correct mode. Am I correct in my assumption?
Leon
Hi Leonid,
Thank you for verifying the boot mode selection switch. From a hardware perspective, this is the the only requirement to get the boot-from-flash to work correctly. Let me discuss with our IPC experts to see what could be causing this issue
Regards,
Peter
Leonid,
For the sysconfig examples, they do not use the static linker command files, but they instead use the linker command tool.
You will need to open Sysconfig, scroll down to the CMD module, then click the 'SETUP FLASH DEFAULT' button.
Please let me know if you have any issue with this.
Best Regards,
Ben Collier
Hi Ben,
Thank you for your help. I did the recommended steps for both CPUs in the Sysconfig file, but the results are the same. The program works in Debug mode, but it does not work as a standalone.
I am completely lost for a reason.
Regards,
Leon
Leonid,
Could you try a different example? Like one of the LED examples? Do you see the same results in the project that doesn't use SysConfig?
Best Regards,
Ben Collier
Good evening Ben,
I apologize for the delayed reply. I was away the last few days.
I imported the led_ex1_blinky project into the workplace. I used CPU1_FLASH_STANDALONE configuration for CPU1 and CPU2_FLASH for CPU2. After flashing both projects into the micro, I am getting only one LED (D10 - blue) flashing. This time I am getting the D10 to flash even after I reset the micro. However, I cannot get the CPU2 LED to flash.
I am not sure if that clarifies my situation. Any recommendations?
Regards,
Leon
Hi Leon,
This expert is currently on leave until 6/10. Please allow until then for a response. Thanks for the patience!
Best Regards,
Allison
Leon,
When I load the example with the standalone build config, I get stuck here if I am still connected to the device with JTAG:
This is expected. The LEDs will not flash.
When I power cycle the device without connected with JTAG, I see both LEDs blink as expected.
Do you not have this line in your code? Device_bootCPU2(C1C2_BROM_BOOTMODE_BOOT_FROM_FLASH);
It should stop CPU1 from going any further due to this reason:
Best Regards,
Ben Collier
Hi Ben,
Thank you very much for your support. It is embarrassing, I don't know how I missed that I didn't add that line. The led_ex1_blinky project had that line as well and I paid attention to it.
Thank you for your help.
Leon