So, I am developing an architecture based on ARM M0 on Altera DE2-115 board. I want to add new algorithm for uploading and debugging program using ULINK2. I have created the algorithm using _Template and wonder how to test it using the Test.uvproj since I can't yet upload a program using my new algorithm. Any answer will be helpful. Thanks!
You can build algorithm as normal code(not PIC), and download it to RAM. Then use Keil to debug. Before you debug, some Keil debug settings should be configured. When in the debug window, you can set PC & MSP/PSP in register window, and then debug. Maybe you should check your ErasePage() and Uninit() functions.
Thankyou guys! I made it. However, I don't understand why it works. I only moved the flash to 0x08000000 from previously 0x00000000 in the hardware side. My code just follows. Anybody know why?