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
Why?
>why?
I have to write a bootloader for the STM32F103ZE. The bootloader writes received data to the main flash area. The flash data only is accepted if written as a 16-bit value. I tried using a short (16-bit) pointer but somehow that does not seem to work. I allready wrote a bootloader for some 8051 controller so I thought assembler would be the easiest way to do.
But I'm open to other ideas.
"I tried using a short (16-bit) pointer but somehow that does not seem to work."
You might want to investigate why you can't get your existing code working. You might get some help on that.
View all questions in Keil forum