{"action":"created","issue":{"url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/1002","repository_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin","labels_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/1002/labels{/name}","comments_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/1002/comments","events_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/1002/events","html_url":"https://github.com/Sloeber/arduino-eclipse-plugin/issues/1002","id":345838560,"node_id":"MDU6SXNzdWUzNDU4Mzg1NjA=","number":1002,"title":"When process \"new\" ,STM32F103C8 \"Bluepill\" freeze.","user":{"login":"human890209","id":22681924,"node_id":"MDQ6VXNlcjIyNjgxOTI0","avatar_url":"https://avatars3.githubusercontent.com/u/22681924?v=4","gravatar_id":"","url":"https://api.github.com/users/human890209","html_url":"https://github.com/human890209","followers_url":"https://api.github.com/users/human890209/followers","following_url":"https://api.github.com/users/human890209/following{/other_user}","gists_url":"https://api.github.com/users/human890209/gists{/gist_id}","starred_url":"https://api.github.com/users/human890209/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/human890209/subscriptions","organizations_url":"https://api.github.com/users/human890209/orgs","repos_url":"https://api.github.com/users/human890209/repos","events_url":"https://api.github.com/users/human890209/events{/privacy}","received_events_url":"https://api.github.com/users/human890209/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-07-30T16:38:19Z","updated_at":"2018-08-03T20:21:45Z","closed_at":"2018-07-31T03:44:24Z","author_association":"NONE","body":"Hi,\r\nI tried using STM32F103C8 \"Bluepill\" today. Cause it is supported by Arduino IDE. \r\nEverything is here. https://github.com/rogerclarkmelbourne/Arduino_STM32\r\nI tested the Blink example both with Arduino IDE and Sloeber, they both worked!\r\nThen I continue to do more tests with Sloeber, cause it's better for me:>\r\nThen I got this bug with \"new\". Here I paste the simple bug reproduce sketch code.\r\n```\r\nclass MYCLASS\r\n{\r\npublic:\r\n\tMYCLASS(){content = 99;};\r\n\t~MYCLASS(){};\r\n\tbyte content;\r\n};\r\n\r\nMYCLASS mc;\r\n\r\nMYCLASS* mcp;\r\n\r\nvoid setup()\r\n{\r\nSerial.begin(115200);\r\npinMode(LED_BUILTIN, OUTPUT);\r\n}\r\n\r\nvoid loop()\r\n{\r\n\tSerial.println(\"loop\");\r\n\tdigitalWrite(LED_BUILTIN, HIGH);\r\n\tdelay(500);\r\n\tdigitalWrite(LED_BUILTIN, LOW);\r\n\tdelay(500);\r\n\tSerial.println(mc.content);\r\n\tmcp = new MYCLASS();\r\n\tSerial.println((*mcp).content + 1);\r\n\tdelete(mcp);\r\n}\r\n```\r\n\r\nSerialMonitor(Sloeber):\r\n```\r\nConnect to serial portCOM3 at115200\r\n99\r\n```\r\n\r\nI tried the same code in Arduino IDE. Everything works fine! (Took me much time to find out it's not a pure hardware bug...Asked around on the STM32 Arduino Github Issues and Forum, cause Arduino IDE works fine, I came here to find a way out.)\r\n\r\nThis is my project setting of Sloeber\r\n![arduino settings](https://user-images.githubusercontent.com/22681924/43410277-f09260fe-9458-11e8-9ae7-e3142494d9d4.PNG)\r\nSimply use the same default setting to Arduino IDE.\r\n\r\nI'm sure \"new\" is the problem. Cause ` mcp = &mc;` works fine with Sloeber.\r\n\r\nHope you could help me out with the \"new\"+\"STM32 Bluepill\"+\"Sloeber\" bug.\r\nIt will be awesome if STM32 Bluepills can be used with Sloeber. When Flash and SRAM get larger Sloeber is in need.\r\n\r\nI found a warning in the compiling log. Maybe this could do some help.\r\n```\r\n'Starting combiner'\r\n\"C:\\sloeber\\/arduinoPlugin/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/arm-none-eabi-g++\" -Os -Wl,--gc-sections -mcpu=cortex-m3 \"-TD:\\Arduino\\Software\\Sloeber\\MyHardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c/ld/jtag_c8.ld\" \"-Wl,-Map,C:\\Users\\human\\Documents\\sloeber-workspace\\STM32F103C/Release/STM32F103C.map\" \"-LD:\\Arduino\\Software\\Sloeber\\MyHardware\\Arduino_STM32\\STM32F1\\variants\\generic_stm32f103c/ld\" -o \"C:\\Users\\human\\Documents\\sloeber-workspace\\STM32F103C/Release/STM32F103C.elf\" \"-LC:\\Users\\human\\Documents\\sloeber-workspace\\STM32F103C/Release\" -lm -lgcc -mthumb -Wl,--cref -Wl,--check-sections -Wl,--gc-sections -Wl,--unresolved-symbols=report-all -Wl,--warn-common -Wl,--warn-section-align -Wl,--warn-unresolved-symbols -Wl,--start-group    .\\sloeber.ino.cpp.o    C:/Users/human/Documents/sloeber-workspace/STM32F103C/Release/arduino.ar  -Wl,--end-group\r\n**c:/sloeber/arduinoplugin/packages/arduino/tools/arm-none-eabi-gcc/4.8.3-2014q1/bin/../lib/gcc/arm-none-eabi/4.8.3/../../../../arm-none-eabi/lib/armv7-m\\libnosys.a(sbrk.o): In function `_sbrk':\r\nsbrk.c:(.text._sbrk+0x30): warning: undefined reference to `end'**\r\n'Finished building: STM32F103C.elf'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/comments/410366145","html_url":"https://github.com/Sloeber/arduino-eclipse-plugin/issues/1002#issuecomment-410366145","issue_url":"https://api.github.com/repos/Sloeber/arduino-eclipse-plugin/issues/1002","id":410366145,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMDM2NjE0NQ==","user":{"login":"RickKimball","id":277696,"node_id":"MDQ6VXNlcjI3NzY5Ng==","avatar_url":"https://avatars0.githubusercontent.com/u/277696?v=4","gravatar_id":"","url":"https://api.github.com/users/RickKimball","html_url":"https://github.com/RickKimball","followers_url":"https://api.github.com/users/RickKimball/followers","following_url":"https://api.github.com/users/RickKimball/following{/other_user}","gists_url":"https://api.github.com/users/RickKimball/gists{/gist_id}","starred_url":"https://api.github.com/users/RickKimball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RickKimball/subscriptions","organizations_url":"https://api.github.com/users/RickKimball/orgs","repos_url":"https://api.github.com/users/RickKimball/repos","events_url":"https://api.github.com/users/RickKimball/events{/privacy}","received_events_url":"https://api.github.com/users/RickKimball/received_events","type":"User","site_admin":false},"created_at":"2018-08-03T20:21:45Z","updated_at":"2018-08-03T20:21:45Z","author_association":"NONE","body":"The solution suggested above was a work around. The real problem has actually been fixed by #1005"}}
{"actor":{"display_login":"RickKimball"}}