)]}'
{"src/flash/nor/stm32l4x.c":[{"author":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"change_message_id":"533de3426cef16aa588ab192675ecc1664ff6733","unresolved":false,"context_lines":[{"line_number":1293,"context_line":"\t\treturn retval;"},{"line_number":1294,"context_line":""},{"line_number":1295,"context_line":"\t/* set PG in FLASH_CR */"},{"line_number":1296,"context_line":"\tretval \u003d stm32l4_write_flash_reg_by_index(bank, STM32_FLASH_CR_INDEX, flash_cr | FLASH_PG);"},{"line_number":1297,"context_line":"\tif (retval !\u003d ERROR_OK)"},{"line_number":1298,"context_line":"\t\treturn retval;"},{"line_number":1299,"context_line":""}],"source_content_type":"text/x-csrc","patch_set":3,"id":"ceda9b01_50d36161","line":1296,"updated":"2021-02-04 01:33:09.000000000","message":"still this flash_cr to remove","commit_id":"685554b5bbadfa5bf6dc064fa788b412456394c4"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"49ca55fb5478008defd23174bcf6983578abf083","unresolved":false,"context_lines":[{"line_number":1454,"context_line":""},{"line_number":1455,"context_line":"\tif (stm32l4_info-\u003etzen \u0026\u0026 (stm32l4_info-\u003erdp \u003d\u003d RDP_LEVEL_0_5)) {"},{"line_number":1456,"context_line":"\t\tLOG_INFO(\"RDP level 0.5, couldn\u0027t use the flash loader (since the specified work-area could be secure)\");"},{"line_number":1457,"context_line":"\t\tuse_loader \u003d false;"},{"line_number":1458,"context_line":"\t}"},{"line_number":1459,"context_line":""},{"line_number":1460,"context_line":"\tif (use_loader)"}],"source_content_type":"text/x-csrc","patch_set":9,"id":"ceda9b01_c85fa5e7","line":1457,"range":{"start_line":1457,"start_character":0,"end_line":1457,"end_character":21},"updated":"2021-04-03 22:58:35.000000000","message":"IMHO we shouldn\u0027t assume the user is an idiot and instead of disabling the loader we should just give him a hint that work area should reside in non-secure RAM.\nAlternatively we may issue the message only if block programming fails.\nBe aware that OpenOCD uses target algos also for erase check and verify.\n\nBTW We need change gdb-flash-erase-start to use non-secure addr if TZEN\u003d1 and RDP\u003d0.5","commit_id":"9de62da6fc5c62e5da579f07d1794cb62f9f4c01"},{"author":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"change_message_id":"006d1cc892b04460fa88dffc62a94f27db3f13c1","unresolved":false,"context_lines":[{"line_number":1454,"context_line":""},{"line_number":1455,"context_line":"\tif (stm32l4_info-\u003etzen \u0026\u0026 (stm32l4_info-\u003erdp \u003d\u003d RDP_LEVEL_0_5)) {"},{"line_number":1456,"context_line":"\t\tLOG_INFO(\"RDP level 0.5, couldn\u0027t use the flash loader (since the specified work-area could be secure)\");"},{"line_number":1457,"context_line":"\t\tuse_loader \u003d false;"},{"line_number":1458,"context_line":"\t}"},{"line_number":1459,"context_line":""},{"line_number":1460,"context_line":"\tif (use_loader)"}],"source_content_type":"text/x-csrc","patch_set":9,"id":"aedf27f1_e48420b8","line":1457,"range":{"start_line":1457,"start_character":0,"end_line":1457,"end_character":21},"in_reply_to":"ceda9b01_c85fa5e7","updated":"2021-05-25 15:03:46.000000000","message":"I agree, that we should not decide instead of the user ...\nmy intention was to ease the integration without STM32CubeIDE, as the target configuration file, do contain a default workarea start address, which could be outside the non-secure RAM range.","commit_id":"9de62da6fc5c62e5da579f07d1794cb62f9f4c01"},{"author":{"_account_id":1000687,"name":"Tomas Vanek","display_name":"Tomas Vanek","email":"vanekt@fbl.cz","username":"vanekt"},"change_message_id":"49ca55fb5478008defd23174bcf6983578abf083","unresolved":false,"context_lines":[{"line_number":1459,"context_line":""},{"line_number":1460,"context_line":"\tif (use_loader)"},{"line_number":1461,"context_line":"\t\tretval \u003d stm32l4_write_block(bank, buffer, offset, count / 8);"},{"line_number":1462,"context_line":"\telse {"},{"line_number":1463,"context_line":"\t\tLOG_INFO(\"falling back to single memory accesses\");"},{"line_number":1464,"context_line":"\t\tretval \u003d stm32l4_write_block_without_loader(bank, buffer, offset, count / 8);"},{"line_number":1465,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":9,"id":"ceda9b01_685479ca","line":1462,"updated":"2021-04-03 22:58:35.000000000","message":"It\u0027s nice that this driver finally has stm32l4_write_block_without_loader(). Let\u0027s use it as a fallback if there is no work area (stm32l4_write_block() returns ERROR_TARGET_RESOURCE_NOT_AVAILABLE) - like other drivers do. User may define WORKAREASIZE\u003d0 to switch off target flashing algo.","commit_id":"9de62da6fc5c62e5da579f07d1794cb62f9f4c01"},{"author":{"_account_id":1000863,"name":"Tarek BOCHKATI","email":"tarek.bouchkati@gmail.com","username":"BouchkatiTarek"},"change_message_id":"006d1cc892b04460fa88dffc62a94f27db3f13c1","unresolved":false,"context_lines":[{"line_number":1459,"context_line":""},{"line_number":1460,"context_line":"\tif (use_loader)"},{"line_number":1461,"context_line":"\t\tretval \u003d stm32l4_write_block(bank, buffer, offset, count / 8);"},{"line_number":1462,"context_line":"\telse {"},{"line_number":1463,"context_line":"\t\tLOG_INFO(\"falling back to single memory accesses\");"},{"line_number":1464,"context_line":"\t\tretval \u003d stm32l4_write_block_without_loader(bank, buffer, offset, count / 8);"},{"line_number":1465,"context_line":"\t}"}],"source_content_type":"text/x-csrc","patch_set":9,"id":"aedf27f1_048284a9","line":1462,"in_reply_to":"ceda9b01_685479ca","updated":"2021-05-25 15:03:46.000000000","message":"I have limited this change to only give a hint on non-secure RAM need when RDP is level 0.5, and the non-secure RAM settings in gdb-flash-erase-start event.\n\nI have moved \u0027stm32l4_write_block_without_loader()\u0027 to #6273 to manage the ERROR_TARGET_RESSOURCE_NOT_AVAILABLE, plus the introduction of a new command to disable using the loader if needed.","commit_id":"9de62da6fc5c62e5da579f07d1794cb62f9f4c01"}],"tcl/target/stm32l5x.cfg":[{"author":{"_account_id":1000021,"name":"Antonio Borneo","email":"borneo.antonio@gmail.com","username":"borneoa"},"change_message_id":"b06d28101dfe93dbd2df72ebaa40611fa8713b4c","unresolved":false,"context_lines":[{"line_number":175,"context_line":"\t\techo \"TZEN option bit enabled\""},{"line_number":176,"context_line":""},{"line_number":177,"context_line":"\t\t# check if FLASH_OPTR.RDP is not Level 0.5"},{"line_number":178,"context_line":"\t\tif {[expr [expr $FLASH_OPTR \u0026 0xFF] !\u003d 0x55]} {"},{"line_number":179,"context_line":"\t\t\tset use_secure_workarea 1"},{"line_number":180,"context_line":"\t\t}"},{"line_number":181,"context_line":"\t}"}],"source_content_type":"text/x-ttcn-cfg","patch_set":15,"id":"2ecb373e_eece3f86","line":178,"updated":"2021-08-15 23:34:37.000000000","message":"again expr syntax for jimtcl 0.81","commit_id":"e5631512530dfbf81b02425d030c2e4e2c0aeb74"}]}
