Hi <@U0172QZ342D> can i get ur help on this?
# chipignite
s
Hi @Matt Venn can i get ur help on this?
m
what chip is this for?
s
I am using chip 2211Q-R @Matt Venn
m
do you see the errors when you type the command?
image.png
it can't build the hex file because you don't have make
s
LED does not blink and the Winbond SRAM not found error comes
@Matt Venn @Tim Edwards .my is the latest delivery of 2211Q-R
1)I see similar Winbond SRAM not found posts but not sure of clear solution? 2) HOW to install toolchain for windows? https://github.com/efabless/caravel_board/issues/16
image.png
t
@samarth jain: That's an odd one because the
make
process is seeing the chip; you got back a part number with the
0006
prefix for MPW-6, so all that looks correct. This seems to be a new issue that I have not seen before. Have you tried multiple parts, and do you get the same behavior on all of them? If so, then you should install a header on the 6 pin J7 and use that with jumper wires to wire the SPI flash directly to the FTDI and program it that way (@jeffdi should be able to send you a link with the instructions for that); if that doesn't work, then it's a board level error. If the development board itself works but all assembled parts fail to program, then I am at a loss for ideas and we will need to debug the problem thoroughly.
If you have an oscilloscope handy, you can check what, if anything, is toggling on those pins when you attempt to program the flash.
m
I can sometimes solve the 'winbond sram not found' error by plugging and unplugging the usb cable
s
@Tim Edwards so this error is with the board and not my chip? what are part in pcb can cause this issue?
t
Please answer my questions before you infer anything about the error. I don't know what it is yet.
s
@Matt Venn @Tim Edwards I Tried a different chip and it works.
m
in my experience, your new errors are because the firmware is too big
s
This is blink example code.are we expected to see these errors with the blink.hex provided ? @Matt Venn
m
no, if you've not changed the example code, then you shouldn't see any read compare errors
actually now I read the logs again, normally when it happens to me, the first addresses work and it fails at a later one
yours fails from the beginning
t
It's failing to write anything and is reading back the original program in the flash; one possibility is that the flash has somehow got write-protect turned on, although the behavior is so unexpected, I'm not confident of any guesses.
s
i used this code directly https://github.com/efabless/caravel_board/tree/main/firmware/chipignite/blink @Matt Venn .also my led starts to blink even after these errors. i used caravel_hkflash.py script to load the hex.any suggestions i can check the flash issue @Tim Edwards?
image.png,image.png,image.png
t
@samarth jain: Okay, ignore what I said before. There is some kind of address mismatch in the verification stage. It is always comparing a long string of data against a short string of data. Where it advances the block and says that it is comparing at address 0x100, the shorter block is showing data continuing from where the last short block left off, which is definitely less than 0x100 bytes. It looks like it programmed correctly, though, and you might be able to get by with just ignoring the verification failures.
m
If the flash fails, it might just be running the previously loaded program
can you change the flash frequency and try a reload - see if it actually changes
t
I don't think it failed, though. It reported success on programming and read back the correct data---it just seems to have started offsetting the address location in the verification report.
A good test would be just to change the program a bit, like change the blink rate to 4x, reprogram, and see if it programmed correctly in spite of the verification report. My hunch is that it will.
s
@Tim Edwards yes I slowed the blink and it does work. I think meantime I can continue but I am interested to know what causes these address error