We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi,
I'm trying to use inline assembler code but the keyword '__asm' is not accepted. I can create an '__asm' function with no compiler warnings but when calling this function the uC restarts. Using Cortex M3 device.
Regards,
Henk
As far as I know, you cannot write into internal flash like this. Did you check your user manual - are you allowed to write into flash like this...? On a LPC2478, this will cause an immediate failure. If not, you need to search your user manual for "IAP".
And you don't need any assembly to write a bootloader, at least not on a LPC2467/78/1768 !
>As far as I know, you cannot write into internal flash >like this. Did you check your user manual - are you
Yes you can, but first have to follow some unlock sequence which works fine otherwise it would not be possible to erase pages as is done.