Creating a microcontroller startup file

Mike via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Apr 8 16:28:43 PDT 2015


On Wednesday, 8 April 2015 at 23:23:53 UTC, Mike wrote:
> On Wednesday, 8 April 2015 at 16:10:53 UTC, Jens Bauer wrote:
>> On Wednesday, 8 April 2015 at 11:17:12 UTC, Mike wrote:
>>> On Tuesday, 7 April 2015 at 20:33:26 UTC, Jens Bauer wrote:
>
>>
>> -I actually added @attribute("naked") to my 
>> defaultResetHandler yesterday, as I wanted to get rid of the 
>> prologue; so I completely agree; the startup code should have 
>> this attribute.
>> I've now changed that to use the enum, to be more consistent. 
>> ;)
>
> I actually added that out of necessity, not optimization.  Id I 
> use the STM32, and reset the MCU, the CCRAM is disabled by 
> default.  Since my stack is in CCRAM, I need to first enable it 
> before any functions can be called.
>

Sorry, I need to be more careful when typing on a tablet.  That 
should read:

I actually added that out of necessity, not optimization.  If I 
use the STM32 system bootloader, and reset the MCU, the CCRAM is 
disabled by default.  Since my stack is in CCRAM, I need to first 
enable it before any functions can be called.

Mike



More information about the Digitalmars-d-learn mailing list