1
µTasker general / hitting at 'unsupported storage area error' in M5223X.c
« on: April 05, 2013, 01:11:39 AM »
Hello
Right now I am using simulator for developing my webserver. I am using STORAGE_REV_1 definition for default FLASH, NVRAM, and SPI_FLASH. The memory address is set from 0x00000000 for default FLASH to NVRAM to SPI_FLASH continuously. uFile system starts on SPI_FLASH memory only this time with FILE_GRANULARITY of (8*SPI_FLASH_BLOCK_SIZE), which is 16*4*264 bytes for data flash type of AT45DB081D. The parameter blocks are set at the end of the internal FLASH with FLASH_GRANULARITY size (2*4K). Of course, the swap parameter block is set. After proper modifications, the program is complied successfully, run successfully, copied web files successfully, called web pages initially without any problem. Meaning, the code seems fine.
For my purpose, I should modify and remove some default webpages and add my own webpage and some picture files, js files, and data files. Basically these modifications work initially. When I tried to save some changes in the webpages, however, it stopped at the line of "_EXCEPTION("Attemped access to unsupported storge area!!!!") in M5223X.c. This is the part of fnGetStorageType. For example, in order to set the authentication of websever, at the admin page I checked the proper section and marked "Modify and save...". Then click the 'Perform desired action' button. Then it stopped at the place. Other saving buttons behave the same. I have debugged step by step, changed storage. It didn't help at all. And it is not clear, when it hits.
What possibly can be wrong? Something in my webpages?
Right now I am using simulator for developing my webserver. I am using STORAGE_REV_1 definition for default FLASH, NVRAM, and SPI_FLASH. The memory address is set from 0x00000000 for default FLASH to NVRAM to SPI_FLASH continuously. uFile system starts on SPI_FLASH memory only this time with FILE_GRANULARITY of (8*SPI_FLASH_BLOCK_SIZE), which is 16*4*264 bytes for data flash type of AT45DB081D. The parameter blocks are set at the end of the internal FLASH with FLASH_GRANULARITY size (2*4K). Of course, the swap parameter block is set. After proper modifications, the program is complied successfully, run successfully, copied web files successfully, called web pages initially without any problem. Meaning, the code seems fine.
For my purpose, I should modify and remove some default webpages and add my own webpage and some picture files, js files, and data files. Basically these modifications work initially. When I tried to save some changes in the webpages, however, it stopped at the line of "_EXCEPTION("Attemped access to unsupported storge area!!!!") in M5223X.c. This is the part of fnGetStorageType. For example, in order to set the authentication of websever, at the admin page I checked the proper section and marked "Modify and save...". Then click the 'Perform desired action' button. Then it stopped at the place. Other saving buttons behave the same. I have debugged step by step, changed storage. It didn't help at all. And it is not clear, when it hits.
What possibly can be wrong? Something in my webpages?