-
Notifications
You must be signed in to change notification settings - Fork 0
double trouble ?
KurfuerstPilz edited this page Mar 23, 2021
·
22 revisions
fear no more !
delete everything via CubeProgrammer (see here)
- project-> clean -> all
- build secure
- build nonsecure
problem solutions
.make sure that you open the link sent to you via eMail in the same browser instance in which you requested the download.
- no it doesn't, it just doesn't register in any of the windows entries for apps or the like.
- Just open "C:\Program Files\STMicroelectronics\STM32Cube\STM32CubeProgrammer\bin" or your installation path.
Problem solutions
.- Make sure that if new files are added, they are specified with relative paths (there should be no C:/ or similar in the .project file, only things like $%7BPARENT-2-PROJECT_LOC%7D/)
- first build secure then build non-secure, see crowbar
Problem solutions
.See programmer for this.
- disconnect cubeprogrammer when flashing a new sketch
- Make sure that the trustzone configuration currently on the board matches the one of the project
- boot into rss-mode as described here
- Make sure that the board configuration is correct, e.g. that the watermark region is set correctly, see also here
Problem solutions
.Problems with the OS? e.g. that a thread is not executed properly, or osDelay hangs in a continuous loop?
- is probably because the corresponding thread needs a bigger stack.
- go to the .ioc file under freeRTOS -> tasks and queues -> corresponding thread and increase the stack size.
- Make sure your USB cable supports data transfer#
- This is supposed to happen when you press "run" instead of "debug".
- press the black reset button once
Problem solutions
.- connect CubeProgrammer
- set RDP to 0.5 (aka 0x55) but keep nBOOT0 and nSWBOOT0 OB activated as this is the only way to get the board into RSS-mode from which the regression can be done
- apply
- get Device into RSS mode
- connect Boot0 pin to vdd
- push reset button (the black one on the board itself)
- blue and red should light up
- connect CubeProgrammer via HotPlug mode
- set RDP to 0 and TZEN also
- apply and done TZ is now disabled
If you can't find a solution for your problem here, but you think it's our fault, feel free to contact us! Maybe you can find a solution in the Issues we already encountered.