Unable to download code on CYW943907AEVAL1F Eval Board using USB connection with WICED 6.2

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

cross mob
ViAs_2307976
Level 2
Level 2
5 replies posted Welcome! First question asked

Hi,

I am trying to download code (e.g. snip.scan-CYW943907AEVAL1F download run) on CYW943907AEVAL1F eval board connected through USB but it fails during 'build apps lookup table'.

This used to work with earlier WICED versions 5.x but now it fails with latest WICED 6.2.

The user manual for CYW943907AEVAL1F eval board (https://www.cypress.com/file/370526/download ) says the device should comes up as :

1. The WICED USB Serial Port is listed under Ports (COM & LPT) as shown in Figure 3-3. b.

2. The WICED USB JTAG Port is listed under WICED USB JTAG Devices as shown in Figure 3-3.

It used to come up with earlier versions like this. But with new version, it shows up for #2 as 'libusb-win32 devices' instead of 'WICED USB JTAG devices'.

I tried re-installing device driver but no luck, and shows up as same.

Please help on how to correct this error to be able to flash over USB OR it will work only with previous versions only.

Thanks.

-Vikas.

Console:

Building apps lookup table

WICED/platform/MCU/BCM4390x/BCM94390x_targets.mk:372: recipe for target 'download_dct' failed

make.exe[1]: *** [download_dct] Error 1

Makefile:351: recipe for target 'main_app' failed

make: *** [main_app] Error 2

OpenOCD log:

Open On-Chip Debugger 0.10.0+dev-00227-g0d15c62 (2018-03-27-15:19)

Licensed under GNU GPL v2

For bug reports, read

http://openocd.org/doc/doxygen/bugs.html

trst_and_srst separate srst_nogate trst_push_pull srst_open_drain connect_assert_srst

trst_and_srst separate srst_nogate trst_push_pull srst_open_drain connect_assert_srst

adapter speed: 100 kHz

adapter_nsrst_delay: 100

Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

jtag_ntrst_delay: 100

post_init_psoc6_setup

Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED

Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED

Info : clock speed 100 kHz

Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x5)

Info : BCM43909.cpu: hardware has 4 breakpoints, 4 watchpoints

in procedure 'sflash_write_file'

in procedure 'sflash_init' called at file "apps/waf/sflash_write/sflash_write.tcl", line 261

in procedure 'init' called at file "apps/waf/sflash_write/sflash_write.tcl", line 155

in procedure 'ocd_bouncer'

force hard breakpoints

Info : JTAG tap: BCM43909.cpu tap/device found: 0x5ba00477 (mfg: 0x23b (ARM Ltd.), part: 0xba00, ver: 0x5)

Error: Error BCM43909.cpu: Reset was not successfully asserted

in procedure 'sflash_write_file'

in procedure 'sflash_init' called at file "apps/waf/sflash_write/sflash_write.tcl", line 261

in procedure 'post_init_43909_setup' called at file "apps/waf/sflash_write/sflash_write.tcl", line 160

in procedure 'reset' called at file "apps/waf/sflash_write/sflash_write.tcl", line 569

in procedure 'ocd_bouncer'

0 Likes
1 Solution

Raktim Roy wrote:

The compilation passes in my system; not sure why it fails for you. I am adding the BSP and gpio_button library here for you to re-check.

This is because your sdk is different from the public sdk-6.2.1.

gpio_button_t does not has the member named 'config'.

And below changes just shows current public sdk-6.2.1 has bug in gpio_button.

     if ( button->trigger == 0 )

     {

-        trigger = ( ( button->polarity == WICED_ACTIVE_LOW ) ? IRQ_TRIGGER_RISING_EDGE : IRQ_TRIGGER_FALLING_EDGE );

+        /* if trigger has not been defined for the platform, choose based on button polarity */

+        trigger = ( ( button->polarity == WICED_ACTIVE_LOW ) ? IRQ_TRIGGER_FALLING_EDGE : IRQ_TRIGGER_RISING_EDGE );

View solution in original post

13 Replies