Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenprog with JN516x #3

Open
riccardosabatini opened this issue Feb 12, 2014 · 6 comments
Open

Jenprog with JN516x #3

riccardosabatini opened this issue Feb 12, 2014 · 6 comments

Comments

@riccardosabatini
Copy link

Dear,

I'm trying to use the jenprog with a devkit board for the JN5168. Ftdi drivers and utilities are working good (I can access the FTDI Model and ID with no problem), but the communication is broken.

In particular, after some debugging, I notices the talk function in the ftdi modules fails for the read_len == ans_len condition. It seems in fact that the chip spits out some non-sensical (w.r.t. the Bootloader manual) results.

I went through all the doc of Jennic (NXP) and it seems the bootloader for the JN5168 is the same as for the older chips supported by jenprog.

If it can be of any help to better understand, I'm using the dev board DK4 and the procedure to put the chip in configuration mode consist in pressing the pwr button once while the FlashBoot (windows) is launched, after this everything works ... in windows.

Very much help for any suggestion, and thanks for the great work

R

@pscholl
Copy link
Owner

pscholl commented Feb 12, 2014

To avoid confusion, you are using the "-c ftdi" connection of jenprog, right?

If so, according to the JN-RD-6021 doc you need to change the pins that are used
to toggle programming mode. The problem you're seeing is probably caused by the
chip not being in programming mode. According to this document the RESETN is
mapped to CB2 and SPIMISO to CB3. Guessing from
http://www.ftdichip.com/Support/Documents/AppNotes/AN_232R-01_Bit_Bang_Mode_Available_For_FT232R_and_Ft245R.pdf
those pin number are 13 and 14. Jenprog supports remapping those pins so maybe
see if executing:

jenprog -c ftdi --reset-pin=13 --spimiso-pin=14 -s

returns some useful results. If all else fails you can of cours just measure the
SPIMISO pin on the programming connector and try different values for the
spimiso-pin argument.

Let me know if that worked.

On Wed, Feb 12, 2014 at 10:34:30AM -0800, riccardosabatini wrote:

Dear,

I'm trying to use the jenprog with a devkit board for the JN5168. Ftdi drivers and utilities are working good (I can access the FTDI Model and ID with no problem), but the communication is broken.

In particular, after some debugging, I notices the talk function in the ftdi modules fails for the read_len == ans_len condition. It seems in fact that the chip spits out some non-sensical (w.r.t. the Bootloader manual) results.

I went through all the doc of Jennic (NXP) and it seems the bootloader for the JN5168 is the same as for the older chips supported by jenprog.

If it can be of any help to better understand, I'm using the dev board DK4 and the procedure to put the chip in configuration mode consist in pressing the pwr button once while the FlashBoot (windows) is launched, after this everything works ... in windows.

Very much help for any suggestion, and thanks for the great work

R


Reply to this email directly or view it on GitHub:
#3

@usmanadeel
Copy link

Hi,
Does jenprog programmer works under linux for jn5168. If yes how to set it to programming mode?
Thanks

@pscholl
Copy link
Owner

pscholl commented Nov 21, 2014

jenprog does work under linux. However I never worked with the jn5168, so you
need to figure out which pins to toggle and how to put the jn5168 into
programming mode.

On Thu, Nov 20, 2014 at 12:16:04PM -0800, usmanadeel wrote:

Hi,
Does jenprog programmer works under linux for jn5168. If yes how to set it to programming mode?
Thanks


Reply to this email directly or view it on GitHub:
#3 (comment)

Embedded Sensing Systems - TU Darmstadt
https://www.ess.tu-darmstadt.de/

Tel.: +49 6151 16 75023

@usmanadeel
Copy link

Thanks.

@JulesThuillier
Copy link

Hi !
Has anybody managed to make it worked with JN5168 ? It works like a charm with JN5148 but I am having troubles with JN5168, while it works with the original program (Flash Programmer)

@pengphei
Copy link

pengphei commented Jun 8, 2018

@JulesThuillier I Have reimpliented the jenprog with c, now it support jn5168, you chould referr to https://github.com/pengphei/jennic-utils.git .

I hope it will work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants