I believe this:
/* Input parameter test - this test can be disabled by setting the "Ignore range checking"
property to the "yes" value in the "Configuration inspector" */
if ((PageNumber + PageCount) >= NAND_FLASH_PAGE_COUNT) {
return ERR_PARAM_LENGTH;
should be this:
/* Input parameter test - this test can be disabled by setting the "Ignore range checking"
property to the "yes" value in the "Configuration inspector" */
if ((PageNumber + PageCount) > NAND_FLASH_PAGE_COUNT) {
return ERR_PARAM_LENGTH;
Otherwise you can't access the last page of the flash.
Solved! Go to Solution.
Hi,
The configuration inspector can be invoked using the pop-up menu of the configuration (the settings are specific for configuration, you can have different settings for each configuration)::
There you can set "Ignore range settings" :
Then regenerate the code and the range checking code disappears.
Best regards
Petr Hradsky
Processor Expert Support Team
Hello,
thanks for reporting this bug to us. We will fix it for next release (I am not sure about CW V10.6 because we are close to this release. However this fix is going to be part of DriverSuite 10.4).
Best regards
Vojtech Filip
Processor Expert Support Team
similar range checking bug in the r/w raw routines.
i couldn't find how to disable range checking, despite the comments. I guess the only workaround (unless there is a way to disable generating that code) is to freeze and edit?
Hi,
The configuration inspector can be invoked using the pop-up menu of the configuration (the settings are specific for configuration, you can have different settings for each configuration)::
There you can set "Ignore range settings" :
Then regenerate the code and the range checking code disappears.
Best regards
Petr Hradsky
Processor Expert Support Team
thanks