Not able to see the console log

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

cross mob
Raghav3107
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hello developers,

I m newbie to cypress. I m trying to run the hello world program in cypress PSOC 6 MCU.  Hello world build and flash successfully and i can see the output in board ( led is blinking ) but  I m not  able to see the console log.

Is there any extra command to check ? and can you give reference of any document from where I can start from starting( setup and all.)

Right now , i m following the steps from https://swdocs.cypress.com/html/psoc6-with-anycloud/en/latest/Modustoolbox/Installing_ModusToolbox.h...

Board: PSoC 6 ( CY8CPROTO -062-4342W )

OS: Linux

ModusToolBox version: 2.3.0

 

I

 

0 Likes
1 Solution
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Raghav3107

The ModusToolbox Installation Guide, Eclipse IDE for ModusToolbox Quick Start Guide and ModusToolbox User Guide in the Getting Started with ModusToolbox section that you have shared should help you in getting accommodated with ModusToolbox. 

Additionally, this training session should also be able to help -  Session 1: Introduction to ModusToolbox 2.x

Regarding your query on the console log, can you please let me know if you are able to see the console as shown - 

Rakshith_0-1629127145475.png

Thanks and Regards,
Rakshith M B

View solution in original post

0 Likes
6 Replies
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Raghav3107

The ModusToolbox Installation Guide, Eclipse IDE for ModusToolbox Quick Start Guide and ModusToolbox User Guide in the Getting Started with ModusToolbox section that you have shared should help you in getting accommodated with ModusToolbox. 

Additionally, this training session should also be able to help -  Session 1: Introduction to ModusToolbox 2.x

Regarding your query on the console log, can you please let me know if you are able to see the console as shown - 

Rakshith_0-1629127145475.png

Thanks and Regards,
Rakshith M B
0 Likes

Hello @Rakshith  Sorry for the late reply.

I  m seeing the  log which you mention in comment. 

But the output of the program I m not able to see. 

Is there any other I have to  use to see the output of after flashing the program it will automatically show me the output?

 

Thanks for the reply.

0 Likes
Raghav3107
Level 1
Level 1
5 sign-ins First reply posted First question asked

Hello @Rakshith ,

 Can you give me any input on this issue, I configure all this setting as mention in modustoolbox user guide.

I m running the hello word program, and I m able to build and flash the program but, i m not seeing any console output on terminal

 

horsemann@Raghav:~/Desktop/WorkSpace/Cypress/Cypress_Eclipse/Hello_World$ make program TARGET=CY8CPROTO-062-4343W TOOLCHAIN=GCC_ARM
Tools Directory: /home/horsemann/Desktop/WorkSpace/Cypress/Cypress_Toolchain/ModusToolbox/tools_2.3
CY8CPROTO-062-4343W.mk: ./libs/TARGET_CY8CPROTO-062-4343W/CY8CPROTO-062-4343W.mk
INFO: The design file was last saved with a different version of the tools than was used to perform code generation. Last saved with: Tools Package 2.2.0.2790. Current: Tools Package 2.3.0.4276 (/home/horsemann/Desktop/WorkSpace/Cypress/Cypress_Toolchain/ModusToolbox/tools_2.3)

Prebuild operations complete
Commencing build operations...

Tools Directory: /home/horsemann/Desktop/WorkSpace/Cypress/Cypress_Toolchain/ModusToolbox/tools_2.3
CY8CPROTO-062-4343W.mk: ./libs/TARGET_CY8CPROTO-062-4343W/CY8CPROTO-062-4343W.mk

Initializing build: mtb-example-psoc6-hello-world Debug CY8CPROTO-062-4343W GCC_ARM

Auto-discovery in progress...
-> Found 191 .c file(s)
-> Found 46 .S file(s)
-> Found 22 .s file(s)
-> Found 0 .cpp file(s)
-> Found 0 .o file(s)
-> Found 6 .a file(s)
-> Found 499 .h file(s)
-> Found 0 .hpp file(s)
-> Found 0 resource file(s)
Applying filters...
Auto-discovery complete

Constructing build rules...
Build rules construction complete

==============================================================================
= Building application =
==============================================================================
Generating compilation database file...
-> ./build/compile_commands.json
Compilation database file generation complete
Building 176 file(s)
    Compiling app file cycfg_capsense.c
    Linking output file mtb-example-psoc6-hello-world.elf
==============================================================================
= Build complete =
==============================================================================

Calculating memory consumption: CY8C624ABZI-S2D44 GCC_ARM -Og

   ---------------------------------------------------- 
  | Section Name         |  Address      |  Size       | 
   ---------------------------------------------------- 
  | .cy_m0p_image        |  0x10000000   |  6224       | 
  | .text                |  0x10002000   |  46116      | 
  | .ARM.exidx           |  0x1000d424   |  8          | 
  | .copy.table          |  0x1000d42c   |  24         | 
  | .zero.table          |  0x1000d444   |  8          | 
  | .data                |  0x080022e0   |  1728       | 
  | .cy_sharedmem        |  0x080029a0   |  8          | 
  | .noinit              |  0x080029a8   |  148        | 
  | .bss                 |  0x08002a3c   |  1028       | 
  | .heap                |  0x08002e40   |  1030592    | 
   ---------------------------------------------------- 

  Total Internal Flash (Available)          2097152    
  Total Internal Flash (Utilized)           56092      

  Total Internal SRAM (Available)           1046528    
  Total Internal SRAM (Utilized with heap)  1033504    


