Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

CC2640: ProjectZero with external flash access added is behaving strangely

$
0
0

Part Number:CC2640

I have a SimpleLink Academy ProjectZero modified to access external flash for data storage purposes.

It has been working fine but I have now noticed this issue.  The second time I try to open the OAD_target, the function returns 0 and I am unable to figure out why.

My program is big enough that I have to disable all logging and can't even set it up for ROV anymore.  I have been building with optimization OFF so that breakpoints work better.   So, with a breakpoint after the following code I can see that did2 was never set to 1.

By setting breakpoints, I have been able to determine that the second time OADTarget_Open was called, the ExtFlash_readInfo() routine did not provide the correct 'devicesize,manfD,devID'  that it did the first it was called in pFlashInfo.

Why would this happen?

Thanks,

Dale

  uint8_t did1 = 0;
  if (OADTarget_open())  {
      did1=1;
  }
  OADTarget_close();

  uint8_t did2 = 0;
  if (OADTarget_open())  {
      did2=1;
  }
  OADTarget_close();


Viewing all articles
Browse latest Browse all 262198

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>