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


Compiler Documentation

The compiler appears to be rejecting this directive:

  1. pragma message( ” ... ” )


I know this is compiler specific and therefore it may not be implemented on other compilers than Microsoft’s. But I need to know what the equivalent of this is for the ARM Compiler for MCU that Ac6 uses. I have trouble finding this documentation. Where is documentation for available compiler directives for ARM Compiler for MCU?

Hi,

what does it mean “rejecting the pragma directive”

For example, with this source code...

int main(void)
{
 #pragma message "Fix it!!!"
	for(;;);
}


... the compiler output is

make all
'Building file: ../src/main.c'
'Invoking: MCU GCC Compiler' ...
../src/main.c:19:9: note: #pragma message: Fix it!!!
 #pragma message "Fix it!!!"
         ^
'Finished building: ../src/main.c'


Is it not what you expect?

Regards,
Stefano


What is the meaning of the caret symbol below the first letter of the “message” token? This caret looks to me to be an error indicator. The message token is not included as valid for #pragma in the “ARM Compiler toolchain Compiler Reference”:
http://infocenter.arm.com/help/topic/com.arm.doc.dui0491i/DUI0491I_arm_compiler_reference.pdfQuestion
which I found after starting this thread.

When I used “#pragma message ...” these did not appear in the output under the Console tab in the expected order. This is another indication to me that this is an error message, and not a message directive the compiler was executing.

I ended up doing what I needed to do with the #warn directive. These gave me the expected results and were useful in finding the source of the compiler errors I was seeking.


 

Newest Forum Posts

  1. reservation car service Seattle by Jamesprede, 2025-05-01 10:06
  2. Last day: drone bonus by Danielrug, 2025-04-19 16:55
  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. Insightful Perspectives on This Subject by davidsycle, 2025-03-04 05:45
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  9. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  10. Build a project in "release" mode by tang, 2025-02-20 10:36

Last-Modified Blogs