Hello Segger Team
The debugging SAVE function of ARM Keil uVision (5) can only store Intel HEX format. The Segger SystemView can only read binary or SVDat format.
(At least I did not find another solution)
It would be nice if SystemView could also handle Intel Hex file format or other formats than SVDat /binary.
Here how I did Segger SystemView integration into ARM Keil uVision (5).
Kind Regards
Roman
The debugging SAVE function of ARM Keil uVision (5) can only store Intel HEX format. The Segger SystemView can only read binary or SVDat format.
(At least I did not find another solution)
It would be nice if SystemView could also handle Intel Hex file format or other formats than SVDat /binary.
Here how I did Segger SystemView integration into ARM Keil uVision (5).
- Write a function using the uVision debugger scripting:
C Source Code
- FUNC void SaveSeggerSystemViewData(void) {
- printf("Saving Segger SystemView data in SeggerSystemViewData.hex!\n") ;
- exec("SAVE \"SeggerSystemViewData.hex\" (uint32_t)_SEGGER_RTT.aUp[0].pBuffer , ((uint32_t)_SEGGER_RTT.aUp[1].pBuffer + _SEGGER_RTT.aUp[1].SizeOfBuffer)");
- }
- DEFINE BUTTON "Save Segger SystemView Data", "SaveSeggerSystemViewData()"
- Download the srecord tool from srecord.sourceforge.net/
- Intergrate srecord to convert the Intel Hex to a binary file:
[quote] Command: ../tools/srecord/srec_cat.exe
Arguments: SeggerSystemViewData.hex -intel -offset - -minimum-addr SeggerSystemViewData.hex -intel -o SeggerSystemViewData.bin -binary[/quote] A more generic way for converting any hex file which is part of the project:
[quote] Command: ../tools/srecord/srec_cat.exe
Arguments: %F -intel -offset - -minimum-addr %F -intel -o @F.bin -binary [/quote]
Kind Regards
Roman
The post was edited 1 time, last by Roman ().