Menu

ili9341 SPI no touch after string declaration

Help
Dirk
2 days ago
13 hours ago
  • Dirk

    Dirk - 2 days ago

    Hello everybody,

    i observed a strange behavior.

    As soon as i convert a value into a string the touch screen stops working.

    Weird enough, the same source code works with a 18F6585 and ili9481 in16bit parallel mode.

    Any ideas appreciated.

    Thanks in advance

    mafuta

     
  • Anobium

    Anobium - 2 days ago

    Problably string allocation space. You are using an old PIC and the string allocation is small.

    Try adding #DEFINE SYSDEFAULTCONCATSTRING 16 where 16 is the largest string you are trying to handle.

     
  • Dirk

    Dirk - 1 day ago

    Hello Anobium,

    nop, even #DEFINE SYSDEFAULTCONCATSTRING 8 does not help

        mplab c18 privides a char* pBuffer[255]  '(for example)
    

    Shouldn't a too long string space allocation lead to a compiler error or warning?

     
  • Anobium

    Anobium - 1 day ago

    Can you upload a GCB source that compiles? The one above has errors.

    This would really help.

     
  • Anobium

    Anobium - 13 hours ago

    And, looking at the errors today.

    Are you running the latest compiler/tool chain? Please share the top 30 line of the ASM bing generated. But, if you are not running the lastest compiler/tool chain then I think it will be best to update then retry ( I have the latest compiler/tool chain and this will be my baseline ).

    Evan

     

Log in to post a comment.