Steps for incremental update and debug
The following steps are to be done, when you want to incrementally update the code and run the updated binaries.
Step 1 : Change Code
- Edit/Update the code as needed.
Step 2 : Recompile & Build the code
- Recompile and build the code after making the changes
cd ${PSDKR_PATH}/sdk_builder
./make_sdk.sh
- Note
- This builds the SDK in release mode.
OR cd ${PSDKR_PATH}/sdk_builder
PROFILE=debug ./make_sdk.sh
- Note
- This builds the SDK in debug mode, in case you want to use gdb (linux) or CCS to debug the programs.
-
"make_sdk.sh" rebuilds not just the linux/QNX programs but also the remote cores. So if code is changed on those remote cores, make_sdk.sh is needed to rebuild it.
- Warning
- Make sure that there are no compiler/linker issues, after doing this step.
- Note
- To run in PC Emulation mode, now you can follow the steps mentioned in Running the vision apps demos in PC emulation mode
-
To run on EVM, you can follow the steps given below.
Step 3a : Copy executable files to SD card (Linux+RTOS mode)
- Note
- make sure you have already prepared the sd card and copied the test data as mentioned in Run vision apps on EVM in Linux+RTOS mode (via SD card boot)
- Insert the SD card onto your host PC SD card slot, (if not already inserted).
- Do below to copy vision apps binaries to SD card
cd ${PSDKR_PATH}/sdk_builder
make linux_fs_install_sd
- Note
- This loads the release versions of all the files
OR cd ${PSDKR_PATH}/sdk_builder
make linux_fs_install_sd PROFILE=debug
- Note
- This loads the debug versions of all the files in case you want to use gdb (linux) or CCS to debug the programs
OR cd ${PSDKR_PATH}/sdk_builder
make linux_fs_install_sd HS=1
- Note
- This loads the release versions of all the files, and installs the signed firmware binaries as required for an HS platorm
- Eject and remove SD card from PC and insert in EVM
Step 3b : Copy executable files to SD card (QNX+RTOS mode)
- Note
- make sure you have already prepared the sd card and copied the test data as mentioned in Run vision apps on EVM in QNX+RTOS mode (via SD card boot)
- Insert the SD card onto your host PC SD card slot, (if not already inserted).
- Do below to copy vision apps binaries to SD card
cd ${PSDKR_PATH}/sdk_builder
make qnx_fs_install_sd
- Note
- This loads the release versions of all the files
OR cd ${PSDKR_PATH}/sdk_builder
make qnx_fs_install_sd PROFILE=debug
- Note
- This loads the debug versions of all the files in case you want to use CCS to debug the programs
- Eject and remove SD card from PC and insert in EVM
Step 4a: Run on EVM (Linux+RTOS mode)
- To run the updated binaries on EVM , you can follow the steps mentioned in Step 4: Run on EVM
Step 4b: Run on EVM (QNX+RTOS mode)
- To run the updated binaries on EVM , you can follow the steps mentioned in Step 4: Run on EVM