profiling in psoc creator?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

hi,

   

any document about how to profile codes in psoc creator?

   

i found the arm-none-eabi-gprof.exe in the psoc import and wonder how it works?

   

tried to add -pg in the compiler and linker but get error messages -ffuction-sections disable; make profiling impossible.

   

can i execute arm-none-eabi-gprof.exe directly under cmd terminal at PC? i tried but no success.

   

thanks

0 Likes
2 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

AFAIK there is no profiling support available. Remember, there is no operating system environment avilable on the PSOC. So even when you could instrument your application using GCC, where shnould the profiling data go? There is no file system or something like that.

0 Likes
Anonymous
Not applicable

This article explains how to profile ARM Cortex-M based microcontrollers:

Tutorial: Using GNU Profiling (gprof) with ARM Cortex-M | MCU on Eclipse

I have following issues with PSoC creator:

1) Inability to apply compiler options to selected files

2) No support for semihosting: How to use semi hosting in POSC?

I think I may have to copy all the generated code to an eclipse project to get this done.

Please let me know if better options exist.

Thanks,

Aditya

0 Likes