CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 136 matches
CCS Forum Index
Author Message
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Mon Mar 03, 2025 8:10 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Could you help me to properly associate samples array to a memory bank ?
The problem persists when I have bootloader+application and fft.h library just included without using any of its functions.
...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Wed Feb 26, 2025 2:47 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Here the main steps related to fft computation.


#define FFT_LENGTH 512
#define SAMPLE_SIZE 2048
#include <Lib/fft.h>

typedef struct _complex
{
fft_int_t re;
fft_int_t im ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Mon Feb 24, 2025 1:33 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
I verified with LED debugging that isr is executed at correct timing.
It seems a memory boundary issue related to contemporary use of bootloader and FFT library:
#include <Lib/fft.h>

If I a ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Sun Feb 23, 2025 3:13 pm   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Thank you!

I wrote to technical support, I hope they'll help me to get rid of this weird issue.
Meanwhile could you share me links to threads related to similar problem with bootloader ? I would l ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Sun Feb 23, 2025 2:22 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
I used:


#include <33EP512GP502.h>
#OPT 0
#define LOADER_PAGES 8
#include <pcd_bootloader.h>
#include <dsp_data_util.c>


also with even (8) loader_pages both in bootloade ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Sat Feb 22, 2025 7:16 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
I also monitored isr execution time in application standalone code.
It is ok, isr needs few microseconds less than period required to reach Fsampling.
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Sat Feb 22, 2025 6:36 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
I don' t think It could be a Memory issue...
Bootloader occupies 1% Rom program Memory and 9% RAM in worst case.
Application occupies 2% Rom program Memory and 46% RAM in worst case.

Please help ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Sat Feb 22, 2025 5:51 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Hi,
I used #OPT 0 in both bootloader and bootload application.
I removed clear interrupt from isr code and replaced the first switch with if else statement.


#include <33EP512GP502.h>
#OP ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Fri Feb 21, 2025 6:16 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Thank you Ttelmah,
I'll try #OPT 0 ASAP.

Meanwhile some clarifications:
- Fuses match between bootloader and application (No change)
- No other interrupt required or used

I looked AIVT bootlo ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Marco27293

Replies: 17
Views: 3444

PostForum: General CCS C Discussion   Posted: Thu Feb 20, 2025 1:55 pm   Subject: DSPIC33EP512GP502 -- PCD v5.115 compiler - Bootloader issue
Hi,
I'm using this bootloader code. It seems to work fine.

///////////////////////////////////////////////////////////////////////////
//// EX_PCD_BOOTLOADER.C ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
Marco27293

Replies: 17
Views: 14725

PostForum: General CCS C Discussion   Posted: Fri Jul 05, 2024 3:12 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
Thanks !!

Now it's working with Receive_buffer only in application.

Regards!
  Topic: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
Marco27293

Replies: 17
Views: 14725

PostForum: General CCS C Discussion   Posted: Fri Jul 05, 2024 2:19 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
OK.
I removed receive_buffer from bootloader part.

Can I keep it in application part ? Or could it be a problem ?
  Topic: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
Marco27293

Replies: 17
Views: 14725

PostForum: General CCS C Discussion   Posted: Thu Jul 04, 2024 9:39 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
When I load the application without bootloader part it works fine...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
Marco27293

Replies: 17
Views: 14725

PostForum: General CCS C Discussion   Posted: Thu Jul 04, 2024 8:08 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
Please, give me example in order to use #build and expand stack...
Do I need it only in application or also bootloader code ?

In application I have:


#use delay(internal=20MHz,clock_out&# ...
  Topic: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
Marco27293

Replies: 17
Views: 14725

PostForum: General CCS C Discussion   Posted: Thu Jul 04, 2024 8:07 am   Subject: DSPIC33EP512GP502 -- PCD v5.115 Bootloader UART issue
I have:


CCS PCD C Compiler, Version 5.115, 84 04-lug-24 16:05

Filename: C:\Users\3Bee\MPLABXProjects\Hive_Tech_V1\build\default\production\main.lst ...
 
Page 1 of 10 Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group