SAMA5D36 SAM-BA Monitor responding CAN on dbgu

For SAMA5D2 Xplained, SAMA5D3 Xplained and SAMA5D4 Xplained

Moderator: nferre

er_pawan82@rediffmail.com
Posts: 7
Joined: Fri Aug 05, 2016 1:55 pm

SAMA5D36 SAM-BA Monitor responding CAN on dbgu

Fri Aug 05, 2016 2:03 pm

While sending bin file to SAMA5D36 using SAM-BA on DBGU i am getting 0x18. See below log
[05/08/2016 12:41:45] Written data (COM61)
80 80 23 €€#
[05/08/2016 12:41:46] - Close port COM61

[05/08/2016 12:41:46] - Open port COM61 (C:\Program Files (x86)\Atmel\sam-ba_2.16\sam-ba.exe)

[05/08/2016 12:41:46] Written data (COM61)
4e 23 N#
[05/08/2016 12:41:46] Read data (COM61)
0a 0d ..
[05/08/2016 12:41:46] Written data (COM61)
77 46 46 46 46 45 45 34 30 2c 34 23 wFFFFEE40,4#
[05/08/2016 12:41:46] Read data (COM61)
c2 07 5c 8a Â.\Š
[05/08/2016 12:41:50] Written data (COM61)
53 30 30 33 30 38 30 30 30 2c 30 30 30 30 31 38 S00308000,000018
34 30 23 40#
[05/08/2016 12:41:50] Read data (COM61)
43 C
[05/08/2016 12:41:50] Written data (COM61)
01 01 fe 20 00 00 ea 00 00 00 00 00 00 00 00 00 ..þ ..ê.........
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
00 00 00 9a a6 ...š¦
[05/08/2016 12:41:50] Read data (COM61)
18 .
:shock:

i should get ACK instead of CAN, what is the reason for that????
blue_z
Location: USA
Posts: 1560
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D36 SAM-BA Monitor responding CAN on dbgu

Mon Aug 08, 2016 9:24 pm

er_pawan82@rediffmail.com wrote:While sending bin file to SAMA5D36 using SAM-BA on DBGU i am getting 0x18. See below log
Log of what?
You haven't clearly described what you're doing.

The last time I tried to use the SAM-BA utility with a SAMA5D36 through DBGU, I could not make a connection.
Atmel Tech Support responded to my long and detailed query with a simple reply that a DBGU connection doesn't work because of Errata 59.1.1 Boot ROM: Xmodem is not working.

Regards
er_pawan82@rediffmail.com
Posts: 7
Joined: Fri Aug 05, 2016 1:55 pm

Re: SAMA5D36 SAM-BA Monitor responding CAN on dbgu

Tue Aug 09, 2016 6:15 am

Thanks for reply...

Log of what?
Actually i have custom broad with SAMA5D36.
I was trying to communicate with this board on DBGU port using SAM-BA 2.16.
I observed that the SAM-BA was not responding because of unknown reason.
When i tried to sniff the DBGU port then i found that the processor was not responding ACK on XMODEM protocol.
However it was responding with some other commands as we can see in the log.


I found from the SAMA5D3 Series datasheet that:
59.1.1 Boot ROM: Xmodem is not working
Due to a bug in the ROM code, Xmodem is not working.
Problem Fix/Workaround
None.

That means i cannot communicate with that board?
blue_z
Location: USA
Posts: 1560
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D36 SAM-BA Monitor responding CAN on dbgu

Wed Aug 10, 2016 12:36 am

er_pawan82@rediffmail.com wrote:That means i cannot communicate with that board?
No, that only means that the S and R SAM-BA Monitor commands do not work on the DBGU port.
There's a chance that this works on the USB Device port, since the SAM-BA utility does connect okay that way.

Before when Atmel SoCs had no BSC register, using SAM-BA Monitor & utility was not practical for production boards that have no CS disconnects.

Regards
er_pawan82@rediffmail.com
Posts: 7
Joined: Fri Aug 05, 2016 1:55 pm

Re: SAMA5D36 SAM-BA Monitor responding CAN on dbgu

Wed Aug 10, 2016 6:12 am

I have tapped HHSDMA,HHSDPA connection from my custom board and now board is able to communicate on USB with SAM-BA GUI.
Even i am able to load the applets and verify the DDRAM :D

(sam-ba_2.16) 40 % Execute Script File ...
-I- Loading applet applet-extram-sama5d3x.bin at address 0x308000
-I- Memory Size : 0x20000000 bytes
-I- Buffer address : 0x3093E0
-I- Buffer size: 0x0 bytes
-I- Applet initialization done
-I- External RAM initialized
RAM::SendFile D:Write.bin at address 0x20000000
RAM::ReceiveFile D:Read.bin : 0x10 bytes from address 0x20000000
-I- -----------Pass--------------

However, i am unable to Initialise the dataflash... :(
(sam-ba_2.16) 40 % DATAFLASH::Init 0
-I- DATAFLASH::Init 0 (trace level : 4)
-I- Loading applet applet-dataflash-sama5d3x.bin at address 0x20000000
-E- Script error: Error Initializing DataFlash Applet (Can't detect known device)

So currently figuring it out what could be the issue...
blue_z
Location: USA
Posts: 1560
Joined: Thu Apr 19, 2007 10:15 pm

Re: SAMA5D36 SAM-BA Monitor responding CAN on dbgu

Thu Aug 11, 2016 12:57 am

If you think DDRAM is functional, then build and load/execute U-Boot for your board. U-Boot is better suited to HW testing than using SAM-BA.

Regards
er_pawan82@rediffmail.com
Posts: 7
Joined: Fri Aug 05, 2016 1:55 pm

Re: SAMA5D36 SAM-BA Monitor responding CAN on dbgu

Wed Aug 31, 2016 7:15 am

Ok, Thanks a lot...

Return to “SAMA5 Xplained”

Who is online

Users browsing this forum: No registered users and 2 guests