Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


vPortRaiseBASEPRI Infinite Loop

The processor is an STM32F373. This an STM32CubeMX 4.14 generated project with FREERTOS enabled, and the SysTick TImebase Source.

Calls to: HAL_Delay(50), vTaskDelay(50), and osDelay(50) hang. This hang is in the function vPortRaiseBASEPRI() which, as I can see in the disassembly window, has as its last instruction an infinite loop.

This is the disassembly I see for that function:

215                                       	__asm volatile
0800a564: 0x4ff05003 ...eGenericReceive+8   mov.w   r3, #80 ; 0x50
0800a568: 0x83f31188 ...GenericReceive+12   msr     BASEPRI, r3
0800a56c: 0xbff36f8f ...GenericReceive+16   isb     sy
0800a570: 0xbff34f8f ...GenericReceive+20   dsb     sy
0800a574: 0x0000fee7 ...GenericReceive+24   b.n     0x800a574 <xQueueGenericReceive+24>


The b.n instruction is an unconditional branch to itself. Was it meant to be this way? Or is this a bug? What can be done about it?

In Project => Properties => C/C++ Build (tree) => Settings => Tool Settings (tab)
The compile’s Optimize for Debug (-Og) option was selected.
Place the function in their own section was checked.
Place the data in their own secions was not checked.

This is solved. The queue handle was set to NULL. It was never created. The calls are working now.

Hello

Did you mean this
configASSERT( uxQueueLength > ( UBaseType_t ) 0 );

if( uxItemSize == ( UBaseType_t ) 0 )
{
/* There is not going to be a queue storage area. */
xQueueSizeInBytes = ( size_t ) 0;
}


And how did you solve it please ?? I am in the same problem


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs