How do you program a device in Modus Toolbox

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

cross mob
jcsb1994
Level 4
Level 4
First solution authored 50 replies posted 50 sign-ins

Hi,

I am trying to test my CY8CKIT-062-WiFi-BT devkit on modus toolbox. Since I know nothing about this software, I just created a new Modus Toolbox app from the examples on this board: emWin_TFT_FreeRTOS


1. I tried to build once and it failed and told me to run make getlibs so I ran this is the console and now build is successful.

2.  Afterwards, I tried programming the device, which is just plugged in via USB on my laptop, by typing make program , but I get this error:

==============================================================================
= Build complete =
==============================================================================

Calculating memory consumption: CY8C6247BZI-D54 GCC_ARM

----------------------------------------------------
| Section Name | Address | Size |
----------------------------------------------------
| .cy_m0p_image | 0x10000000 | 6452 |
| .text | 0x10002000 | 563276 |
| .ARM.exidx | 0x1008b84c | 8 |
| .copy.table | 0x1008b854 | 24 |
| .zero.table | 0x1008b86c | 8 |
| .data | 0x0800228c | 12844 |
| .cy_sharedmem | 0x080054b8 | 12 |
| .noinit | 0x080054c8 | 232 |
| .bss | 0x080055b0 | 41748 |
| .heap | 0x0800f8c8 | 225080 |
----------------------------------------------------

Total Internal Flash (Available) 1048576
Total Internal Flash (Utilized) 584372


Programming target device...
Open On-Chip Debugger 0.11.0+dev-4.4.0.2134 (2022-09-08-13:07)
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-flash algorithms 'CY8C6xxx_SMIF' for bank 'psoc6_smif0_cm0' (footprint 17032 bytes)
Info : CMSIS-flash: ELF path: ../flm/cypress/cat1a/CY8C6xxx_SMIF.FLM
Info : CMSIS-flash: Address range: 0x18000000-0x1FFFFFFF
Info : CMSIS-flash: Program page size: 0x00001000 bytes
Info : CMSIS-flash: Erase sector size: 0x00040000 bytes, unified
Warn : SFlash programming allowed for regions: USER, TOC, KEY
Error: unable to find a matching CMSIS-DAP device
Error: No Valid JTAG Interface Configured.
make[1]: *** [../mtb_shared/recipe-make-cat1a/release-v2.0.0/make/recipe/program_common.mk:64: qprogram_proj] Error 127
make: *** [../mtb_shared/core-make/release-v3.0.1/make/core/main.mk:376: secondstage_build] Error 2

 

Those are the ONLY things I have done on modus toolbox, its  a fresh install, so maybe something is missing? I just find it weird that I can't program an example application out of the box!

Thank you!

 

0 Likes
1 Solution
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @jcsb1994 :

Please check whether you connect USB to J10 or not.

The USB type-C connector (J10) is KitProg2 connector.

Detail information you can refer to the schematic of this kit.

After building project, you can launch program like below project_name Program(KitProg3_MiniProg4).h

SharedScreenshot.jpg

Best Regards,

Colin

View solution in original post

2 Replies
Qi_Colin
Moderator
Moderator
Moderator
50 likes received 100 solutions authored 5 questions asked

Hi @jcsb1994 :

Please check whether you connect USB to J10 or not.

The USB type-C connector (J10) is KitProg2 connector.

Detail information you can refer to the schematic of this kit.

After building project, you can launch program like below project_name Program(KitProg3_MiniProg4).h

SharedScreenshot.jpg

Best Regards,

Colin

Thank you, I didn't realize there were 2 USB ports. Reading through the Modus Toolbox Quick Start Guide actually helped me... But then ran into another problem, with the KitProg version being out of date. In that case, do not forget to put your dev kit in bootloader mode by unplugging it and pressing its MODE tact switch when plugging it back in. The LED will toggle at 1Hz. That is when you can use fw-loader to update your KitProg. Finally worked!

0 Likes