This could probably go o none of my old posts but here is what's happening:
I have my boot jumpers set to boot from flash. I'm trying to use one of the Piccolo's flash examples. I included the files required to do this and changed the linker file. When I go into debug mode it goes fine but when I press "play" nothing happens. Now, I read something about the gel file and setting the "on reset" to boot from flash but i dont know how to use that from my C file. They have referred me to the "run from flash" document and it does not help at ll. Another thing is the EMU_KEY and EMU_BMODE registers. I'm not able to change EMU_BMODE. Is it really this complicated to run from flash? I'm doing everything it says to do and it will not load my program into flash. I can tell it's "trying" to boot from flash because when I start my chip the current drawn is what it would draw if it were programmed (aka it is "programmed" and running from flash) but it's not doing anything. What am I missing here? you guys should know what to do in this case and I have never gotten anything remotely close to a good answer. Please help me with this! =/
Things I have done:
-changed linker to FLASH instead of RAM
- GPIO34 is pulled high, TDO is pulled high
- Included code start branch
Things i may need:
- EMU/OTP KEY and BMODE addresses on PIE VECT TABLE
- BMODE asks for 0x000B to boot from ram, however I can't seem to change it no matter what I do
THIS IS AN EDIT TO MY POST:
I changed the linker file from "F28026.cmd" to the generic flash one and one thing I noticed is that my code actually programs the chip (the way it would if the RAM lnk file were being used) but It won't keep the code once I reset it (TRST is now low since I unplugged the debugger) So this is the only new thing happening.
This is all I have for now
Thank you!