Failed to create Flash Loader.
Hello.
I'm trying to convert Nuvoton's Flash Loader, which is written in assembler, into C language.
At first glance, it seemed like I only had to write the 'EraseSector' and 'ProgramPage' functions.
Even though I wrote it, it doesn't seem to download properly. Is there anything else I should add?
Please refer to the link below for the code I wrote.
Thank you.
-
Hey Yoon-Ki Hong,
Aside from implementing EraseSector and ProgramPage, ensure memory mapping, timing, and register operations match the original assembly. Also, check for stack handling, compiler optimizations, and debugging outputs. Debugging complex issues like this can be as tricky as perfecting a recipe for delicious food! If it still fails, could you share more details on the issue?
-
Hi Jorden james,
The job is now completed and working fine.
This was a problem that occurred when I was translating assembly code to C and copying code that I didn't understand. I don't understand exactly what the purpose of the assembly code lines in the link below are.
I removed the parts that were incorrectly translated into C language, as shown in the link below. it works normally.
Thank you!!
Please sign in to leave a comment.

Comments
6 comments