Other Parts Discussed in Thread: CONTROLSUITE
Hi Folks,
After getting the flash api example to run, I brought the flash api into my project make, in the build settings linking with F021_API_CortexM3_LE.lib, and that looks happy. I added the memcpy from flash to ram, and successfully call FlashInit() thanks to advice on this forum! I copy-pasteded code from the flash api example, making an InitalizeFlash() that mimics the example code, gaining the flash pump, fapi_initializeApi(), getLibraryInfo(), set the wait states, but when I try to call into Fapi_setActiveFlashBank(), it seems like there's no code there, the debugger goes off the rails, giving
Cortex_M3_0: Can't Run Target CPU: (Error -1268 @ 0x90001) Device is locked up in Hard Fault or in NMI. Reset the device, and retry the operation....
I saw in this thread
e2e.ti.com/support/microcontrollers/tms320c2000_32-bit_real-time_mcus/f/171/t/156845.aspx
that I need to have an explicitly added SECTION for the library to be able to make calls into it. So I added it, and now I see Fapi_setActiveFlashBank() in my map file as a trampoline call, so that was a necessary step, but didn't get an improvement in my code's behavior, so not sufficient.
Is there another step that I'm neglecting? I'm not having success with the file insert button, so I'm going to post this and then try to followup with my link and map files in a reply
Thanks for any help you can provide, I'm just about to tear my hair out!
Larry