Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - debrajdeb

1
Web platform / Re: Serial (FT232) to USB does not work.
Issue solved by making changes to code: -

Code: [Select]
void UART1TX(char c){
// U1STAbits.UTXEN = 1; //Comments this line
while(U1STAbits.UTXBF == 1);
    U1TXREG = c;
while(U1STAbits.TRMT== 0);
// U1STAbits.UTXEN = 0; //Commented this line
}
////////////////////////////////////////////////////////////////////////
Code: [Select]
void InitializeUART1(void){
//setup UART
    U1BRG = 85;//86@80mhz, 85@79.xxx=115200
    U1MODE = 0;
    U1MODEbits.BRGH = 1;
    U1STA = 0;
    U1MODEbits.UARTEN = 1;
    IFS0bits.U1RXIF = 0;
    U1STAbits.UTXEN = 1; //Added this line of code, precisely here. Enabling TX elsewhere does not work
}
3
Web platform / Serial (FT232) to USB does not work.
Hi,

I noticed a difference in the hardware schematic in this page: -
http://dangerousprototypes.com/wp-conte ... t-iiii.png

where, the TX is connected pin-14, while RX connected to pin-15. But in the software, the settings are done vice versa. And, the software setting seem to be correct as thats how I get some signals out of the board (and RED LED blinks).

But I do not get the data out properly. I get a junk character, irrespective of any character that I send. The Receive seem to be working good as in debugger, I can see the correct data typed from my PC. But Transmit is always junk?? Any suggestion please.

Regards.
4
Web platform / Re: TCPIP SD card demo does not work.
Latest update: -

The SD card + TCP/IP demo working for me now (even in program mode). The following change is what I made: -

_FICD(JTAGEN_OFF & 0b11) --> _FICD(JTAGEN_OFF & ICS_PGD1)
5
Web platform / Re: TCPIP SD card demo does not work.
Latest update: -

1. I am using ICD3 as programmer/ debugger.
2. My TCP/IP stack is v5.31
3. I use USB as my power source.
4. compiler version is V3.23
5. MPLAB version is v8.73
6. My code works in debug mode (in MPLAB, when I select the debug mode). But in Program mode (Release mode), the code does not work.


I am sure that the code is fine, but there is some mismatch with settings (for dsPIC). If I set that perfect, the code would run fine. I am looking into that, but if you have any advice for me, please let me know.
6
Web platform / TCPIP SD card demo does not work.
Hello,

I received my "web platform v1.1 assembled" and I wanted that board to try the TCPIP MDD + SD Card Demo on it. Some issues that I face: -

1. When I program "MCSDServer.hex", as provided in the demo "Web_Platform.package.v1c", the board works good with web page displaying nicely from the SD card.

2. When I use the source code from demo "web-platform-SDcardServer.v0a", the code does not work. The LEDs do not blink as well. I tried different options as using the v3.23 version of compiler and suggestions mentioned in page -- viewtopic.php?f=24&t=1506&p=13989&hilit=SaveAppConfig#p13989

Presently, I am running the code in debug mode to check if I can figure out the issue. But if somebody has a suggestion for me, please let me know.

Best regards.

( ! ) Fatal error: Uncaught exception 'Elk_Exception' with message 'Please try again. If you come back to this error screen, report the error to an administrator.' in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
( ! ) Elk_Exception: Please try again. If you come back to this error screen, report the error to an administrator. in /var/www/dangerousprototypes/forum/sources/database/Db-mysql.class.php on line 696
Call Stack
#TimeMemoryFunctionLocation
10.01392324616session_write_close ( )...(null):0
20.01432456192ElkArte\sources\subs\SessionHandler\DatabaseHandler->write( )...(null):0
30.01432456968Database_MySQL->query( ).../DatabaseHandler.php:119
40.05992595688Database_MySQL->error( ).../Db-mysql.class.php:273