|
stvd自动生成的中断文件里 typedef void @far (*interrupt_handler_t)(void); extern void _stext(); /* startup routine */ struct interrupt_vector { unsigned char interrupt_instruction; interrupt_handler_t interrupt_handler; }; 这些怎么理解? stm8的启动代码怎么在哪里可以修改?有没相关参考资料 |
微信公众号
手机版
RE:关于stm8启动代码及中断解释
在STVP的project settings 里面点击Linker,在下面会看到Start-up file的选项,一般你选择好芯片型号,此文件就会指定。如STM8103 ,此文件为crtsi0.sm8,对定的.文件为crtsi0.s
主要作用是初始化C语言的环境,如堆栈,然后将代码从flash搬到内存执行