bug in NFC_LDD range checking?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bug in NFC_LDD range checking?

Jump to solution
581 Views
bowerymarc
Contributor V

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.

Labels (1)
Tags (2)
0 Kudos
1 Solution
394 Views
Petr_H
NXP Employee
NXP Employee

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)::

ConfigInspector.png

There you can set "Ignore range settings" :

ConfigInspector2.png

Then regenerate the code and the range checking code disappears.

 

Best regards

Petr Hradsky

Processor Expert Support Team

View solution in original post

0 Kudos
4 Replies
394 Views
vfilip
NXP Employee
NXP Employee

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

0 Kudos
394 Views
bowerymarc
Contributor V

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?

0 Kudos
395 Views
Petr_H
NXP Employee
NXP Employee

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)::

ConfigInspector.png

There you can set "Ignore range settings" :

ConfigInspector2.png

Then regenerate the code and the range checking code disappears.

 

Best regards

Petr Hradsky

Processor Expert Support Team

0 Kudos
394 Views
bowerymarc
Contributor V

thanks

0 Kudos