cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

NiMc_1688136
Contributor II

Can someone give me a run down on how to program the CYW43907 populated on a custom board? We will be sending out boards for fab shortly and want to verify that we are not missing anything.

We will have the JTAG/SWO port brought out to a header and I plan on using a JLINK. Does the jlink program internal SRAM in the chip or is it programming the external flash? If it programs the internal SRAM, how do I upload a image to the external flash?

I have looked at other resources like Downloading and debugging CYW43907 using Jlink Segger but it is not clear if it is for development (SRAM) or writing to flash.

To begin with I will need to be able to debug apps and program prototype boards based on the custom PCBA. This will eventually lead to figuring out how to program the custom PCBA in manufacturing.

1 Solution
WinstonF_61
Moderator
Moderator

The code you download via JTAG is directly programmed into the External SFlash by default. You will not have to do anything special to load the code into SFlash. You can still use the Debug document you linked above. 

Regards
Winston

View solution in original post

6 Replies
WinstonF_61
Moderator
Moderator

The code you download via JTAG is directly programmed into the External SFlash by default. You will not have to do anything special to load the code into SFlash. You can still use the Debug document you linked above. 

Regards
Winston

View solution in original post

NiMc_1688136
Contributor II

Thanks. This is good to know.

0 Likes
NiMc_1688136
Contributor II

I am following the guide and after I switch the driver with Zadig, I try to build my project with -debug jtag=jlink download added to the build command, I am getting the openocd-all_brcm-libftdi.exe has stopped working message.

console window output

make.exe[1]: *** [download_bootloader] Error -1073741819

WICED/platform/MCU/BCM4390x/BCM94390x_targets.mk:294: recipe for target 'download_bootloader' failed

make: *** [main_app] Error 2

Makefile:351: recipe for target 'main_app' failed

Build string

test.CYW943907AEVAL1F-FreeRTOS-LwIP-debug JTAG=jlink download

JTAG: JLink-Ultra

0 Likes
NiMc_1688136
Contributor II

I know the CYW43907 supports SWD but will WICED studio download data over SWD? Our custom board did not connect all of the JTAG pins to a programming header.

0 Likes
NiMc_1688136
Contributor II

I wired my Segger J-Link to my CYW943907AEVAL1F to remove any conerns over assembly errors. I still get the same error while trying to program the board with test,CYW943907AEVAL1F-FreeRTOS-LwIP-debug JTAG=jlink download

pastedImage_0.png

Here is the contents of openocd_log.txt

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_gates_jtag trst_push_pull srst_push_pull connect_deassert_srst

trst_and_srst separate srst_nogate trst_push_pull srst_push_pull 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

Info : J-Link Ultra V4 compiled Nov 28 2017 11:47:50

Info : Hardware version: 4.00

Info : VTarget = 3.300 V

Info : clock speed 100 kHz

Error: JTAG scan chain interrogation failed: all ones

Error: Check JTAG interface, timings, target power, etc.

Error: Trying to use configured scan chain anyway...

Error: BCM43909.cpu: IR capture error; saw 0x0f not 0x01

Warn : Bypassing JTAG setup events due to errors

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Could not initialize the debug port

force hard breakpoints

Error: JTAG scan chain interrogation failed: all ones

Error: Check JTAG interface, timings, target power, etc.

Error: Trying to use configured scan chain anyway...

Error: BCM43909.cpu: IR capture error; saw 0x0f not 0x01

Warn : Bypassing JTAG setup events due to errors

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Invalid ACK (7) in DAP response

Error: JTAG-DP STICKY ERROR

Error: Could not initialize the debug port

0 Likes
NiMc_1688136
Contributor II

problem solved.

Confusion between tRST and Reset_N.