Programming target device... 
Open On-Chip Debugger 0.10.0+dev-4.2.0.1430 (2021-03-05-16:30)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "swd". To override use 'transport select <transport>'.
adapter speed: 2000 kHz
adapter srst delay: 25
adapter srst pulse_width: 25
** Auto-acquire enabled, use "set ENABLE_ACQUIRE 0" to disable
cortex_m reset_config sysresetreq
cortex_m reset_config sysresetreq
Info : Using CMSIS loader 'CY8C6xxA_SMIF' for bank 'psoc6_smif0_cm0' (footprint 11108 bytes)
Warn : SFlash programming allowed for regions: USER, TOC, KEY
Info : CMSIS-DAP: SWD  Supported
Info : CMSIS-DAP: FW Version = 2.0.0
Info : CMSIS-DAP: Interface Initialised (SWD)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : KitProg3: FW version: 2.21.1005
Info : KitProg3: Pipelined transfers enabled
Info : VTarget = 3.278 V
Info : kitprog3: acquiring the device (mode: reset)...
Info : clock speed 2000 kHz
Info : SWD DPIDR 0x6ba02477
Info : psoc6.cpu.cm0: hardware has 4 breakpoints, 2 watchpoints
***************************************
** Silicon: 0xE453, Family: 0x102, Rev.: 0x12 (A1)
** Detected Device: CY8C624ABZI-S2D44
** Detected Main Flash size, kb: 2048
** Flash Boot version: 3.1.0.378
** SFlash version: 292144
** Chip Protection: NORMAL
***************************************
Info : psoc6.cpu.cm4: hardware has 6 breakpoints, 4 watchpoints
Info : starting gdb server for psoc6.cpu.cm0 on 3333
Info : Listening on port 3333 for gdb connections
Info : starting gdb server for psoc6.cpu.cm4 on 3334
Info : Listening on port 3334 for gdb connections
Info : SWD DPIDR 0x6ba02477
Info : kitprog3: acquiring the device (mode: reset)...
psoc6.cpu.cm0 halted due to debug-request, current mode: Thread 
xPSR: 0x41000000 pc: 0x00000190 msp: 0x080ff800
** Device acquired successfully
** psoc6.cpu.cm4: Ran after reset and before halt...
psoc6.cpu.cm4 halted due to debug-request, current mode: Thread 
xPSR: 0x01000000 pc: 0x0000012a msp: 0x080ff800
** Programming Started **
auto erase enabled
Info : Flash write discontinued at 0x10001850, next section at 0x10002000
Info : Padding image section 0 at 0x10001850 with 432 bytes (bank write end alignment)
[100%] [################################] [ Erasing     ]
[100%] [################################] [ Programming ]
Info : Padding image section 1 at 0x1000db14 with 236 bytes (bank write end alignment)
[100%] [################################] [ Erasing     ]
[100%] [################################] [ Programming ]
wrote 54784 bytes from file /home/horsemann/Desktop/WorkSpace/Cypress/Cypress_Eclipse/Hello_World/build/CY8CPROTO-062-4343W/Debug/mtb-example-psoc6-hello-world.hex in 1.819128s (29.410 KiB/s)
** Programming Finished **
** Verify Started **
verified 54116 bytes in 0.122856s (430.159 KiB/s)
** Verified OK **
** Resetting Target **
Info : SWD DPIDR 0x6ba02477
shutdown command invoked
Info : psoc6.dap: powering down debug domain...
  
horsemann@Raghav:~/Desktop/WorkSpace/Cypress/Cypress_Eclipse/Hello_World$ 

 

 

Expected output:

I was expecting this printf output on terminal. Is there any other command to see the output on console.

My led is blinking on board.

 

printf("\x1b[2J\x1b[;H");

printf("****************** "
"PSoC 6 MCU: Hello World! Example "
"****************** \r\n\n");
printf("MY name is Hello world \n");
printf("Hello World!!!\r\n\n");

printf("For more PSoC 6 MCU projects, "
"visit our code examples repositories:\r\n\n");

printf("https://github.com/cypresssemiconductorco/"
"Code-Examples-for-ModusToolbox-Software\r\n\n");

 

0 Likes
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Raghav3107

ModusToolbox is not packaged with a serial terminal at the moment. You will have to use one of the external serial terminals like Tera Term to view the UART logs.  

We have notified the internal team regarding this and we should see serial terminal integrated with ModusToolbox in future releases.

Hope it helps,

Thanks and Regards,
Rakshith M B
0 Likes

Thanks @Rakshith 

It will better if toolbox have the integrated serial terminal also release for (Linux).

Also, update this on document

 

 

ModusToolbox is not packaged with a serial terminal at the moment. You will have to use one of the external serial terminals like Tera Term to view the UART logs. 

 

 

 

Is there any session where cypress explain the how to flash from vscode?

And how I configure the baud rate  to see the serial monitor?

I used the gtkterm for the serial monitoring. There I m able to see the hello world output at 115200 baud rate but when i was testing the capsense example with freertos there I added the printf function, but i m not able to see the output.

 

Also, can tell me when will cypress the next release of the toolbox?

Thank for the reply.

0 Likes
Rakshith
Moderator
Moderator
Moderator
250 likes received 1000 replies posted 750 replies posted

Hi @Raghav3107

Yes, I agree that it would be convenient if a serial terminal is integrated with ModusToolbox. 

The readme of each code example that requires a serial terminal should contain this information with the link - 

Rakshith_0-1630655529994.png

If in case you find any code example that does not have this information, please let me know and I will initiate an internal ticket to get it fixed.

Is there any session where cypress explain the how to flash from vscode?

Section 7.3 Export to VS Code in the ModusToolbox User Guide should be able to help. You will also find the Program option in the dropdown as shown - 

Rakshith_1-1630655770634.png

Also, can tell me when will cypress the next release of the toolbox?

The next release of ModusToolbox is expected to be mid-next quarter.

Hope this helps,

Thanks and Regards,
Rakshith M B
0 Likes