Seems that everything is almost ready to setup semihosting I/Os for powerpc;
except maybe a C IO library implementation relying on DNH (debug notify halt) instructions.
Is there any project to have this up & running ?
... Especially for the pemicro multilink universal fx probe I'm using now ?
Hi Yves,
Indeed semihosting is now supported in S32DS for Power v1.2.
Just create a new project and select "Debugger Console" -> I/O Support:
Now add some I/O e.g. printf() into your project:
The debug configurations created by the project wizard should have semihosting option already enabled so you can just press debug button:
When the debug session is established switch the console to "Semihosting Console" and check the output. You should observe printf() outputs within the console:
This feature is implemented by using system call "se_sc" instruction. It's supported by both NewLib/EWL libs.
This instruction is executed by low level printf/scanf I/O functions: sys_read* / sys_write*
"<S32DS_Power_v1.2>\S32DS\e200_ewl2\EWL_Runtime\src\pa\semihosted_console_io.c"
e.g.:
Pemicro recognizes several parameters stored in registers R0 - R5 and transfers the data to/from MCU memory and reads/displays them on semihosting console.
There is a default exception handler IVOR8 to to recognize semihosting request:
Hope it helps.
Stan