Jump to content
Flirc Forums

Problems with wake only with suspend


pk1

Recommended Posts

My goal is to have one key suspend and wake (with no other keys waking).

 

According to:

 

 

the "Suspend" key should wake (and suspend). However, for me it acts no different than any other key with regard to waking (in particular, if Wake is undefined, all keys including Suspend wake, otherwise only Wake does). I have tried both the beta and stable firmwares.

 

Using a strategy similar to:

 

 

I was able to get the desired beahvior, but I am concerned that there may be too many write cycles. Does anyone know the number of write cycles that this microcontroller can handle (from looking up what I believe is the specs, the flash has 10k cycles, and the eeprom has 100k. not sure which is applicable here).

 

Thanks!

Link to comment
Share on other sites

My goal is to have one key suspend and wake (with no other keys waking).

 

According to:

 

 

the "Suspend" key should wake (and suspend). However, for me it acts no different than any other key with regard to waking (in particular, if Wake is undefined, all keys including Suspend wake, otherwise only Wake does). I have tried both the beta and stable firmwares.

 

To be honest I even didn't know about this :). But I think that this feature was implemented in 2.x firmware. In 3.x Jason has re-written a big portion of the firmware so there is a chance that this particular feature has been omitted (probably by accident). We need to wait for his response to be sure.

 

Using a strategy similar to:

 

 

I was able to get the desired beahvior, but I am concerned that there may be too many write cycles. Does anyone know the number of write cycles that this microcontroller can handle (from looking up what I believe is the specs, the flash has 10k cycles, and the eeprom has 100k. not sure which is applicable here).

 

Thanks!

 

I would assume that configuration is stored in EEPROM memory as it's easier to write into it than to the Flash in this particular microcontroller - EEPROM is byte addressable and writing only require erasing bytes that are written, but the Flash is written in pages and require erasing whole page before writing even a single byte into it. Flash memory stores the bootloader and firmware.

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...