Reply by akkisan9999 August 17, 20092009-08-17
Thank you.
I guess you missed my post about a little success, previously ;)

--- In A..., Microbit_Ubuntu wrote:
>
> I mainly use the Linux sam-ba_cdc version (2.8) and the directory
> /applets/isp-applets has file build_applets.bat and a
> perlscriptbuild.pl.
>
> Is this what you needed ?

Yes, this perl file is missing in version 2.9.
It has a complete different structure.

> What I don't understand is that I thought you could simply
> (re)configure SAM-BA with an
> environment file - why would you still need to compile ?

My RAM has 8 COLs and 11 ROWs.
I was in need to change the initialization, this can not be done
via any tcl script:

WRITE(AT91C_BASE_SDRAMC, SDRAMC_CR, AT91C_SDRAMC_NC_8 // 8 cols
| AT91C_SDRAMC_NR_11 // 11 rows
| AT91C_SDRAMC_CAS_2
| AT91C_SDRAMC_NB_4_BANKS
| sdrc_dbw
| AT91C_SDRAMC_TWR_2
| AT91C_SDRAMC_TRC_7
| AT91C_SDRAMC_TRP_3
| AT91C_SDRAMC_TRCD_2
| AT91C_SDRAMC_TRAS_5
| AT91C_SDRAMC_TXSR_8);
Well, in the meantime, for whatever reason, uploading stopped
working at all...

AS
Reply by Microbit_Ubuntu August 17, 20092009-08-17
Hi,

On Mon, 2009-08-17 at 10:47 +0000, akkisan9999 wrote:
> Hi all,
>
> nice to see there's a SAM group around, here.
> May be someone can help me on this one...
>
> I could get my hand on some custom SAM9260 boards, equipped with
> MT48LC2M32B2 SDRAM.
>
> I already managed to add a working USB connection (the board was
> not built for that) and make sam-ba work "a little"
> (I used the AT91SAM9260-EK settings).
>
> Obviously, I only have access to the internal SRAM, all other
> peripherals are different.
>
> Because sam-ba applets rely on the SDRAM, I need to change
> the SDRAM access first.
> I have a course guess about what I need to change in the
> source code to make it work.
>
> But, where is the complete source code for sam-ba?
> According to the readme, there should be a makefile as well
> as a perl script for building.
>
> Non of my isp/sam-ba version contains one of those...
> I googled up and down, I did not manage to find anything useful.
>
> Does somebody know where to look further?
> Thanks in advance,
> AS
>
Reply by akkisan9999 August 17, 20092009-08-17
--- In A..., Microbit_Ubuntu wrote:
> > *SNIP*
> > Non of my isp/sam-ba version contains one of those...
> > I googled up and down, I did not manage to find anything useful.
> > I had a look again while I was about to flash to my SAM9 board.
> The package indeed has full source under dir /applets/at91lib.
> *SNIP*

Oh yes I already saw this.
But running make always resulted in "nothing to do" or
"no rule to make target".

Sam-ba v2.8, which unfortunately did not the job for me,
had this little perl script. Sam-ba v2.9 comes without.
Mixing 2.8 and 2.9 didn't work either...

After hours and deeper looks into the makefiles, I found out
how to do it.

Inside the "applets/isp-project" dirs,
e.g. "extram/":

make CHIP=at91sam9260 BOARD=at91sam9260-ek \
MEMORY=sdram_samb DYN_TRACES=1 \
INST_PREFIX=$ARGV[0] sdram

will do the job.
Compiling all modules at once is more like a
employment-creation measure 8)

"extram", "sdram", "sdram_samb", will be different
in every single dir...

Oh my, who invented this? How should a stupid hardware
developer, like me, figure this out? ;-)
cheers
AS
Reply by Microbit_Ubuntu August 17, 20092009-08-17
Hi again :-)

On Mon, 2009-08-17 at 10:47 +0000, akkisan9999 wrote:
> Hi all,
>
> nice to see there's a SAM group around, here.
> May be someone can help me on this one...
>
> I could get my hand on some custom SAM9260 boards, equipped with
> MT48LC2M32B2 SDRAM.
>
> I already managed to add a working USB connection (the board was
> not built for that) and make sam-ba work "a little"
> (I used the AT91SAM9260-EK settings).
>
> Obviously, I only have access to the internal SRAM, all other
> peripherals are different.
>
> Because sam-ba applets rely on the SDRAM, I need to change
> the SDRAM access first.
> I have a course guess about what I need to change in the
> source code to make it work.
>
> But, where is the complete source code for sam-ba?
> According to the readme, there should be a makefile as well
> as a perl script for building.
>
> Non of my isp/sam-ba version contains one of those...
> I googled up and down, I did not manage to find anything useful.
>
> Does somebody know where to look further?
> Thanks in advance,
> AS
>
Reply by akkisan9999 August 17, 20092009-08-17
Hi all,

nice to see there's a SAM group around, here.
May be someone can help me on this one...

I could get my hand on some custom SAM9260 boards, equipped with
MT48LC2M32B2 SDRAM.

I already managed to add a working USB connection (the board was
not built for that) and make sam-ba work "a little"
(I used the AT91SAM9260-EK settings).

Obviously, I only have access to the internal SRAM, all other
peripherals are different.

Because sam-ba applets rely on the SDRAM, I need to change
the SDRAM access first.
I have a course guess about what I need to change in the
source code to make it work.

But, where is the complete source code for sam-ba?
According to the readme, there should be a makefile as well
as a perl script for building.

Non of my isp/sam-ba version contains one of those...
I googled up and down, I did not manage to find anything useful.

Does somebody know where to look further?
Thanks in advance,
AS