Search Results - MEL PICBASIC Forum


Search:

Type: Posts; User: Marcick; Keyword(s):

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Re: My first PBP bootloader (almost) working .. help

    No problem at all. You just have to remap Reset and Int vector and you can jump to another program and back and do what you want of the PIC memory.
    I've never played with built-in USB but I see...
  2. Re: My first PBP bootloader (almost) working .. help

    Found the bug !
    There was an error in the flash procedure so that the last block was lost. Remember when using WriteCode:

    "Note that block writes are not actually executed until the end location...
  3. My first PBP bootloader (almost) working .. help

    Hi all,
    here I'm with my first PBP bootloader that unfortunately doesn't work properly....
    The main program jumps to bootloader, flash the new code, come back to main, do something expected at...
  4. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    Clear, thanks both. I've used something like that in the past when I needed a bunch of kbytes more to fit a program in memory.
    But as I told debug strings are mostly mixed test+variables and become...
  5. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    I agree ... please explain how would you do. Of course debug strings are different and mixed also (fixed test, formatted variables, etc). Not possible to have them flashed in code memory.
  6. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    These are my result:

    1) simple program with some code and 1 line as below is 7099 bytes

    Hserout2["nel mezzo del cammin di nostra vita",13,10]

    2) same program with 11 line like that is 9319...
  7. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    I'll do some test, thank you :)
  8. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    uhm ... how do you send a message to the serial port with ArrayWrite ?
  9. Replies
    10
    Views
    1,381

    Re: DEFINE RESET_ORG and DT Instant Interrupt

    Yes, I have to erase just a 128 byte block before.
    Well, you are right, but I have not enough resources to use your method. My main program is around 80K, I have not enough space in the external...
  10. Replies
    10
    Views
    1,381

    Re: DEFINE RESET_ORG and DT Instant Interrupt

    I'm experimenting this method:

    Bootloader code uses DEFINE RESET_ORG 80h and Main program uses DEFINE RESET_ORG 3000h

    When the main app need to call bootloader, I disable Interrupt, then remap...
  11. Replies
    10
    Views
    1,381

    Re: DEFINE RESET_ORG and DT Instant Interrupt

    Hi Pedja, thanks for your confirmation.
    Yes, I was trying as you say placing the bootloader in the high memory, but then I faced with a "limit" of PBP that requires the library routines (assembly...
  12. Replies
    10
    Views
    1,381

    Re: DEFINE RESET_ORG and DT Instant Interrupt

    If in the main program (with DEFINE RESET_ORG 3000h) I add this


    @ ORG 0
    @ GOTO 3000h
    @ ORG 8
    @ GOTO 3008h
    @ ORG 4
    @ GOTO 3004h
  13. Replies
    10
    Views
    1,381

    Re: DEFINE RESET_ORG and DT Instant Interrupt

    I describe my idea.

    1) Write a bootloader program at ORG 0 that get an HEX file and write memory starting at 3000h
    2) export code, manipulate to obtain something like below and put it in a file...
  14. Replies
    10
    Views
    1,381

    Re: DEFINE RESET_ORG and DT Instant Interrupt

    Hi Pedja,
    this is a sample program that runs ok without the DEFINE RESET_ORG.
    What I'm trying to do is move it from org 0 to create place for my bootloader.
    My real program needs interrupt.

    I...
  15. Replies
    10
    Views
    1,381

    DEFINE RESET_ORG and DT Instant Interrupt

    Hi all,
    anybody can understand why the below code works only commenting the first line ?
    If I use DEFINE RESET_ORG the program hangs and does nothing.



    ' DEFINE RESET_ORG 3000h

    ...
  16. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    From Charles: "I'm afraid this is a limitation of PBP that probably won't be changed. The library routines (assembly language for high-level commands like HSEROUT) were written with the assumption...
  17. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    If you don't care too much to optimize, it's not difficult to arrive above 64k. For example I use a lot of Hserout messages just for debug of what the program is doing.
    Really, a PIC18 is much more...
  18. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    Charles says "I'll presume it's a bug and try to figure it out."
    Let's wait.
    I wonder if we could have same problem also without DEFINE RESET_ORG, just with code larger than 64k .....
  19. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    I was using 3.0 and bought 3.1 update to see if it was solved, but not.......
    I think I will start to work on my subroutine to avoid use of string modifiers, though they are very powerful, it's a...
  20. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    Looks like it is definitely a bug (I have bought one week ago the 3.1 update to be sure).
    I'm writing in the bug report section of Melabs to see what they say. Here.
    Thanks
  21. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    hi,
    It's a very long time I don't eat assembly...
    Are you saying it's a PBP bug?
  22. Replies
    25
    Views
    3,111

    Re: DEFINE RESET_ORG and DEC modifier issue

    uhhmmm.... where do you see I'm using a bootloader?
    Well, I was really working on a bootloader but when I started to see this issue I wrote this simple code (not involving bootloader) to make this...
  23. Replies
    25
    Views
    3,111

    DEFINE RESET_ORG and DEC modifier issue

    Sorry I open again a thread but the other one was not exact in the question.

    In the code below I use a simple DEC modifier to output a string and it works as expected.
    But If I use the "DEFINE...
  24. Replies
    2
    Views
    630

    Re: Arrayread and DEC modifier issue

    Thank you Pedja, you are right !
    It was a very stupid mistake.
    Cheers
  25. Replies
    2
    Views
    630

    Arrayread and DEC modifier issue

    I have a buffer containing this string:


    +UUSORD: 0,7

    To be sure I'm not lost in space :D here is the ascii scan of the buffer, that ends with a Carriage Returns 13:

    ...
Results 1 to 25 of 81
Page 1 of 4 1 2 3 4