Technical discussions related to Analog Devices DSPs (including Blackfin, TigerSHARC, SHARC and ADSP-21xx DSPs).
hi! Iam booting my BF532 board with spi flash(at25f2048) with spi boot mode.... i didn't get any programmer to program the flash ,,,so, based on the datasheet i have programmed(stored the loader file) the flash memory by using microcontroller....now i want to boot the processor from SPI flash.....I don't have much experiance in this...first time iam doing...... Now iam unable to know when the boot process is completed and the processor executing my code...out put is not came....i don't know what 's the problem.... After storing the loader into the flash i just switch on the bf532 with bootmode set 11 ...this is the thing i have done actually.... my problem is i don't know now how to trouble shoot it.... in the datasheet they have given that for thsi mode the baud rate should be 500khz....processor when it try boot it only set the baudrate or anything we need to do for that..... any other troubleshooting techniques......
On Wed, 19 Dec 2007 m...@yahoo.co.in wrote: > hi! > Iam booting my BF532 board with spi flash(at25f2048) with spi boot mode.... > > i didn't get any programmer to program the flash ,,,so, based on the datasheet i have programmed(stored the loader file) the flash memory by using microcontroller....now i want to boot the processor from SPI flash.....I don't have much experiance in this...first time iam doing...... > > Now iam unable to know when the boot process is completed and the processor executing my code...out put is not came....i don't know what 's the problem.... > > After storing the loader into the flash i just switch on the bf532 with bootmode set 11 ...this is the thing i have done actually.... > > my problem is i don't know now how to trouble shoot it.... > in the datasheet they have given that for thsi mode the baud rate should be 500khz....processor when it try boot it only set the baudrate or anything we need to do for that..... > > any other troubleshooting techniques...... If you have an oscilliscope it will help a lot. Make sure all the lines are connected right and there is no noise on them. If that looks right, make sure the number of clock pulses per byte is correct. Once you are sure the hardware is correct, you can begin to look at the software side. You first need to ensure that the correct number of bytes is being transfered. If that looks good, make sure that the reset vector address has a jump to the correct start location. After that, use a flag bit to toggle the scope to tell you "I made it this far" into the code. Binary search will help you quickly find where things break - it makes half way thru the boot process or it doesn't, it makes it 1/4 of the way or it doesn't.... It does not take long to find the place you messed up! Good luck! Patience, persistence, truth, Dr. mike
m...@yahoo.co.in wrote: > > hi! > > Iam booting my BF532 board with spi flash(at25f2048) with spi boot > mode.... > > i didn't get any programmer to program the flash ,,,so, based on the > datasheet i have programmed(stored the loader file) the flash memory > by using microcontroller....now i want to boot the processor from SPI > flash.....I don't have much experiance in this...first time iam > doing...... > > . > > We have a new Blackfin/Sharc programmer that will support these devices. It's being released late this month. Email us if you are interested. Writing drivers like this can be a little tricky. There are a few ap notes on the ADI web site that address this issue. We like to use a four channel scope or logic analyzer to look at the four SPI lines to make sure that the SPI configuration is set correctly. You can also look at the first few bytes of data this way. Al Clark Danville Signal Processing, Inc.
m...@yahoo.co.in wrote: > > First thank u for reply......... > > in my hardware i have connected MISO pin to Vcc(3.3) through 10k > resistor and same is the case with SCK.... > > I have observed what is happening with the OSC what i have seen is: > PF2=high > MISO=high > SCK=high > MOSI=LOw > > Nothing is happening..... > regarding the loader file i have some doubts iam wriring here......... > I would set the scope to trigger on the falling edge of PF2 (SS). If PF2 is always high, you do not have SPI configured correctly (and you won't trigger). Pullups on MISO & SCK is good. I would also pull up PF2 and MOSI but this is not your current problem. Al Clark Danville Signal Processing, Inc. > > 1.Either We have to use the on-chip boot kernel option or not...... > 2.we have to use any initialisation code or not....because they have > given > that for SPI booting SPI baudrate it will assume 500KHZ....and for my > SPI memory CPOL=CPHA=1;but after reset the processor is having > CPOL=0;CPHA=1; and SPI is disabled....... > > hi! > >Iam booting my BF532 board with spi flash(at25f2048) with spi boot > mode.... > > > >i didn't get any programmer to program the flash ,,,so, based on the > datasheet i have programmed(stored the loader file) the flash memory > by using microcontroller....now i want to boot the processor from SPI > flash.....I don't have much experiance in this...first time iam > doing...... > > > >Now iam unable to know when the boot process is completed and the > processor executing my code...out put is not came....i don't know what > 's the problem.... > > > >After storing the loader into the flash i just switch on the bf532 > with bootmode set 11 ...this is the thing i have done actually.... > > > >my problem is i don't know now how to trouble shoot it.... > >in the datasheet they have given that for thsi mode the baud rate > should be 500khz....processor when it try boot it only set the > baudrate or anything we need to do for that..... > > > >any other troubleshooting techniques...... > > > > > ,_._,___
First thank u for reply......... in my hardware i have connected MISO pin to Vcc(3.3) through 10k resistor and same is the case with SCK.... I have observed what is happening with the OSC what i have seen is: PF2=high MISO=high SCK=high MOSI=LOw Nothing is happening..... regarding the loader file i have some doubts iam wriring here......... 1.Either We have to use the on-chip boot kernel option or not...... 2.we have to use any initialisation code or not....because they have given that for SPI booting SPI baudrate it will assume 500KHZ....and for my SPI memory CPOL=CPHA=1;but after reset the processor is having CPOL=0;CPHA=1; and SPI is disabled....... hi! >Iam booting my BF532 board with spi flash(at25f2048) with spi boot mode.... > >i didn't get any programmer to program the flash ,,,so, based on the datasheet i have programmed(stored the loader file) the flash memory by using microcontroller....now i want to boot the processor from SPI flash.....I don't have much experiance in this...first time iam doing...... > >Now iam unable to know when the boot process is completed and the processor executing my code...out put is not came....i don't know what 's the problem.... > >After storing the loader into the flash i just switch on the bf532 with bootmode set 11 ...this is the thing i have done actually.... > >my problem is i don't know now how to trouble shoot it.... >in the datasheet they have given that for thsi mode the baud rate should be 500khz....processor when it try boot it only set the baudrate or anything we need to do for that..... > >any other troubleshooting techniques......
thank u for reply....... iam little bit weak at my english.................so, for some time bare with me.. According to datasheet After reset is applied SPI will be in disabled condition............................... I have seen in one document that the On-chip boot kernel will take care of these things(configuring boot source according to boot mode ).....they have written.................................................... and if i want to configure SPI before booting means how it will be possible....because after the processor booting completed only whatever code i have written it will run.... for booting to happen itself we have to configure the SPI......... Iam not that much experianced in this field.....so,provide me little info or else any sources to read....... thank u once again............. hi! >Iam booting my BF532 board with spi flash(at25f2048) with spi boot mode.... > >i didn't get any programmer to program the flash ,,,so, based on the datasheet i have programmed(stored the loader file) the flash memory by using microcontroller....now i want to boot the processor from SPI flash.....I don't have much experiance in this...first time iam doing...... > >Now iam unable to know when the boot process is completed and the processor executing my code...out put is not came....i don't know what 's the problem.... > >After storing the loader into the flash i just switch on the bf532 with bootmode set 11 ...this is the thing i have done actually.... > >my problem is i don't know now how to trouble shoot it.... >in the datasheet they have given that for thsi mode the baud rate should be 500khz....processor when it try boot it only set the baudrate or anything we need to do for that..... > >any other troubleshooting techniques......
Malli, You need to read EE240, if you haven't done so already. It describes the different boot modes including Master Mode SPI booting (ie where your code is in a SPI flash). The BMODE pins are set to 11. The on chip boot ROM will configure the SPI peripheral during booting based on the BMODE settings. All you need to do is to make sure the appropriate pullups are on the various pins (such as MISO and PF2). The only other thing to do is to get your application converted to an appropriate loader file (ie for Master SPI booting, and typically an Intel Hex file) and then loaded into the SPI flash. Most people use the Flash Programmer Utility through VDSP++. You would need to create a customized flash programmer application for your Flash device, but ADI provides source codes for the EZKIT versions and you would just need to modify that to match the Flash device you are using. We have developed custom Flash drivers for various Flash devices to be used with the Flash Programmer Utility. Let me know if you needed some help (for hire) for creating a customized driver. Good luck, George Kadziolka Kaztek Systems <http://www.kaztek.com/> www.kaztek.com _____ From: a...@yahoogroups.com [mailto:a...@yahoogroups.com] On Behalf Of m...@yahoo.co.in Sent: Thursday, December 20, 2007 11:18 PM To: a...@yahoogroups.com Subject: [adsp] Re: BF532 SPI booting thank u for reply....... iam little bit weak at my english.................so, for some time bare with me.. According to datasheet After reset is applied SPI will be in disabled condition............................... I have seen in one document that the On-chip boot kernel will take care of these things(configuring boot source according to boot mode ).....they have written.................................................... and if i want to configure SPI before booting means how it will be possible....because after the processor booting completed only whatever code i have written it will run.... for booting to happen itself we have to configure the SPI......... Iam not that much experianced in this field.....so,provide me little info or else any sources to read....... thank u once again............. hi! >Iam booting my BF532 board with spi flash(at25f2048) with spi boot mode.... > >i didn't get any programmer to program the flash ,,,so, based on the datasheet i have programmed(stored the loader file) the flash memory by using microcontroller....now i want to boot the processor from SPI flash.....I don't have much experiance in this...first time iam doing...... > >Now iam unable to know when the boot process is completed and the processor executing my code...out put is not came....i don't know what 's the problem.... > >After storing the loader into the flash i just switch on the bf532 with bootmode set 11 ...this is the thing i have done actually.... > >my problem is i don't know now how to trouble shoot it.... >in the datasheet they have given that for thsi mode the baud rate should be 500khz....processor when it try boot it only set the baudrate or anything we need to do for that..... > >any other troubleshooting techniques......
On Thu, 20 Dec 2007 m...@yahoo.co.in wrote: > thank u for reply....... > > iam little bit weak at my english.................so, for some time bare with me.. > Looks pretty good to me! > > According to datasheet > > After reset is applied SPI will be in disabled condition............................... > > I have seen in one document that the On-chip boot kernel will take care of these things(configuring boot source according to boot mode ).....they have written.................................................... > > and if i want to configure SPI before booting means how it will be possible....because after the processor booting completed only whatever code i > > have written it will run.... > > for booting to happen itself we have to configure the SPI......... > Iam not that much experianced in this field.....so,provide me little info or else any sources to read....... > thank u once again............. Have you looked at: http://www.analog.com/UploadedFiles/Application_Notes/44524304621268EE240v03.pdf There might be something in there that will help. Patience, persistence, truth, Dr. mike