4 posts / 0 new
Last post
Bharath
Offline
Last seen:1 year 3 months ago
Joined:2016-04-14 07:03
J-Tag pins as GPIO

Hi,
在我们的产品,我们正在计划使用J-Tag别针WDIO and SWCLK as GPIO's. We are using an external SPI_flash memory to store code.
For this we need to disable the Debug mode. So if we do this, will we still be able to load the code to external SPI_flash memory via J-Tag?
Is this a good design to consider? Is there a better way to access these pins?

MT_dialog
Offline
Last seen:1 week 1 day ago
Staff
Joined:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

I suppose that you mean if you will be able to burn the flash with the Smart Snippets tool. If you use those pins it will be configured when the fw is allready downloaded into the sysram and your code starts to run, you will not be able to use the debugger while you program executes but you will be able to burn the flash via the 580 from Smart Snippets via JTAG. The problem will occur if you try re program the flash via JTAG while the program executes since Smart Snippets will try to connect via those pins and you will be using them by your fw. You will be able to issue a reset but the timing will be very strict since you will have to catch the bootloader when the JTAG is available before the fw manages to be loaded by your spi flash. Once you ve hit the reset button the bootlaoder will run again and will try to boot from the SPI at the beggining and then via JTAG, so as you understand it will be a bit difficult. Perhaps you will have to consider programming the flash via UART.

Thanks MT_dialog

Bharath
Offline
Last seen:1 year 3 months ago
Joined:2016-04-14 07:03
Hi MT_dialog,

Hi MT_dialog,
We are planning to use SUOTA in the project. Will that work? How reliable is SUOTA? Can I enable and disable debugging for a android ? How to do this?

Thank you
Bharath

MT_dialog
Offline
Last seen:1 week 1 day ago
Staff
Joined:2015-06-08 11:34
Hi Bharath,

Hi Bharath,

The SWD pins can be used as GPIO's, what the SUOTA profile has to do with this ?

What do you mean how reliable is SUOTA ? you will provide an image and as long as you are connected with the central you will able to update the fw on your flash, the newly downloaded fw will run on your device upon reset, if a problem occurs and the download fails for any reason the device will still run with the previous fw.

Can you be more specific on the last question, what is that you would like to do exactly?

Thanks MT_dialog