If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.
Special Thanks To:
Aaron Holmes
Aaron Wheeler
Adam Horden
Alan Scrimgeour
Andre
Andrew Haynes
Anonymous000
asabase
Austin Weil
barney
Barry
Bert Hickman
Bill Kukowski
Blitzorn
Brandon Paradelas
Bruce Bowling
BubeeMike
Byong Park
Cesiumsponge
Chris F.
Chris Hooper
Corey Worthington
Derek Woodroffe
Dalus
Dan Strother
Daniel Davis
Daniel Uhrenholt
datasheetarchive
Dave Billington
Dave Marshall
David F.
Dennis Rogers
drelectrix
Dr. John Gudenas
Dr. Spark
E.TexasTesla
eastvoltresearch
Eirik Taylor
Erik Dyakov
Erlend^SE
Finn Hammer
Firebug24k
GalliumMan
Gary Peterson
George Slade
GhostNull
Gordon Mcknight
Graham Armitage
Grant
GreySoul
Henry H
IamSmooth
In memory of Leo Powning
Jacob Cash
James Howells
James Pawson
Jeff Greenfield
Jeff Thomas
Jesse Frost
Jim Mitchell
jlr134
Joe Mastroianni
John Forcina
John Oberg
John Willcutt
Jon Newcomb
klugesmith
Leslie Wright
Lutz Hoffman
Mads Barnkob
Martin King
Mats Karlsson
Matt Gibson
Matthew Guidry
mbd
Michael D'Angelo
Mikkel
mileswaldron
mister_rf
Neil Foster
Nick de Smith
Nick Soroka
nicklenorp
Nik
Norman Stanley
Patrick Coleman
Paul Brodie
Paul Jordan
Paul Montgomery
Ped
Peter Krogen
Peter Terren
PhilGood
Richard Feldman
Robert Bush
Royce Bailey
Scott Fusare
Scott Newman
smiffy
Stella
Steven Busic
Steve Conner
Steve Jones
Steve Ward
Sulaiman
Thomas Coyle
Thomas A. Wallace
Thomas W
Timo
Torch
Ulf Jonsson
vasil
Vaxian
vladi mazzilli
wastehl
Weston
William Kim
William N.
William Stehl
Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Registered Member #1143
Joined: Sun Nov 25 2007, 04:55PM
Location: Vilnius, Lithuania
Posts: 721
Hello, i am making ADSP FLASH programmer, all stuff is done, now flash programing stooping me from succeeding
STM32F4 is connected via SPI1 to flash. I can read ID from flash ( and yes, it is perfect match in pdf), and read status register, and write status register. so my guess SPI bus is ok. But i can't write, and read any data. ok, first what i do, is set register to 0x00 ( aka write protection is disabled)
Registered Member #96
Joined: Thu Feb 09 2006, 05:37PM
Location: CI, Earth
Posts: 4061
Indadequate voltage? Also worth checking, pull-up resistors and timing; if the signals are not square then the chip might not be inputting the data correctly.
Registered Member #1143
Joined: Sun Nov 25 2007, 04:55PM
Location: Vilnius, Lithuania
Posts: 721
Conundrum wrote ...
Indadequate voltage? Also worth checking, pull-up resistors and timing; if the signals are not square then the chip might not be inputting the data correctly.
I hape pullup to CS,WP,HD, and using PP Output in mcu, and i have local DC/DC to 3.30V.Somehow i can read chip id, but if i try to write data, i read nothing. (Or, i don't know how to read, or how to write) probing show excellent timings As always, if i made hardware right, software start to not work, and vice versa
lol, changed flash to EPCS4 and it worked in first time. So i ordered new flash, and problem should be solved.
Registered Member #1143
Joined: Sun Nov 25 2007, 04:55PM
Location: Vilnius, Lithuania
Posts: 721
OK, i realy ned some one who knows how to work with SPI FLASH. Right now i am using EPCS16 from my fpga board.
If i delete sector, and fill with data, i can read it with no problem. But if i try just to read flash from power-up,i get void data. (Yes, flash was programed, but not deleted)
Same problem is with dsp booting, i don't get any activity from MISO pi, only high state, and yes was successfully write.
To write flash i use simple function, so no error can be write into flash: while( TransferStatus == FAILED) { sFLASH_EraseSector(sk); sFLASH_WriteBuffer(Tx_Buffer,sk,256); sFLASH_ReadBuffer(Rx_Buffer, sk, 256); TransferStatus = Buffercmp(Tx_Buffer, Rx_Buffer, 256);//return PASSED if Rx and Tx data is the same, sk is address } TransferStatus=FAILED; //so next time when i have full buffer, i will go to this loop
Do i missing something ? do i need to write some registers or what ? why if i execute page delete and fill it with data i can read it, but if i try just to read after powerup (and some delay), i get nothing ?
Registered Member #30
Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I deal with problems like this all the time at work. The solution is lots of hard work with a scope and logic analyser plus reading the datasheets of all the parts 100 times. (including any errata that the manufacturer might have published later)
Even if the flash was full of garbage data, or blank, or not connected at all, I'd expect the DSP to attempt to read it at boot time. It should clock in the first 1000 or so words, try to execute it as code, and if the data is bad it will crash at this point.
So it sounds like you have two problems here: your flash write routine on the STM32 is broken and your DSP boot mode is configured wrongly. (or it's not trying to boot because it's lacking some power rail or clock signal)
The EPCS16 is meant for configuring Altera FPGAs. Is it even compatible with the DSP's SPI bootloader?
Finally I noticed this in the EPCS series datasheet:
wrote ... For write and erase operations, drive the nCS pin high at a byte boundary that is in a multiple of eight clock pulses. Otherwise, the operation is rejected and not executed.
Registered Member #1143
Joined: Sun Nov 25 2007, 04:55PM
Location: Vilnius, Lithuania
Posts: 721
OK, this is just me beeing stupid as always. I was writing to buffer, not page, and when i switched to page, and after chip erase setting all registers to zero, worked as it should. So yes, you must know your enemy.
Anyway, ADSP-21488 still doesn't want to work, i can see now some activity on all pins (MOSI give just read command as it should, and MISO just readouts all data from flash, cs goes low for eternity)
Is always fun to start to work from hardest point with new technology... (ADSP i mean)
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.