5 posts / 0 new
Last post
jinxiangwzh
Offline
Last seen: 1 year 7 months ago
Joined: 2016-05-17 04:51
problem for firmware download

My design as the below
MCU-ALPS UGMZ2AA
Flash - W25X20CL
P0.0 - SCK
P0_3 - SPI CS
P0_5 - MOSI
P0_6 - MISO

I select P1_0 as TX P1_1 as RX.

Now I find it's sames can't download firmware.Can I fly line the P0.0(it connect Flash SCK pin now) as uart
and down firmware through uart (P0.0,P0_1,57600Bd)?
or if there have any other methods to solve this problem.

attached schematic

Attachment: 
Device: 
PM_Dialog
Offline
Last seen: 9 hours 9 min ago
Staff
Joined: 2018-02-08 11:03
Hi jinxiangwzh,

Hi jinxiangwzh,

 

According to the AN-B-001 document, if you select P1_0 as T X and P1_1 as RX, this is an invalid configuration, so you are not able to boot from default rom.  With this configuration you should use a secondary bootloader. Please check the AN-B-001 document in which is described how to boot from serial interfaces. You can download it from the link below:

https://support.dialog-semiconductor.com/resource/b-001-da14580-booting-...

In order to boot from UART you can select Pin 0_ 0 as TX and Pin 0_1 as RX (step 3 of the Table 1: Pin assignment and booting sequence from external devices). The Pin 0_ 0 which is connected at the same to SCK doesn’t affect the booting procedure. For the SPI flash programming, we strongly suggest you to use JTAG/JLINK. If you want to download code from UART and to programming the SPI flash this is quit tricky, because you have activity to the TX and SCk pins at the same time (both connected to Pin 0_ 0). So, for this reason we suggest you to use the JTAG/JLINK.

Could you please explain what exactly want to do into your implementation?? Do you want to boot from uart just to check the image or you want to boot from uart and write the SPIflash?

 

Thanks, PM_Dialog

jinxiangwzh
Offline
Last seen: 1 year 7 months ago
Joined: 2016-05-17 04:51
At the beginning of design,I

At the beginning of design,I want to download firmware to SPI flash via JTAG/JLINK.But now somebody tell me,the JTAG only can download to RAM,can't download to FALSH.
So I want to ask you,if there have any remedial measure.
Let me summarize what you said:the schematic design is ok,it can download firmware to flash via JTAG?

PM_Dialog
Offline
Last seen: 9 hours 9 min ago
Staff
Joined: 2018-02-08 11:03
Hi jinxiangwzh,

Hi jinxiangwzh,

Yes, you can burn your firmware to SPI flash via JTAG/JLINK interface, there is an option for that when opening the Smart Snippets Toolbox. But with your schematic, you will not able to boot from UART, because you are using invalid UART GPIOs. In order to boot from UART, you should re-design you schematic and change the UART GPIOs, as referred into AN-B-001 document.

Thanks, PM_Dialog

jinxiangwzh
Offline
Last seen: 1 year 7 months ago
Joined: 2016-05-17 04:51
Thanks for your reply

Thanks for your reply
I will change the schematic in next version.This version can download via JTAG/JLINK is ok.