Hi all!!!
How can I fix this problem?
*** error 65: access violation at 0x4002C000 : no 'read' permission
I think there are problems with QEI register ( Quadrature Encoder INcremental)
Compiling and Linking: ****************************************************************************************** Build target 'basic-bldc' compiling adc_ctrl.c... compiling brake.c... compiling hall_ctrl.c... compiling main.c... compiling pwm_ctrl.c... compiling sine.c... compiling sinemod.c... compiling speed_sense.c... assembling startup_rvmdk.S... compiling trapmod.c... compiling ui.c... compiling ui_onboard.c... linking... Program Size: Code=10216 RO-data=360 RW-data=380 ZI-data=4116 User command #1: fromelf --bin --output .\rvmdk\basic-bldc.bin .\rvmdk\basic-bldc.axf ".\rvmdk\basic-bldc.axf" - 0 Error(s), 0 Warning(s). ********************************************************************************************* Debugging and Running: ******************************************************************************************+++ Running with Code Size Limit: 32K Load "C:\\StellarisWare_BLDC\\boards\\rdk-bldc\\basic-bldc\\rvmdk\\basic-bldc.AXF"
*** Restricted Version with 32768 Byte Code Size Limit *** Currently used: 10616 Bytes (32%)
*** error 65: access violation at 0x4002C014 : no 'read' permission ********************************************************************************************
Code_fragment with problem ->>> 0x00001A18 4E6F LDR r6,[pc,#444] ; @0x00001BD8
230: ulNewTime = g_ulSpeedTime + HWREG(QEI0_BASE + QEI_O_TIME); 231: 232: // 233: // Compute the time between this edge and the previous edge. 234: // 0x00001A14 486F LDR r0,[pc,#444] ; @0x00001BD4 0x00001A16 6940 LDR r0,[r0,#0x14] 0x00001A18 4E6F LDR r6,[pc,#444] ; @0x00001BD8 // at this line is the running brake 0x00001A1A 68B1 LDR r1,[r6,#0x08] 0x00001A1C 4408 ADD r0,r0,r1
*********************************************************************************************** Thank You very much!!! Cassani