-
Notifications
You must be signed in to change notification settings - Fork 0
getting_started
HannesH edited this page Mar 22, 2021
·
25 revisions
- Nucleo L552ze-q (theoretically expandable to all boards with TrustZone)
- micro-USB data cable
- your PC
- STM32CubeIDE
- git
- RGB LED strips (non addressable, common plus), 12v (maximum 8m)
- Appropriate power supply (12v DC, >6A)
- LED controller based on the P9813: hier
- Other controllers based on the P9813 also work, but then you have to pay attention to the voltage and current of the LEDS and the power supply.
- 4 Male-Male Jumper-wires
- Connection between controller and LED strip
- Male-Female Jumper-wires
- STM32CubeProgrammer
- theoretically not necessary, because the CLI already comes with the IDE, if you prefer a GUI, be my guest :)
- install the CubeIDE (It doesn't matter which of the 3 supported operating systems you use.)
- clone this repo into a folder of your choice (from now on called
folder) - open the project with the CubeIDE
- Open the CubeIDE
- File > Open Projects From File System... > select
folder/Demonstartor/ > finish
- build projects
Our project currently consists out of two parts: with and without TZEN. Those are pretty much the same, but one of them has Secureoty enabled , the other not. To Build the Secure (withTZ) Project:
- Expand Demonstartor
- select Secure and build with the hammer icon
- same for Non-Secure (important: only after secure is built)
- watch the error console and if necessary go to TroubleShooting-Guide
- run project
- Connect Nucleo-L552ZE-Q via micro-USB to the PC
- Click on the arrow or the beetle to run or debug the application. -If a selection window pops up, simply select 'STM32 Cortex-M C/C++ Application' and press OK.
- now the LEDs on the board should change between blue and green
- Otherwise go to TroubleShooting-Guide
- disconnect device (and power supply!) from power supply
- wire like this:
- connect the power supply last
- Everything on your own responsibility, the 12V after the power supply are normally harmless for humans (but for the board it is).
- now the whole strip should change between blue and green ^^
- If not see TroubleShooting-Guide to find out
To Flash the withoutTZ Project, you need to disable TZ
11. to disable TrustZone open the CubeProgrammer
12. set here under OB (option-bytes) RDP (Read Out Protection) to 0.5 or 1 (Never 2!)
13. at TZEN=0 now also the red LEDs should shine
If you are interested to take over not only the code via a fork, but the whole project, including Kanban-Board, Issues, Wiki and everything else, please let me know (at hanneh00@ unsere-uni-standart-addresse), then I can make you the new maintainer/owner of this repo :)
If you have any further problems or questions, please check our Troubleshooting-Guide.