They list a mid year change in converters for 97, but this doesn't sound like that. There was an issue with early trucks hanging in 2nd, and it requiref an updated prom chip to correct. I had to do it to my 95 because it would hang in 2nd, but it never stayed in 2nd, it would always eventually shift. Sticking in 2nd gear is limp mode. The thi,g about limp mode is the codes can clear by turning the key off.
When you say it sticks in wnd under hard accel, if you come to a stop and take off again after it doesthis, does it stay in wnd still, or will it go back to 1st? Trying to understand exactly whats going on. Which converter did you use? If you use say a 6.0l converter, your slippage could be so high in 2nd, it's not going to shift. The 6.5l is set up to shift by speed, not rpm, so if your converter is stalling to high, you may not reach the 2-3 shift speed before it pegs out on the governor. You could also have a valve hanging in the valve body when line pressure goes up. In a situation like this I like to start by connecting a scanner and seeing if it is actually commanding the shift to occur. Thisway you know if you needto look at an electrical issue, or hydraulic.