Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
I am using PULPissimo and currently trying to load the S25FS256S flash via JTAG.
So now i am wondering, is it possible to load an image (for example of the hello_world test, or any other image actually) into the S25FS256S flash via JTAG.
Edit: Writing via JTAG is possible.
Edit2: So writing into L2 via JTAG works well and fine, but is writing into Flash via JTAG supported? I already mentioned this Issue: #36 and wondered if anything changed now that little over a year went by. Any info is greatly appreciated.
The flash memory
So the way to do this is to write data from the jtag to the L2 and then engage the udma to transfer the data to the flash. The debug module can access the whole address space, thus also the memory mapped udma.
So after loading the relevant data into L2 using JTAG (either using debug_mode_if.load_L2 or debug_mode_if.writeMem) how would you recommend loading that data into the flash?
I'm thinking one way would be to write a program using the SPIM driver from the PULP Kernel Library. But this would require the core to do the work.
You said that the udma is memory mapped, so is there currently a way to to load the data from L2 to the flash while halting the core (maybe via SPI?), similar to using JTAG to load the data into L2 first?