)]}'
{"src/flash/nor/stm32f1x.c":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"9d1c61b3c19a75aff1947860b06814a5a63447fa","unresolved":false,"context_lines":[{"line_number":627,"context_line":"\tstruct cortex_m_common *cortex_m \u003d target_to_cm(target);"},{"line_number":628,"context_line":"\tuint32_t device_id_register \u003d 0;"},{"line_number":629,"context_line":""},{"line_number":630,"context_line":"\tswitch (cortex_m-\u003ecore_info-\u003epartno) {"},{"line_number":631,"context_line":"\tcase CORTEX_M0_PARTNO: /* STM32F0x devices */"},{"line_number":632,"context_line":"\t\tdevice_id_register \u003d 0x40015800;"},{"line_number":633,"context_line":"\t\tbreak;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"aedf27f1_5ebe19d3","line":630,"updated":"2021-05-13 14:33:09.000000000","message":"core_info is assigned during \u0027examine\u0027.\nIs there any check that prevents running this line if the core is not examined? Or we risk to trigger a segmentation fault?\nSame questions for the other 2 use cases in this patch.","commit_id":"10c7474ba3460dd5a580bdc5890d1dbb001382a9"},{"author":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"change_message_id":"544db0bb7937845904c8d7175ae2a654a37ef963","unresolved":false,"context_lines":[{"line_number":627,"context_line":"\tstruct cortex_m_common *cortex_m \u003d target_to_cm(target);"},{"line_number":628,"context_line":"\tuint32_t device_id_register \u003d 0;"},{"line_number":629,"context_line":""},{"line_number":630,"context_line":"\tswitch (cortex_m-\u003ecore_info-\u003epartno) {"},{"line_number":631,"context_line":"\tcase CORTEX_M0_PARTNO: /* STM32F0x devices */"},{"line_number":632,"context_line":"\t\tdevice_id_register \u003d 0x40015800;"},{"line_number":633,"context_line":"\t\tbreak;"}],"source_content_type":"text/x-csrc","patch_set":2,"id":"aedf27f1_dec52943","line":630,"in_reply_to":"aedf27f1_5ebe19d3","updated":"2021-05-13 16:25:43.000000000","message":"I have took this for granted, I assumed that every flash operation do require the target to be examined, and it\u0027s already checked in the flash core, but that\u0027s not true.\n\nI have have added this check only in this file, where it seems to be needed.\n\nmaybe this should be enforced within the flash core\nbased on stm32 mcu experience, all stm32 flash drivers do require the target to be examined, but I\u0027m not sure for other targets.","commit_id":"10c7474ba3460dd5a580bdc5890d1dbb001382a9"}],"src/flash/nor/stm32f2x.c":[{"author":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"change_message_id":"544db0bb7937845904c8d7175ae2a654a37ef963","unresolved":false,"context_lines":[{"line_number":971,"context_line":"\tstruct cortex_m_common *cortex_m \u003d target_to_cm(target);"},{"line_number":972,"context_line":""},{"line_number":973,"context_line":"\t/* read stm32 device id register */"},{"line_number":974,"context_line":"\tint retval \u003d target_read_u32(target, 0xE0042000, device_id);"},{"line_number":975,"context_line":"\tif (retval !\u003d ERROR_OK)"},{"line_number":976,"context_line":"\t\treturn retval;"},{"line_number":977,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":3,"id":"aedf27f1_fec26d38","line":974,"range":{"start_line":974,"start_character":1,"end_line":974,"end_character":61},"updated":"2021-05-13 16:25:43.000000000","message":"read_u32 will fail if target was not examined","commit_id":"fa672a859e5566be5366dff7d282511afe76cc90"}]}
