I tried to checksum the folder that contained the Excel file and got a message (paraphrasing) 'You can't checksum a folder that contains this worksheet'. Please note there is a note in the code that says you need 2.5 or greater.Ģ. I unchecked ActiveX 6.1 and checked ActiveX 2.8 and worked fine. xlsm file it wouldn't compile because I don't have ActiveX 6.1. I'll find what's going on at the next update.ġ. The following were observed while running on a Vista 64 bit system using Excel 2003. Thanks for the Rep Points - much appreciated. I plan to have 3 separate versions of this function rather than 1 version with boolean arguments - the reason for this is excess object declarations and it would be checking the boolean argument for each and every loop - I wouldn't want this to run any slower than what it already is ) You can do this by commenting out the relevant lines in the recursive function. * (I haven't produced file only/folder only versions yet. what if the user selected folder is empty? what if the path string reaches 255 characters?). I know there are things I haven't plugged yet (e.g. Please let me know if you encounter any unhandled error and how to reproduce it. It returns an array of all files & (non-empty) subfolders * from the folder selected by the user. I'm focused on testing/improving the t_ref_FileFolder_lister_1d module (start the test using the smaller button on sheet1 or run the DevTest_Recursive (found in module t_ref_FileFolder_lister_test ) So if there is something wrong, I would appreciate any further information.Attached workbook is where I'm up to now. Uint32_t CRC_Value = 0 // CRC_StartValue is 0 !!ĬRC_Value = (CRC_Value << 1) ^ 0x04C11DB7 // Polynomial used in TricoreĪt the moment, I have only these short examples: Uint32_t M圜RC32(uint32_t * CRC_DataPtr, uint32_t CRC_Len) * 2 CRC_Len: Count of 32-bit-values in buffer * 1 CRC_DataPtr: pointer to buffer with 32-bit-values The only difference is that the bit-wise inversion at the end is not needed. I found here: "" an example written by user freyes on Oct 13th, 2015, 01:30 PM, which seems to be near the method realised on the XMC4500_AB. XMC_FCE_GetCRCResult(&FCE_config0, &crc32_result) XMC_FCE_CalculateCRC32(&FCE_config0, address, firmware_length, &crc32_result) Uint32_t firmware_length = *(address + 7) In your applicattion using the FCE you can check the CRC32 using the code below ( which also does other sanity checks)īool is_firmware_loaded_valid(uint32_t *address) * Vector Table - This gets programed into VTOR register by onchip BootROM */Įntry HardFault_Handler /* Hard Fault Handler */Įntry MemManage_Handler /* MPU Fault Handler */Įntry BusFault_Handler /* Bus Fault Handler */Įntry UsageFault_Handler /* Usage Fault Handler */Įntry DebugMon_Handler /* Debug Monitor Handler */Įntry PendSV_Handler /* PendSV Handler */Įntry SysTick_Handler /* SysTick Handler */ * = START OF VECTOR TABLE DEFINITION = */ I also modify the startup file to use one of the nonused vectors in the vector table to indicate the application where the CRC is located This can be achieved in DAVE by selecting the output format in the project settings or via command line using objcopy. o 18_xmc4800_tftp_bootloader_app_crc.binįor this to work you need to generate a bin file. # produce the output file, specify it in the Startup tab of debug settings in use file crc32-b-e -maximum-address 18_xmc4800_tftp_bootloader_app.bin -binary # calculate CRC32 # use srec_cat First create CRC checksumġ8_xmc4800_tftp_bootloader_app.bin # input file I use srec_cat to calculate the CRC32 using a small command file for srec_cat which will append the CRC32 at the end of the image. If i try to flipp the bytes in the same matter in the pc program, i get: 0x0797C360. It seems, the Infineon is flipping the Bytes, becouse, if i use 0x00000001 as input, the Chip returns: 0x04c11db7. Infineon returns in RES or CRC: 0圆0A105A3 Uint32_t GetCRC32(unsigned long iLengt, unsigned char *pBuffer)ĬRC = (CRC > ^ crctab I need this for a bootloader, to calculate the crc from a complet hex-file and want to check this from the infineon.īut i can't find a algorithm, that gives the same result as the CRC-Kernel. I try to calculate a crc32 with a pc program in the same matter than the build in crc unit.
0 Comments
Leave a Reply. |