:020000040800F2
:100000000020002085010008890100088B010008FC
:1000100000000000000000000000000000000000E0
:10002000000000000000000000000000A501000822
:100030000000000000000000A7010008B90400084B
:10004000B501000800000000B5010008B501000876
:10005000B5010008B5010008B5010008B5010008A8
:1000600000000000B5010008B5010008B501000856
:10007000B5010008B5010008B50100080000000046
:10008000B50100080000000000000000B5010008F4
:10009000B5010008B5010008B5010008B501000868
:1000A000B5010008B5010008B5010008B501000858
:1000B000B501000800000000000000000000000082
:1000C0005FF808F173B500F0E3F80022224B2349F2
:1000D000D3188B4204D22249895804321960F5E7BB
:1000E000204B214A934202D2002204C3F9E700F0D8
:1000F000D3F8684601A900F0C3F81C4B00251E1C6C
:100100001B4CE41AA410A54204DAAB00F35898473C
:100110000135F8E7174B00251E1C174CE41AA410F4
:10012000A54204DAAB00F35898470135F8E7009888
:10013000019900F0C5F9114B051C1E1C104CE41A66
:10014000A410002C04DD013CA300F3589847F8E705
:10015000281C00F091F8C046000000201C00002080
:10016000240600081C00002024000020E0010008F4
:10017000E0010008E0010008E0010008E0010008DB
:10018000E001000809480047FEE7042071460842E4
:1001900002D0EFF3098001E0EFF308807146044AD2
:1001A0001047FEE7FEE7FEE770470000C5000008C5
:0601B000A3010008FEE7B8
:1001B80024060008000000201C0000202406000877
:1001C80000000000000000001C00002024000020A7
:0801D80000000000000000001F
:1001E000F7B500220B68019301239340019E1E4046
:1001F0009E422DD10C79631E012B16D85700BC46A8
:1002000003276546AF408368BB4383604B798768AB
:10021000AB403B4383608388B34383808E79878878
:10022000331C93403B439BB2838003235600B3406F
:10023000DB43B44007681F40076007683C43046025
:10024000C4682340C360CB79C468B3402343C36010
:100250000132102AC8D1F7BD81617047018570470E
:10026000044B5A69002902D01043586101E08243CF
:100270005A6170470010024008B500F011F8000004
:1002800001230360014B0B607047C0460000002053
:1002900008B500F013F808BD08B500F089F808BDEE
:1002A000BFF34F8F034A044BDA60BFF34F8FC04652
:1002B000FDE7C0460400FA0500ED00E00121344BE3
:1002C00082B01A680A431A605868324A02405A607B
:1002D0001868314A02401A601868304A02401A60B1
:1002E00058682F4A02400F205A60DA6A8243DA6265
:1002F000186B2C4A02401A635A6B8A435A630022D5
:1003000080219A60009201921A6849020A431A6099
:1003100080221968920211400191009901310091E7
:100320000199002904D1A0210098C9018842EFD188
:1003300019680A4000D001220192019A012A25D1B0
:100340001121194A11605A685A605A685A605968EE
:10035000164A0A4088215A605A6849030A43802194
:100360005A601A6849040A431A601968084A8901E0
:10037000FBD5032051688143516051680138014326
:1003800051600C2259680A40082AFAD102B070471D
:10039000001002400CB8FF08FFFFF6FEFFFFFBFF56
:1003A000FFFFC0FFACFEFFFF00200240FF7FC0FF49
:1003B0000C2370B5134D144E6A681340042B01D002
:1003C000082B02D0114B336013E0C0236C686A68BD
:1003D000A402240F5B0202341A4201D10C4806E049
:1003E0000F23E96A09481940013100F089F84443B4
:1003F00034606B68074A1B061B0FD35C3268DA4017
:10040000326070BD001002401800002000127A0017
:1004100000093D000800002037B58020012180023E
:10042000FFF71EFF6A4601231371002390256946DA
:10043000937120240322ED05281C4A71CB7100948E
:10044000FFF7CEFE281C211CFFF708FF37BD000078
:10045000FA2108B50B4B8900186800F051F80A4BD7
:10046000013898420DD8094A09495060C0200B6AEA
:1004700000061B021B0A03430B6200239360073331
:10048000136008BD18000020FFFFFF0010E000E02F
:1004900000ED00E0024B18601A68002AFCD170479A
:1004A00020000020034B1A68002A02D01A68013A83
:1004B0001A6070472000002008B5FFF7F3FF08BD61
:1004C00010B5FFF7C5FF0024FFF7A6FF90202021FD
:1004D000C005FFF7C1FE002C01D0084801E0FA205A
:1004E0008000FFF7D7FF90202021C005FFF7B6FE60
:1004F000FA20FFF7CFFF0134E8E7C046EE02000024
:10050000002243088B4274D303098B425FD3030A52
:100510008B4244D3030B8B4228D3030C8B420DD365
:10052000FF22090212BA030C8B4202D312120902F3
:1005300065D0030B8B4219D300E0090AC30B8B4231
:1005400001D3CB03C01A5241830B8B4201D38B03DF
:10055000C01A5241430B8B4201D34B03C01A524184
:10056000030B8B4201D30B03C01A5241C30A8B42C7
:1005700001D3CB02C01A5241830A8B4201D38B02B2
:10058000C01A5241430A8B4201D34B02C01A524156
:10059000030A8B4201D30B02C01A5241CDD2C309C8
:1005A0008B4201D3CB01C01A524183098B4201D344
:1005B0008B01C01A524143098B4201D34B01C01A2F
:1005C000524103098B4201D30B01C01A5241C308A7
:1005D0008B4201D3CB00C01A524183088B4201D316
:1005E0008B00C01A524143088B4201D34B00C01A02
:1005F0005241411A00D20146524110467047FFE76E
:1006000001B5002000F00CF802BDC0460029F7D06B
:1006100003B5FFF775FF0EBC4243891A1847C04661
:040620007047C04619
:100624001C0000200000000000000000000000008A
:0C0634000102030406070809006CDC0248
:04000005080000C52A
:00000001FF
#include <stm32f0xx.h>
int main(int argc, char* argv[]){
GPIOA -> MODER = 1;
GPIOA -> PUPDR = 1;
GPIOA -> ODR = 1;
while (1){
GPIOA -> ODR = 1;
for(int i = 0;i < 100000;i++){};
GPIOA -> ODR = 0;
for(int i = 0;i < 100000;i++){};
}
}
st-flash --reset write empty.bin 0x08000000
arm-none-eabi-g++ -mcpu=cortex-m0 -mthumb -Os -fmessage-length=0 -fsigned-char -ffunction-sections -fdata-sections -ffreestanding -Wall -Wextra -g -T mem.ld -T libs.ld -T sections.ld -Xlinker --gc-sections -L"../ldscripts" -Wl,-Map,"empty.map" --specs=nano.specs -o "empty.elf" ./system/src/stm32f0-stdperiph/stm32f0xx_gpio.o ./system/src/stm32f0-stdperiph/stm32f0xx_rcc.o ./system/src/newlib/_cxx.o ./system/src/newlib/_exit.o ./system/src/newlib/_sbrk.o ./system/src/newlib/_startup.o ./system/src/newlib/_syscalls.o ./system/src/newlib/assert.o ./system/src/diag/Trace.o ./system/src/diag/trace_impl.o ./system/src/cortexm/_initialize_hardware.o ./system/src/cortexm/_reset_hardware.o ./system/src/cortexm/exception_handlers.o ./system/src/cmsis/system_stm32f0xx.o ./system/src/cmsis/vectors_stm32f0xx.o ./src/main.o
Как получу, попробую отпишусь, может еще кто с такой проблемой столкнется.