on 2021-11-12 03:28 AM
A Micro USB Cable is used to power and debug.
Download the X-CUBE-AWS package . You may need to create an account on st.com for the same.
(if the file path is too long it will generate build errors). Open IAR and Click on File->Open Workspace and open the following and navigate to the Project.eww files in the following paths:
C:\STM32CubeExpansion_Cloud_AWS_V2.0.0\Projects\B-L4S5I-IOT01A\Applications\BootLoader_STSAFE\2_Images_SECoreBin\EWARM
C:\STM32CubeExpansion_Cloud_AWS_V2.0.0\Projects\B-L4S5I-IOT01A\Applications\BootLoader_STSAFE\2_Images_SBSFU\EWARM
C:\STM32CubeExpansion_Cloud_AWS_V2.0.0\Projects\B-L4S5I-IOT01A\Applications\BootLoader_STSAFE\STSAFE_Provisioning\EWARM
C:\STM32CubeExpansion_Cloud_AWS_V2.0.0\Projects\B-L4S5I-IOT01A\Applications\Cloud\aws_demos\EWARM
in the following order by clicking on the build icon - 2_Images_SECoreBin, 2_Images_SBSFU, STSAFE_Provisioning and then B-L4S5-IOT01_aws_demos . Note that a wrong compilation order will generate build errors.
(C:\STM32CubeExpansion_Cloud_AWS_V2.0.0\ Projects\B-L4S5I-IOT01A\Applications\Cloud\aws_demos\EWARM\Debug) to the board (eg: DIS_L4S5VI).
You can place a breakpoint as shown below by clicking right next to the line number.
Click on Project -> Debug without Downloading.
Or, you can also click on the following icon.
IAR: https://www.iar.com/products/architectures/arm/iar-embedded-workbench-for-arm/
STM32L4S5 user and reference manual: https: www.st.com/en/evaluation-tools/b-l4s5i-iot01a.html#documentation