Programming JN516X by off-board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Programming JN516X by off-board

1,143 Views
t_tsujiyama
Contributor II

I am a programmer developper.
I am searching for a way to program to JN516X internal flash memory by off-board.
I guess that it is possible by the serial interface to communicate with the boot loader.
Is my understanding correct, or is there another way ?
I would greatly appreciate it if you could let me know the way.

0 Kudos
8 Replies

1,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tomonori,

Please look at the Production Flash Programmer SW. JN-SW-4107. This will help you with the JN programming serial interface. However please look at the JN-AN-1003 that describes the functionality of the boot loaders for the JN51xx wireless microcontrollers.

Regards,

Mario

0 Kudos

1,044 Views
t_tsujiyama
Contributor II

Hi Mario

Thank you for your reply.

I read JN-UG-3007 and JN-AN-1003.

JN-UG-3007 says, "When downloading a binary file to Flash memory (by means of the Flash Programmer GUI or CLI), you must use the JN51xx UART0 serial interface."
JN-AN-1003 describes serial protocol.
So I guess that it is possible to program to JN516X by the serial interface.

But JN516X datasheet says that it is not necessary to provide the register details of the JN516x in the datasheet.
Is it necessary to access register in a programming sequence ?
Can I get the document which describes the register details of the JN516x ?

Best regrads.

Tomonori Tsujiyama

0 Kudos

1,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tomonori,

Please look at the https://www.nxp.com/docs/en/user-guide/JN-UG-3099.pdf.

It describes the SW that you could use to program the JN devices with the serial interface.

I am not sure if I am following you. How are you trying to program your device?

Regards,

Mario

0 Kudos

1,044 Views
t_tsujiyama
Contributor II

Hi Mario

Thank you for your reply.

I develop a universal programmer.
I want to implement programming support for JN516X into my universal programmer.
Therefore, I want to know a way to program JN516X by accessing a device directly.

Best regrads.

Tomonori Tsujiyama

0 Kudos

1,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tomonori,

Unfortunately,  we do not provide the JN5169 register details.

However, you could look at the packets in our example JN-AN-1222

...\JN-AN-1222-IoT-Gateway-Host-with-NFC+v2007\Source\Host\openWrt\packages\NXP\iot_gw\src\jnFlasher.. You will find some code for flasher, programming and detect the JN devices.

Regards,

Mario

0 Kudos

1,044 Views
t_tsujiyama
Contributor II

Hi Mario,

Thank you for your advice.
The codes help me.

I have considered about the boot loader.

No.1  JN-AN-1003.pdf Page 5
Alternatively, the boot loader may enter programming mode if the SPI MISO line is held low when the device is reset,
or if no valid application image is found in the internal or external Flash memory.

No.2  JN-AN-1003.pdf Page 24
Serial communication between the PC and boot loader is implemented as 8,N,1,38K4 from the JN514x/JN5139 UART 0.
The JN514x/JN5139 device will respond to the serial protocol when it has entered programming mode,

No.3  JN-AN-1003.pdf Page 25
Table 8.

No.2 says about JN514x/JN5139, however the supported devices include JN516X on Table 8.
Therefore, I guess that it is possible to program JN516X by communication with the boot loader in the same way as JN514x/JN5139.
Is my understanding correct ?

Best regards.

Tomonori Tsujiyama

0 Kudos

1,044 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Tomonori,

You are right, just be careful with the commands that are supported or not with the JN devices in the table.

Regards,

Mario

0 Kudos

1,044 Views
t_tsujiyama
Contributor II

Hi Mario,

I understand.
Thank you for many your detailed explanations so much !
I really appreciate it !

Best regards.

Tomonori Tsujiyama