SIAX110(MC68332) with 16bit data bus

Routers, VOIP devices, etc.
Post Reply
namok
Junior Member
Posts: 1
Joined: Fri Jul 14, 2023 7:59 pm

SIAX110(MC68332) with 16bit data bus

Post by namok »

Hi
I'm working on SIAX110 numerical control.

cpu mc68332 with 16bit data bus

flash:
2x AM29F040B
512K x 8 bit
8 sector 64kbytes
Manufacturer ID - 01h
Device ID: - A4h

2x AM29F010B
128K x 8 bit
8 sector 16 Kbytes
Manufacturer ID - 01h
Device ID - 20h

ram:
2x k6x4008cif
512Kx8 bit

I created configuration for flash memory:

Code: Select all

		<flash>
			<id1>0x101</id1>
			<id2>0xA4A4</id2>
			<name>AM29F040B</name>
			<size>0x100000</size>
			<protocol>0</protocol>
			<block>
				<secnum>8</secnum>
				<secsize>0x20000</secsize>
			</block>
		</flash>

Code: Select all

		<flash>
			<id1>0x101</id1>
			<id2>0x2020</id2>
			<name>AM29F010B</name>
			<size>0x40000</size>
			<protocol>0</protocol>
			<block>
				<secnum>8</secnum>
				<secsize>0x8000</secsize>
			</block>
		</flash>
and target file:

Code: Select all

<Test>
	<Name>SIAX-110</Name>
	<Protocol>BDM</Protocol>
	<Endian>Big</Endian>
	<Speed>0x1</Speed>
	<Cat>Other</Cat>
	<sprogram>1</sprogram>
	<Memorys>
		<Memory>
			<Name>flash1</Name>
			<Type>1</Type>
			<Address>0x0</Address>
			<Size>0x100000</Size>
		</Memory>
 
       <Memory>
			<Name>Flash2</Name>
			<Type>1</Type>
			<Address>0xD00000</Address>
			<Size>0x40000</Size>
		</Memory>
        <Memory>
			<Name>ram</Name>
			<Type>0</Type>
			<Address>0x200000</Address>
			<Size>0x100000</Size>
		</Memory>

	</Memorys>
	<Inits>
        <Init><Address>0xFFFA48</Address><Value>0x7</Value><Bytes>2</Bytes></Init>
		<Init><Address>0xFFFA4A</Address><Value>0x7870</Value><Bytes>2</Bytes></Init>

        <Init><Address>0xFFFA4C</Address><Value>0x2007</Value><Bytes>2</Bytes></Init>
		<Init><Address>0xFFFA4E</Address><Value>0x7830</Value><Bytes>2</Bytes></Init>

		<Init><Address>0xFFFA58</Address><Value>0xD005</Value><Bytes>2</Bytes></Init>
		<Init><Address>0xFFFA5A</Address><Value>0x7870</Value><Bytes>2</Bytes></Init>
	</Inits>
</Test>
I can read flash and ram and verification is OK, I can write to ram.
Can I safely write flash with this configuration?
usbbdm
Junior Member
Posts: 8973
Joined: Mon Jul 18, 2005 9:33 pm

Re: SIAX110(MC68332) with 16bit data bus

Post by usbbdm »

Writing this flash need a little bit development work. The existing software does not support this type of flash as it is quite old and I do not have this type of flash to test.
namok
Junior Member
Posts: 1
Joined: Fri Jul 14, 2023 7:59 pm

Re: SIAX110(MC68332) with 16bit data bus

Post by namok »

I understood.
Tell me if this configuration is OK?
Flash memory is 8bit but to detect flash correctly I had to treat it as 16 bit. Is this OK(flash configuration)?
usbbdm
Junior Member
Posts: 8973
Joined: Mon Jul 18, 2005 9:33 pm

Re: SIAX110(MC68332) with 16bit data bus

Post by usbbdm »

For read it should be ok. But init sequence need some disassembly analyze.
namok
Junior Member
Posts: 1
Joined: Fri Jul 14, 2023 7:59 pm

Re: SIAX110(MC68332) with 16bit data bus

Post by namok »

I think that's what you're looking for this:

Code: Select all

0x00000000      ori.b   0x8c, -(a7)
0x00000004      ori.b   0x8, d0
0x00000008      movea.l 0x273e8c, a7
fcn.00000009 ();
0x00000009      moveq   0x0, d6
fcn.0000000a ();
0x0000000a      ori.b   0x8c, -(a7)
fcn.0000000b ();
0x0000000b      
fcn.0000000c ();
0x0000000c      move.w  a4, (a7)
fcn.0000000d ();
0x0000000d      or.b    -(a0), d6
fcn.0000000e ();
0x0000000e      movea.l 0x273f0c, a0
0x00000014      move    a0, usp
0x00000016      movea.l 0x26220e, a0
0x0000001c      invalid
0x0000001e      or.b    d1, d4
0x00000020      move.w  0xfffa00.l, d0
0x00000026      bclr.b  0xd, d0
0x0000002a      move.w  d0, 0xfffa00.l
0x00000030      move.b  0x44, 0xfffa21.l
0x00000038      move.w  0xfffa46.l, d0
0x0000003e      andi.w  0xfffc, d0
0x00000042      ori.w   0x1, d0
0x00000046      move.w  d0, 0xfffa46.l
0x0000004c      move.w  0x7, 0xfffa48.l
0x00000054      move.w  0x68b0, 0xfffa4a.l
0x0000005c      move.w  0x2007, 0xfffa4c.l
0x00000064      move.w  0x7830, 0xfffa4e.l
0x0000006c      move.w  0x1007, 0xfffa50.l
0x00000074      move.w  0x7830, 0xfffa52.l
0x0000007c      move.w  0xc007, 0xfffa54.l
0x00000084      move.w  0x68f0, 0xfffa56.l
0x0000008c      move.w  0xd007, 0xfffa58.l
0x00000094      move.w  0x68b0, 0xfffa5a.l
0x0000009c      move.w  0xe000, 0xfffa5c.l
0x000000a4      move.w  0x79f0, 0xfffa5e.l
0x000000ac      move.w  0xfc00, 0xfffa60.l
0x000000b4      move.w  0x4830, 0xfffa62.l
0x000000bc      move.w  0xfe00, 0xfffa68.l
0x000000c4      move.w  0x0, 0xfffa6a.l
0x000000cc      move.w  0xfffb, 0xfffa6c.l
0x000000d4      move.w  0x2801, 0xfffa6e.l
0x000000dc      move.w  0xa005, 0xfffa70.l
0x000000e4      move.w  0x7bf0, 0xfffa72.l
0x000000ec      move.w  0xff00, 0xfffa74.l
0x000000f4      move.w  0x0, 0xfffa76.l
0x000000fc      move.b  0xf7, 0xfffa17.l
0x00000104      move.b  0x8, 0xfffa15.l
0x0000010c      move.b  0x8, 0xfffa11.l
0x00000114      movea.l 0x240000, a0
I checked where the CS signals are connected:
AM29F040B - CSBOOT
AM29F010B - CS3
ram - CS0.
usbbdm
Junior Member
Posts: 8973
Joined: Mon Jul 18, 2005 9:33 pm

Re: SIAX110(MC68332) with 16bit data bus

Post by usbbdm »

No This is not what I need.
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests